I want GameScript, SithTeamChecker and JediTeamChecker to be enabled when the number of players in the server is 2 or above and if there is only 1 player in the server, the scripts are disabled.
NumberOfPlayers = game.Players.NumPlayers
GameScript = game.Workspace.GameScripts.GameScript
SithTeamChecker = game.Workspace.GameScripts.SithTeamChecker
JediTeamChecker = game.Workspace.GameScripts.JediTeamChecker
while NumberOfPlayers == 0 or 1 do
GameScript.Disabled = true
SithTeamChecker.Disabled = true
JediTeamChecker.Disabled = true
end
Would this script do this?
Thanks.

1 comment
It wouldn't work, but you should always test your code yourself rather than asking others if it will work. It's great for getting in the practice of debugging