this script is meant to get the name of the player and put it on textlabel. way=true while way==true do script.Parent.Text = "" ..script.Parent.Parent.Parent.Parent.Parent.Parent.Name.. "" way=false end
where the script is https://gyazo.com/bd2a809ae81acfcc2e932a8939741aae
instead of saying the player's name it ends up saying game
The parent of lighting is game, if you put the script in startergui or starterpack it should work as the parent will then be the player!
Please use codeblocks for your code.
Also, I assume this is a LocalScript.
local player = game.Players.LocalPlayer -- accesses the player local character = player.Character or player.CharacterAdded:Wait() -- waits for the character to be loaded if it is not found way = true while way == true do script.Parent.Text = "" ..player.Name.. "" --I don't see a point in having " " if there is nothing inside of it. way = false end