Skill script help: making a projectile magic skill

Thank you this gives me a good starting place.

On confirm do
If mana>0 then
Mana --
Ignore
Player direction variables ect.
Then a loop to update spell position on screen
Wait 0.2 then
Listen
End
End