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

Help with UserId's?

2 answers

✓ Accepted answer

What your looking for is this.

game.Players:GetUserIdFromNameAsync()

in the () put the username inside of it, and it will return the UserID.

1 comment

0

Thank you so much!! It works perfectly!

Depending on where the gui is, you can simply just do script.Parent.Parent.Parent.UserId (Or where the Parent.UserId ends) until you get the actual player. Or, use game.Players.LocalPlayer.UserId Should get the UserId.

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