How to get a Players Username based on a string?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    How to get a Players Username based on a string?
  2. What is the issue? Include screenshots / videos if possible!
    When I put player connected OnServerEvent, the player.Name isn’t really registering as the players user when the Server.HandleJoinRequest fires.
    It’s not getting the players username, it’ll give me an error:
    Error: Required argument “userId” is missing
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

No solutions, even tried looking at other forums.