Error with changing GUI text from a script?
01 | local status = game.Workspace.Control.Status.StatusColor |
02 | local lights = script.Parent.Parent.Status:GetChildren() |
03 | local players = game.Players:GetPlayers() |
05 | status.Changed:connect( function () |
06 | if status.Value = = 0 then |
08 | lights [ i ] .BrickColor = BrickColor.new( 'Forest green' ) |
11 | for i = 1 , #players do |
12 | players [ i ] .PlayerGui.ThreatLevel.Frame.TextLabel.Text = "Threat Alpha has been triggered" |
no errors in workspace
what it's trying to do is get all the players from game.Players and then change the GUI once .status is == 0 I checked in workspace when in server test and the .status value did = 0 the top part is working it's just the part where it's changing the GUI text isn't