local plr = game:GetService("Players").LocalPlayer local name = plr.Name local change = game.StarterGui.ScreenGui.TextLabel local player = game:GetService("Players") player.PlayerAdded:Connect(function() change.Text = name end)
Not sure why its not working. I tried it without player added and end) but what I did was print(name) and it actually printed my name so I dont see why it should not work. I suspect its the playeradded part which I made a mistake but I just cant figure out what. Please help thanks!
local plr = game:GetService("Players").LocalPlayer local name = plr.Name local change = game.plr.PlayerGui.ScreenGui.TextLabel local players = game:GetService("Players") players.PlayerAdded:Connect(function() change.Text = name end)
Don't use startergui, after the game loads "startergui" becomes "playergui" in each player. StarterGui is to put GUIs which EACH player will start with. PlayerGui is what a certain player has as their UI.
https://scriptinghelpers.org/questions/104505/how-do-i-change-text-to-players-name
the same thread but solved :) hope it helps