When I spawn in my game , I get a GUI When I leave the game and rejoin the GUI is disappeared. You get the GUI by being on a certain team color.
game.Players.PlayerAdded:connect(function(plr) if plr.TeamColor == BrickColor.new("Bright red") then local gui = game.ReplicatedStorage.EditorGui gui.Parent = plr.PlayerGui; end end)
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) wait() char.Parent = game:WaitForChild('Lighting') plr:WaitForChild("PlayerGui") .EditorGui.Enabled = true end) end)
I need help to get it where it will always spawn GUI every new Player joined.
I