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

How to make a seat which you can't jump off of?

How do i make a seat which you can't jump off of?

1 comment

0

Just set the jump power of the humanoid to zero when they get on the chair.

2 answers

Script:

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		while true do
			if char.Humanoid.Sit == true then
				char.Humanoid.JumpPower = 0
			end
			wait()
		end
	end)
end)

Set a variable for their humanoid however you want to and connect the changed function to it. Say “if humanoid.Sitting then humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false) end”

This discussion is preserved as it was. New answers, comments, and votes are closed.