Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it possible to disable jump while sitting down on a seat?

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!

2 comments

0

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!                                                                                              

0

I always see your posts and I was just wondering why you post a comment instead of an answer.

1 answer

✓ Accepted answer

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.