-
What do you want to achieve?
I would like to change a TextLabel’s text to the LocalPlayer’s username. -
What is the issue?
The text will not change, but when printing the text’s value, the value is the LocalPlayer’s username. -
What solutions have you tried so far?
I’ve tried many different things. I’ve tried to change the way the script get’s LocalPlayer, I’ve tried changing the variables, nothing has changed.
The code:
local frame = script.Parent.Frame.Frame
local plr = game.Players.LocalPlayer
local username = frame.Username.Text
print(plr)
username = plr
print(username)
The output prints “username” as the player’s username, but the text still doesn’t change.
Thanks to anyone who helps!
P.S.
This topic may be a duplicate, which I am sorry about, but I searched for many different queries and none of them gave me the answers I needed.
Also, I am, uh, quite a noob scripter in case you couldn’t tell, heheh.