I have been using the following simple script to prevent jumping in my current project, since there’s not a property of the Humanoid you can use to disable jumping.
However, in the latest update, for whatever reason, this no longer works online (however, it continues to successfully prevent jumping in Play Solo).
Can we get this functionality back or just have a Humanoid property “CanJump”?
While we’re improving the Humanoid, is it possible to add :StopAllAnimations()
When creating a fully custom Animation script, if you remove the default Animation script immediately, it still runs enough to start the idle animation which will play forever, so my character is constantly bobbing up and down. I can remove the Humanoid and put in a new one but then things get kinda hacky (like it doesn’t respawn when the new Humanoid dies, so I have to swap Humanoids back and kill the original one when the new one dies).
player = game.Players.LocalPlayer
repeat character = player.Character wait() until character
Humanoid = character:FindFirstChild("Humanoid")
Humanoid.Changed:connect(function()
Humanoid.Jump = false
end)
function NJ(prop)
if cha ~= nil then
cha.Humanoid.Jump = false
send:FireServer("Jump",cha.Humanoid,false)
-- idk if above line is necessary, but I dont have it commented out
end
end
antij = cha.Humanoid.Changed:connect(NJ)
[code]
function NJ(prop)
if cha ~= nil then
cha.Humanoid.Jump = false
send:FireServer(“Jump”,cha.Humanoid,false)
– idk if above line is necessary, but I dont have it commented out
end
end
antij = cha.Humanoid.Changed:connect(NJ)
[/code][/quote]
Works on my FilteringEnabled game.
[code]
function NJ(prop)
if cha ~= nil then
cha.Humanoid.Jump = false
send:FireServer(“Jump”,cha.Humanoid,false)
– idk if above line is necessary, but I dont have it commented out
end
end
antij = cha.Humanoid.Changed:connect(NJ)
[/code][/quote]
Works on my FilteringEnabled game.[/quote]
How about a property that adjusts the height of the jump. It’s pretty crazy that by default, every jump is as high as your character height. I’d be blown away if everyone IRL could jump as high as their height, it’s unrealistic. This takes away from the realism that some games try to achieve, like multiplayer shooters. This would also allow for disabled jumping that some games may also want, by setting the jump height to 0. And if it’s set to 0, the jumping animation doesn’t play at all.
A script as simple as this should work without any problems if used in a LocalScript. At least, I checked a few gear I’ve made recently, and they all seem to be working perfectly fine.
Humanoid = script.Parent
Humanoid.Changed:connect(function(Property)
if Property == "Jump" then
Humanoid.Jump = false
end
end)