Not Jump Height, Jump Power.
Humanoid.JumpPower = 0
Changing the JumpPower or JumpHeight property of Humanoid won’t help because the jump is still registering, therefore the player gets out.
Found this forum answering your question Though
Let me know if anything works! or doesnt
I think this should work, I’ll definitely check it tomorrow. But won’t there be bugs if, when the player sits down, the gui opens, and when the player jumps, it becomes invisible?
Use that script and also set Game Settings/World/Jump … Height and Power 0
I use this in a game where I don’t want the player to jump out of a seat.
Your method works if you only need to remove the ability to jump, but I need the player to be unable to jump out of the chair. Systematically, when the player presses the jump button, a deletion occurs weld
“How to prevent a player from jumping out of a seat”
“I need the player to be unable to jump out of the chair.”
Then you set it when you don’t want them to jumping out of a seat.
Unfortunately, sometimes the translator does not translate exactly what I would like to say
Thank you all for your attempts to help me, I really appreciate it. But I found a way that helped me.
local ContextActionService = game:GetService('ContextActionService')
ContextActionService:UnbindAction("jumpAction")
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.