menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Is there a better way to constantly check if
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Is there a better way to constantly check if
veryveryveryhidden
Join Date: 2012-12-16
Post Count: 486
#138689031
Monday, June 30, 2014 1:31 AM GMT
there are the right amount of players in the game while the game is running without putting if getplayers() then --code if getplayers() then --code and so on I was thinking a coroutine, but how would I end the game start function that is running?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
veryveryveryhidden
Join Date: 2012-12-16
Post Count: 486
#138776236
Monday, June 30, 2014 8:41 PM GMT
bumping
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
veryveryveryhidden
Join Date: 2012-12-16
Post Count: 486
#138802783
Tuesday, July 01, 2014 12:40 AM GMT
-.-
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
veryveryveryhidden
Join Date: 2012-12-16
Post Count: 486
#138806058
Tuesday, July 01, 2014 1:11 AM GMT
againz
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
robokittydestroyer
Join Date: 2010-07-20
Post Count: 311
#138806245
Tuesday, July 01, 2014 1:13 AM GMT
Try using a repeat or while loop.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
veryveryveryhidden
Join Date: 2012-12-16
Post Count: 486
#138806945
Tuesday, July 01, 2014 1:20 AM GMT
That wouldn't work, because it restarts after everything has been executed, and I would be yielding.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
B_rcode
Join Date: 2011-08-28
Post Count: 899
#138807571
Tuesday, July 01, 2014 1:26 AM GMT
players = game:GetService("Players") repeat wait() until players:GetPlayers() > 1 or something like that lol
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
veryveryveryhidden
Join Date: 2012-12-16
Post Count: 486
#138808057
Tuesday, July 01, 2014 1:31 AM GMT
Yeah, I was thinking while the game was running
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right