Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 10 May 2015 12:15 PM |
local play = {} for a, v in pairs(game.Players:GetChildren()) do if v:IsA("Player") then play[a] = v end end
if not #play > 1 then --error fires here repeat wait() change("Need 2 Players to start...") for a, v in pairs(game.Players:GetChildren()) do if v:IsA("Player") then play[a] = v end end until #play > 1 end
or i tried
if not #game.Players:GetChildren() > 1 ...
both say the error: attempt to compare number with boolean |
|
|
| Report Abuse |
|
|
|
| 10 May 2015 12:16 PM |
if game.Players.NumPlayers <= 1 then
|
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 10 May 2015 12:19 PM |
didnt knwo that existed
gg anyways while i typed it studio crashed.. :'( |
|
|
| Report Abuse |
|
|
|
| 10 May 2015 12:20 PM |
| if #game.Players:GetPlayers() <= 2 then |
|
|
| Report Abuse |
|
|