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

How do I get a player's team color if he is seated?

Asked by 8 years ago

Or any other information about the player.

0
seated as in a seat or seated as in the humanoid sit = true? User#5423 17 — 8y
0
Seated as in the player is currently sitting on a VehicleSeat or a normal Seat. tibiscus 0 — 8y
0
You can use the occuoant propertie to get the information you need http://wiki.roblox.com/index.php?title=API:Class/Seat/Occupant User#5423 17 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

If this helps you at all please do accept the answer as it will benefit me some :)

you can make a touched function using the following lines of code.

script.Parent.Touched:connect(function(h)
    h.Parent.TeamColor
end)

or if that doesn't work maybe this will

h.Parent.Character.TeamColor
Ad

Answer this question