I want it to be like a minigame script but it's not working for me. It goes straight to "Not enough players! Sorry!"
local Gui = game.StarterGui.TextGui.Text1
local playernum = 1 -- I have it at 1 for testing
while wait(1) do
Gui.Text = "It is required to have " .. playernum .. " users in the server to begin!"
wait(2)
if game.Players.NumPlayers > playernum then
Gui.Text = "Not enough users! Sorry!"
if game.PLayers.NumPlayers >= playernum then
Gui.Text = "Enough users to start the minigames!"
break
end
end
end
|