Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Detecting if a player sits in a seat?

Asked by 10 years ago

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

Log in to vote
1
Answered by
KAAK82 16
10 years ago

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...

0
Thank you :) YellowoTide 1992 — 10y
0
np, thnx for Axccepting :D no1 these days Accepts my Answers... KAAK82 16 — 10y
Ad
Log in to vote
2
Answered by 10 years ago

In a LocalScript in the Gui.

if game.Players.LocalPlayer.Character.Humanoid.Sit == true then
    script.Parent.GuiName.Visible = true
end
0
Yes, but certain seats have special guis generated. So this would not work in this case. YellowoTide 1992 — 10y
0
Oh I didn't know. Grenaderade 525 — 10y

Answer this question