I want to disable jumping when on a seat, is there anything that could help me with that? I tried to do all I could but kinda failed.
If there is, please share it and thanks!
I want to disable jumping when on a seat, is there anything that could help me with that? I tried to do all I could but kinda failed.
If there is, please share it and thanks!
This script needs to be placed in each seat you want this to effect.
script.Parent.Touched:Connect(function(Hit)
H = Hit.Parent:FindFirstChild("Humanoid")
if H then
if H.Sit == true then
H.JumpPower = 0
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
plr.Character.Changed:Connect(function(changed) if plr.Character:WaitForChild("Humanoid").Sit == true then plr.Character:WaitForChild("Humanoid").JumpPower = 0 end end) --dont forget to define player yourself!
I always see your posts and I was just wondering why you post a comment instead of an answer.