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

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

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

1 answer

✓ Accepted answer

You can use the touched event.

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

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