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

How to disable jump?

I am trying to make a survival game and I want to disable jump. How could I do that? Please help.

1 comment

0

in a localscript: repeat wait() untilgame.Players.LocalPlayer.Humanoid game.Players.LocalPlayer.Humanoid.JumpPower = 0 .......and jumppower is the tip of the day, which i find hilarious.

1 answer

Regular script:

game.Workspace.ChildAdded:connect(function(child) -- Whenever something is added to workspace
	wait() -- Give the new addition to workspace some time to load everything
	for i,v in pairs(child:GetChildren()) do -- Checks all children of the child
		if v:IsA("Humanoid") then -- If it's a humanoid
			v.JumpPower = 0 -- Disable jump
		end
	end
end)

Simple as that.

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