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

Can Anyone help me with Player Id?


How do you know a players id, and how do you get the last 3 numbers (always different) Can anyone help me ? Thanks. I did not put the code here because im not sure how to do it in itself if anyone can give me hints or anything please help?

2 answers

✓ Accepted answer

There are many ways you can retrieve the player's userId. Here's a short script that prints the userId when they join the server. Also to note, it is impossible to get just the last three numbers of a userId.

game.Players.PlayerAdded:connect(function(player) --When a player joins they create this function called 'player'
      print("User ID: " ..player.userId) --We indicated the userId with '.userId' inside 'player'.
end)

1 comment

0

Thanks! Helped a lot!

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