hey i was searching a method to completely disable character jump from player, i found out that even with 0 jumpheight and jumppower, if player is seated and jumps, he still gets up from seated state, i also tried to disable jump humanoid state, works but is server sided (did on client sided).
I had this same problem in the past too, I’m assuming what’s happening to you is that editing jump power is not effecting the player. What fixed it for me was going into “Game Settings” then “World”, and then looking for “Jump” and clicking the Jump Power option. There you can also set the jump power (which if you set to 0 disables jumping). You can change the Jump Power again at any time by setting the Humanoid.JumpPower property to any number you like.
Bottom Line: You have to “enable” Jump Power in Game Settings.
local player = game:GetService("Players").LocalPlayer
player.CharacterAdded:Wait()
local humanoid = player.Character:WaitForChild("Humanoid")
humanoid:GetPropertyChangedSignal("Sit"):Connect(function()
if humanoid.Sit == true then
humanoid.JumpPower = 0
else
return
end
end)
This should all work on a local script.
Note that this will only work if you select the Jump Power option in game settings.
Strange… It works fine for me. Try referring to this video:
Prehaps I miss understood, do you want to make it so when the player sits down, they are unable to get back up?
not really, i just touch a part, my character sits and it shouldnt be able to get up until i reset/die
heres the script function:
local function Freeze(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid and hit.Parent == player.Character then
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
humanoid.JumpHeight = 0
humanoid:GetPropertyChangedSignal("Sit"):Connect(function()
if humanoid.Sit == true then
humanoid.JumpPower = 0
else
return
end
end)
end
end
local function Sit(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid and hit.Parent == player.Character then
humanoid.Sit = true
end
end