is this your first script? because the if part needs to be like this
on *:Text:*:?: { If
not this:
on *:Text:*:?:If
your way will not work.