use the humanoid.Seated event to get the “Sit” property on the humanoid or using the GetPropertyChangedSignal on a seat if you want to make it detect only one seat
local Seat = script.Parent -- path to seat
Seat:GetPropertyChangedSignal("Occupant"):Connect(function()
if Seat.Occupant ~= nil then
local Char = Seat.Occupant.Parent
Char["HumanoidRootPart"].Anchored = true
-- Can also set their jump power if wanting, your preference
end
end)
humanoid.Seated:Connect(function(boolean: seated,instance: seat)
-- function here
end)
also please replace the placeholders for the message