StaySpy
|
  |
| Joined: 04 Jan 2009 |
| Total Posts: 2311 |
|
|
| 04 May 2014 05:33 AM |
local plr = game.Players:GetPlayers() for i = 1, #plr do local booo = plr[i]Character:FindFirstChild("bal1") --HERE local booo2 = plr[i]Character:FindFirstChild("bal2") if booo or booo2 then table.remove(plr, i) end end |
|
|
| Report Abuse |
|
|
|
| 04 May 2014 05:37 AM |
local plr = game.Players:GetPlayers() for i = 1, #plr do local booo = plr[i]Character:FindFirstChild("bal1") --HERE local booo2 = plr[i]Character:FindFirstChild("bal2") if booo or booo2 then table.remove(plr, i) end end
your forgot .
plr[i].Character
|
|
|
| Report Abuse |
|
|
StaySpy
|
  |
| Joined: 04 Jan 2009 |
| Total Posts: 2311 |
|
|
| 04 May 2014 05:39 AM |
Br, as long as I remember, there is no difference. Anyways, the output log shows the same. |
|
|
| Report Abuse |
|
|
|
| 04 May 2014 05:40 AM |
local plr = game.Players:GetPlayers() for i = 1, #plr do local booo = plr[i].Character:FindFirstChild("bal1") --HERE local booo2 = plr[i].Character:FindFirstChild("bal2") if booo or booo2 then table.remove(plr, i) end end |
|
|
| Report Abuse |
|
|
StaySpy
|
  |
| Joined: 04 Jan 2009 |
| Total Posts: 2311 |
|
|
| 04 May 2014 05:42 AM |
| Once again, the output log shows the same. |
|
|
| Report Abuse |
|
|
StaySpy
|
  |
| Joined: 04 Jan 2009 |
| Total Posts: 2311 |
|
|
| 04 May 2014 05:45 AM |
Owait. Now it shows this:
Workspace.Tourney:84: attempt to index field '?' (a nil value) |
|
|
| Report Abuse |
|
|
| |
|
StaySpy
|
  |
| Joined: 04 Jan 2009 |
| Total Posts: 2311 |
|
|
| 04 May 2014 05:49 AM |
| Exactly where I wrote --HERE |
|
|
| Report Abuse |
|
|
|
| 04 May 2014 05:52 AM |
local plr = game.Players:GetPlayers() for i = 1, #plr do if plr[i] and plr[i].Character then local booo = plr[i].Character:FindFirstChild("bal1") --HERE local booo2 = plr[i].Character:FindFirstChild("bal2") if booo or booo2 then table.remove(plr, i) end end end |
|
|
| Report Abuse |
|
|
StaySpy
|
  |
| Joined: 04 Jan 2009 |
| Total Posts: 2311 |
|
|
| 04 May 2014 06:05 AM |
| Thanks! Hope I'll not encounter too many bugs now. I think I can reveal the game to the public :D |
|
|
| Report Abuse |
|
|