Well make sure you're controlling the distance between you and the player at the specialattack and not only in the attackplayer function, you should be finding something about player.goodDistance( in the attackplayer function, this should be controlled in the specialattack movement also, I hope this helps to resolve the issue for you otherwise post important parts of the function and see if we can help you to resolve it.