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 3 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
3 years ago
Edited 3 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 — 3y
Ad

Answer this question