|
| 03 Mar 2014 10:05 AM |
while true do wait() for _,v in pairs(game.Players:GetChildren()) do alive = v:FindFirstChild("Alive") if alive ~=nil then if v.Name ~= script.Parent.ChosenValue.Value then if v.Alive.Value == false then script.Parent.Game.Value = false end end end end end
It works. But, it does the required function when only ONE of the player's alive value is set to false, how do I make it so it only sets the value to true if ALL the players alive value is false?? It's a very simple question.
Answers about the script: -It's disabled, the game script activates it. -There are values in all players called by the script. -I have a script that sets there value to false on death. |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 10:08 AM |
| Early bump. I can tell, My game will never be fixed. |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 10:13 AM |
| Later bump, my game will never be the same. |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 10:14 AM |
| Ok, I'll wait awhile before bumping this again, wait, this was considered a bump.. Sorry! |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 03 Mar 2014 10:15 AM |
while true do wait() local num local ply = game.Players:GetPlayers() for _,v in pairs(ply) do alive = v:FindFirstChild'Alive' if alive then if v.Name ~= script.Parent.ChosenValue.Value then if v.Alive.Value == false then num = num + 1 end else num = num + 1 end else num = num + 1 end end if num == #ply then script.Parent.Game.Value = false end end
|
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 10:16 AM |
| I'm scared to try this. Thanks! |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 10:35 AM |
Sigh, it ends the game right when it begins.
I'm done. |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 10:57 AM |
You wait for 08:05 AM to 08:35 and then give up? Wow a whole 30 minutes.
while true do wait() local players = game.Players:GetPlayers() local alive = #players-1 for _,v in pairs(players:GetPlayers()) do alive = v:FindFirstChild("Alive") if alive ~= nil and v.Name ~= script.Parent.ChosenValue.Value and v.Alive.Value == false then alive = alive-1 end end if alive <= 0 then script.Parent.Game.Value = false end end |
|
|
| Report Abuse |
|
|
Voidition
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
| |
|
|
| 03 Mar 2014 11:13 AM |
Thank you Free, as for you Void, Try bumping your post. Going on other's problems and throwing in that you need his help, come on. Be reasonable. |
|
|
| Report Abuse |
|
|