How to make a Players Name on a SurfaceGui

Hello!

I am working on a game and would like the players name on hat

4 Likes

You can’t ask for a direct code but all I’m gonna say is

Define the player (Local Player) then do the text with player.Name.

1 Like

Ok thank you!

beepppppppppppppppppppppp

1 Like

If I understood correctly, then the script should look like this:

wait (1/60)
local player = game.Players.LocalPlayer
player.PlayerGui.ScreenGui.Name = player.Name
1 Like

You don’t even need a wait at all.
The code below it should work just fine everytime.