Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer
script.Parent.ClickDetector.MouseClick:connect(function(Player)
	local Humanoid = Player.Character:FindFirstChild("Humanoid")
	wait(6)
	Humanoid.Jump = true
	
end)

1 comment

0

Thank you so much! This really helps! I will accept your answer

This discussion is preserved as it was. New answers, comments, and votes are closed.