Basically I'm trying to make it where when a player touches a brick it changes their JumpPower to 100 then runs this loop I made that creates a jump delay. I figured out how to break a while loop outside of the loop itself, but the problem is that using the TouchEnded method to return the character back to the original JumpPower (50) stops the aforementioned loop from running due to it being a Touched loop. How would I effectively make it where it changes the JumpPower and runs the jump delay onTouch, but doesn't run the TouchEnded until the player isn't touching the part at all? Is there an alternative method to TouchEnded, which can tell if the player isn't touching a specific brick that I can use to stop the loop?
COMMUNITY QUESTION
Is there a way to break a while loop after a player stops touching a part?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Why do you come on this site for help with your script, but don't provide it? If you want help and it's a problem with your script, post it here.