I've been working on a textlabel that's text equals the local player, but the script in my localscript won't work.
local player = game.Players.LocalPlayer player.name = script.Parent.Username.Text
You can't change the player's name, you can change a TextLabel's Text to a players name. So first since we are dealing with GUI's, we have to deal with the Client. This means a LocalScript
Alright, so what you want to do is this:
local plr = game.Players.LocalPlayer local TextLabel = script.Parent -- Put the localscript inside the TextLabel TextLabel.Text = plr.Name -- Set the text to player's name
Hopefully, this helped you.
Best of luck developer!
I know it doesn't work the script is:
script.Parent.Text = game.Players.LocalPlayer.Name