How to make a part that makes you repeatedly bounce?
So i've been trying to make a part that when touched it makes you jump [Jumpower 100] all the time until you stop touching.
Here is my script so far [Not repeatdly, just normal jump pad script]
1 | script.Parent.Touched:Connect( function (hit) |
2 | local humanoid = hit.Parent:FindFirstChild( "Humanoid" ) |
3 | humanoid.JumpPower = 100 |
6 | script.Parent.TouchEnded:Connect( function (hit) |
7 | local humanoid = hit.Parent:FindFirstChild( "Humanoid" ) |
8 | humanoid.JumpPower = 50 |
If you could help me on doing that that'd be great.
P.S) with the normal script i'm doing when you first touch the part and jump it gives you the jump power but when you land in the part again the jumpower is glitchy and it changes between the regular jumpower and 100 so fast so it doesn't work. How can I fix that as well?