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!

3 comments
^^ Is very true! PlayerGui is used to define what the player sees!
plr is not a valid member of DataModel it gives me that error. I tried to resolve it but it doesnt work. The code isnt wrong , so idk why tho is it some other error?
Is there another part of the script?