Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How do i make people not able to jump?

Asked by 10 years ago

I'm trying to find out how to make someone NOT able to jump. I've seen other people do this... Can anyone help out?

2 answers

Log in to vote
0
Answered by
Lacryma 548 Moderation Voter
10 years ago

LOCAL SCRIPT IN STARTERGUI

local plr = game.Players.LocalPlayer
local hum = plr.Character:WaitForChild("Humanoid")

hum.Changed:connect(function()
hum.Jump = false
end)
Ad
Log in to vote
0
Answered by 10 years ago

Make a localscript, and put it in the player, and type this as the code:

local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character.Humanoid
Humanoid.Changed:connect(function()
    Humanoid.Jump = false
end)

This will constantly make the Jump false whenever the script detects that the humanoid tried to jump. Hope this helped!

Answer this question