To make the script look more natural, you should put faceplayer after lock
Replace all your waitmovement 0xFF by waitmovement 0x0, that's how it always goes. The rest of it seems ok.
I'd suggest having a look here: pokecommunity.com/showthread.php?t=279345, he covers all the basic stuff you...