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

How can I get a players id when they sit in a seat?

Asked by 9 years ago

I need this for a car that regenerates and gets removed depending on who got in it first after it regenerated.

1 answer

Log in to vote
0
Answered by 9 years ago

You can use the touched event.

script.Parent.Touched:connect(function(char)
player = game.Players:FindFirstChild(char.Parent.Name)
userid = player.UserId
end)
Ad

Answer this question