How can I make a player unable to leave a seat?

Hello, I want to make a player unable to leave a seat. (Similar to breaking point.) I have tried welding the plr’s legs to the seat but that made them fly across the map. Any suggestions? Thanks!!

Maybe this thread would help?

I believe you can achieve that by changing Humanoid.JumpHeight to 0

1 Like

changing the Humanoids JumpPower to 0 seems to work for me

yes, like @uhSkittle said.

Alr, I’ve tried this and what @Valkyrop suggested, and it still doesn’t work. I also earlier forgot to specify that it’s a vehicle seat.

Anchor the players humanoid root part maybe? Not sure just a random idea.

--SERVER

local Game = game
local Players = Game:GetService("Players")
local Player = Players.LocalPlayer

local Seats = {} --Cache of each player's last seat.

local function OnPlayerAdded(Player)
	local function OnCharacterAdded(Character)
		local Humanoid = Character:FindFirstChildOfClass("Humanoid") or Character:WaitForChild("Humanoid", 10)
		if Humanoid then
			local function OnHumanoidSeated(Active, Seat)
				if Active then
					Seats[Player] = Seat
				else
					Seat = Seats[Player]
					if Seat then
						Seat:Sit(Humanoid)
					end
				end
			end
			Humanoid.Seated:Connect(OnHumanoidSeated)
		end
	end
	Player.CharacterAdded:Connect(OnCharacterAdded)
end

local function OnPlayerRemoving(Player)
	Seats[Player] = nil
end

Players.PlayerAdded:Connect(OnPlayerAdded)
Players.PlayerRemoving:Connect(OnPlayerRemoving)

Simply set the player’s jump power/jump height to 0. It will make them unable to leave the seat. :slight_smile:

I forgot to tell you this yesterday but I figured out it wasn’t working cause I forgot to set jumppower enabled instead of jumpheight. Thanks!