I am trying to make an NPC that will do a training for me in my game as I am not able to always be online. I want this NPC to tell the person what to do e.g. The NPC will ask the person if they know what Jumping Jacks are if they respond with no the NPC will say These are Jumping Jacks. Then the NPC will proceed to jump once and then say ONE in caps then continue until the NPC has done it 4 times each time saying the number they have done. Then the NPC will continue the training and tell them to do e.g. 20 Jumping Jacks.

This is the script I tried:

game.workspace.NPC if player.dialog clicks no
respond with ("These are Jumping Jacks")
then game.workspace.NPC.Jump once
Say "ONE"
Wait 3
then game.workspace.NPC.Jump once
Say "TWO"
Wait 3
then game.workspace.NPC.Jump once
Say "THREE"
Wait 3
then game.workspace.NPC.Jump once
Say "FOUR"
Wait 3
Say "Do 25 Jumping Jacks."
if player responds with "Done"
-------------------The script continues from here but this part seems to be the problem

Please reply and thank you.