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

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

Asked by 5 years ago

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

Log in to vote
0
Answered by 5 years ago

You're putting

script.Enabled == true

try

script.Disabled == false

,

Ad

Answer this question