Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My admin only gui screen gui is not working consistely. What am I doing wrong?

I am working on a theater, and I have a script that makes a certain gui only visible to certain pre-determined players, but it seems to be faulty in some way, since it does not work all of the time. Here is the script:

local plr = game.Players.LocalPlayer if plr.Name == "W0olfs" then repeat wait() game.Players["W0olfs"].PlayerGui.TheaterCotrols.Enabled = true until game.Players["W0olfs"].PlayerGui.TheaterCotrols.Enabled == true else if plr.Name == "JakePlays_TV" then repeat wait() game.Players["JakePlays_TV"].PlayerGui.TheaterControls.Enabled = true until game.Players["JakePlays_TV"].PlayerGui.TheaterControls.Enabled == true end end

1 answer

You're putting

script.Enabled == true

try

script.Disabled == false

,

This discussion is preserved as it was. New answers, comments, and votes are closed.