In the local script, you’re not sending the userid, you’re sending the player that you got with the userid with GetUserIdFromNameAsync. You’re basically sending a player variable.
Also, when printing the player’s name, don’t do print(Player), as you’re printing the instance and not the string/name. Use print(Player.Name).
Try replacing the UserId in the local script with game.Players.LocalPlayer.UserId just for checking purposes and reply with the output. I think that might fix it, as the server’s picking up a player instance.
that worked and did as the code told it to do.
but im trying to get the id from the player name in a textbox which prints the user id but returns to nil when i try to turn the userid into a player