Here's the script.
local playergui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
if playergui["Waiter/Waitress Board"].TextButton.Page1.Order1.Visible == true then
script.Parent.Name = "Username1"
else
if playergui["Waiter/Waitress Board"].TextButton.Page1.Order2.Visible == true then
script.Parent.Name = "Username2"
else
if playergui["Waiter/Waitress Board"].TextButton.Page1.Order3.Visible == true then
script.Parent.Name = "Username3"
end
end
end
Not working, help..?

2 comments
Please be specific. What exactly are you trying to achieve?
Where is this script located? is a local script or a server script?