Hi developers! It’s me again. My problem is to stopping players from jumping by setting JumpPower to 0, but it doesn’t work. I tried multiple times but it still doesn’t work.
This the code I wrote:
script.Parent.JumpPower = 0
Hi developers! It’s me again. My problem is to stopping players from jumping by setting JumpPower to 0, but it doesn’t work. I tried multiple times but it still doesn’t work.
This the code I wrote:
script.Parent.JumpPower = 0
Hi I think it doesn’t work because CharacterUseJumpPower property in character jump settings is disabled by default if you want to use JumpPower enable it but otherwise you can use Humanoid.JumpHeight instead
I’m no scripting expert but I’m pretty sure you have to identify all of the player in the game and then set their jump power to 0
Hi,
I don’t think jump power removes the jumping animation. An alternative is to set the jump state to false so the player cannot jump. I’m assuming this script is in the starter character?
Try this script to disable jumping:
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
And this to enable it:
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
Thanks it works! I didn’t know that, also thank you again for a way to fix it and my new knowledge.