Hello, I'm making a profile gui and I need the local player's name to replace the textlabel text. I got this script that goes inside the gui but doesn't work:
local player = game.Players.LocalPlayer
local gui = game.StarterGui.leftmain
game.Players.PlayerAdded:connect(function()
gui.nameframe.TextLabel = game.Players.LocalPlayer.Name
end)
game.startergui.leftmain = where the gui is gui.nameframe.textlabel = nameframe is the frame and textlabel is where the username should go but it doesn't work, any solutions?
