Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my script searching for "player" in Workspace and not the value of player?

Asked by 3 years ago

How do I get my script to search for the value of player in Workspace, which is Robloxusername instead of player? When I execute this script it gives an error that there is no object in Workspace called player but I want the script to find the value of player, which is Robloxusername.

local player = Robloxusername
game.Workspace.player.Head.NameTag.LowerText.Text = "Work"

Answer this question