How to make game wait for enough players?
Currently making a game and I want a script to wait before there are at least 4 players before it begins the round.
02 | local hint = Instance.new( "Hint" ) |
04 | while round = = false do |
05 | if script.Parent.val.Value < 5 then |
06 | hint.Parent = game.Workspace |
07 | hint.Text = "Waiting for Players" |
09 | hint.Parent = game.Workspace |
10 | hint.Text = "Game Will Begin Shortly" |
val is the name of the value which contains the playercount number, it's working fine, whenever I change the intvalue to a number over 5, the script works and the game begins, however, when I try changing the intvalue during the game, It gets stuck on the "Waiting for Players" part.