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

Detecting if a player sits in a seat?

I know its possible by examples I've seen. But I'm not sure how to do it? Trying to make it when you sit in the seat you get a gui popped up in your face :P

2 answers

✓ Accepted answer

Check by the Welds... there's a SeatWeld thats welded to ur Torso, check Part1 in the Property and then check if the Part1's Parent has a Humanoid, if it does then, get the PlayerFromCharacter and stick the Gui into his PlayerGui...

2 comments

0

Thank you :)

0

np, thnx for Axccepting :D no1 these days Accepts my Answers...

In a LocalScript in the Gui.

if game.Players.LocalPlayer.Character.Humanoid.Sit == true then
	script.Parent.GuiName.Visible = true
end

2 comments

0

Yes, but certain seats have special guis generated. So this would not work in this case.

0

Oh I didn't know.

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