|
| 08 Mar 2016 09:09 PM |
For some reason, poop always seems to be true, even if the player doesn't have the "pyro value" in their playergui. Does anyone know why? Help!
for index, player in pairs(activecontestants) do if player.Character and player.Character:FindFirstChild("Humanoid") then game.Players.PlayerRemoving:connect(function() for index2, player2 in pairs(activecontestants) do if player2 == player then table.remove(activecontestants, index2) if player2.PlayerGui:FindFirstChild("PyroValue") then poop = true end end end end) end end |
|
|
| Report Abuse |
|
|
LuaLlama
|
  |
| Joined: 25 Jan 2014 |
| Total Posts: 1123 |
|
|
| 08 Mar 2016 09:18 PM |
| try setting poop to false when you initialize. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2016 09:19 PM |
| yes, poop is earlier set to false |
|
|
| Report Abuse |
|
|
LuaLlama
|
  |
| Joined: 25 Jan 2014 |
| Total Posts: 1123 |
|
|
| 08 Mar 2016 09:20 PM |
| try setting it every time the loop restarts |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2016 09:35 PM |
| this didn't seem to help... |
|
|
| Report Abuse |
|
|
| |
|
Fatul
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 254 |
|
|
| 08 Mar 2016 11:21 PM |
| Try to see if you have any other script that may mess with 'poop' |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2016 08:08 PM |
I realized my script made like no sence (lol) and i changed it to this and now it works yay!!!!!!
game.Players.PlayerRemoving:connect(function(player) for i,v in pairs (activecontestants) do if v.Name == player.Name then table.remove(activecontestants, i) if player.PlayerGui:FindFirstChild("PyroValue") then print("Found value") poop = true end end end end) |
|
|
| Report Abuse |
|
|