I know that it can be done, but I am not sure how. I tried using BodyForce, but that doesn't work. Any suggestions?
How do you disable jumping?
4 answers
Remember that the Jump property of Humanoid is what tells the character to jump, it does not signify that the character is currently jumping. This means that once the Jump property is set to true, the character will jump.
Despite this, the following code will still work because it sets jump to false so fast after it's set to true, Roblox doesn't even notice it. However, It only works in a local script.
local plr = game.Players.LocalPlayer
repeat wait() until plr.Character
local chr = plr.Character
chr:WaitForChild("Humanoid").Changed:connect(function()
chr.Humanoid.Jump = false
end)
In the player's humanoid there's a Property called "JumpPower." Set it to 0 via Script and that's it!
Copy this as a Script in ServerScriptService, Workspace, Etc:
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").JumpPower = 0
end)
end)
Just setting Jump to false as soon as it's changed to true does NOT work in server scenarios. They only work in the Play Solo, so this means you need to do some networking or something (with RemoteEvents, etc.) to get it to work properly.
3 comments
huh, your right.
Or use a local script
Using a local script will not work in a server if you want it to be secure from hackers. Meaning, "FilteringEnabled" being set to true.
Remove their legs and tell them you'll be removing their heads next if they not comply!
5 comments
You do realize that doesn't work...
LOL
Best, IDEA IN THE UNIVERSE!
xD
yes!
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Perfect! Thanks a lot!
I just realized that using this, you can rebind the space key really easily by just adding code! :D
Rebind? The space key will always remain functional, this just deletes the message it sends before Roblox can read it.
I mean you can make the space key do other things. However this doesn't work in servers, which is a problem...
You can make the space key do other things, just use KeyDown or KeyUp events.