I have made this:
if game.Players.NumPlayers >= 4 then end
if game.Players.NumPlayers >= 4 then -- Check for 4 or more players print("There is four or more players in the game") -- Print in output -- Extra Code end
This should work, you never had it to check. You should also add a while true do loop to constantly check if there is 4 players..
while wait() do -- Loop through to constantly do what is inside code if game.Players.NumPlayers >= 4 then -- Check for 4 or more players print("There is four or more players in the game") -- Print in output -- Extra Code end end
If this helped then remember to rate up and accept answer for others.
Your error is that the script is running before there are 4 players in the game, and the script just stops there. You need the script to run over and over to continually check if there are 4 players.
I prefer not to use while loops. I think repeat loops would be better for this. Repeat loops run until the statement after "Until" is true. Then the code continues once the conditional statement is met.
repeat wait() until game.Players.NumPlayers >= 4 print("There is four or more players in the game!")