You have to be very careful when following tutorials to follow spelling accurately. It’s very easy to miss typos in code if they don’t result in an error.
Onmove should be OnMove
If you have more questions and need to post code, you can use code tags in this forum to make it easier for people to read your code and help.