Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I make a button that makes the player jump when they press it?

Asked by 4 years ago

I have a part with a ClickDetector, and I want it to make the player to jump 6 seconds after they click it, how do I do this? I tried many times with different scripts but none of them seem to work.

1 answer

Log in to vote
1
Answered by
Robowon1 323 Moderation Voter
4 years ago
Edited 4 years ago
script.Parent.ClickDetector.MouseClick:connect(function(Player)
    local Humanoid = Player.Character:FindFirstChild("Humanoid")
    wait(6)
    Humanoid.Jump = true

end)
0
Thank you so much! This really helps! I will accept your answer lnyourarms 55 — 4y
Ad

Answer this question