I'm making a small GUI that displays the Users name, but I can't figure out why it won't change from Label to the username

Here’s the script. I don’t know why this wouldn’t work. But it doesn’t so can any of you tell me why?

local DisplayedName = script.Parent
local player = game.Players.LocalPlayer

DisplayedName.Text = player.Name

Here’s a picture of it
image

you cant get the localplayer in a serverscript, use localscript
image

I’m so stupid. Thank you alot!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.