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

Detect if someone is sitting on the seat?

Is the only way to do so is to make an onTouch to the seat and check if the player's Humanoid Sit == true?

1 answer

✓ Accepted answer

Assuming the script is in the seat,

script.Parent.ChildAdded:connect(function(weld)
	chr =  weld.Part1.Parent -- That is the character that is sitting in the seat.
	plr = game.Players:GetPlayerFromCharacter(chr) -- This is the player that is sitting in the seat.
	-- put code in here
end)

2 comments

0

Thanks

0

No problem!

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