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
You're putting
script.Enabled == true
try
script.Disabled == false
,