I am working on a project and it all depends on me being able to allocate the UserId of the player and check to see if it matches the allowed one. How would I find the UserId from my LocalPlayer? Would it be through game.Players.LocalPlayer.Character? What is the best method for this? Thanks so much!
Just use the userId property, i.e.
print(game.Players.Player.userId)
If your only purpose is to allow only certain people to join the game, however, why would you not simply use their name?
In every player there are many options to choose from. For this occasion scroll down to userId
--Example-- (IN LOCAL SCRIPT)
print(game.Players.LocalPlayer.userId)