of     1   

George_Becker
#154654511Sunday, January 25, 2015 10:21 PM GMT

while wait() do for i,v in pairs(game.Players:getPlayers()) do if v.Character.Humanoid.Health == 0 or v:FindFirstChild("Alive").Value == false then v:FindFirstChild("Alive").Value = false wait(7) ---MY CODE WOULD BE HERE end end end For some reason, this works once and then it doesn't work again. So let's say I die this code works, then if I die again it doesn't work. Why does this occur?
George_Becker
#154655467Sunday, January 25, 2015 10:31 PM GMT

Bump
George_Becker
#154657799Sunday, January 25, 2015 10:54 PM GMT

Bump
George_Becker
#154668626Monday, January 26, 2015 1:11 AM GMT

Bump[2?!?!?!}
George_Becker
#154669777Monday, January 26, 2015 1:27 AM GMT

Bump[3!!!!]
Poseidas
#154672058Monday, January 26, 2015 1:54 AM GMT

better plan: game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) Character.Humanoid.Changed:connect(function(change) if Humanoid.Health <= 0 then wait(7) --Insert code here end end) end) end) Much more efficient bro. K.
George_Becker
#154672377Monday, January 26, 2015 1:58 AM GMT

So would this fix the issue?
Poseidas
#154673128Monday, January 26, 2015 2:07 AM GMT

Just change anything in the "--MY CODE WOULD BE HERE" Bit that has "v.Character" to just "Character" and you should be good. Oh, but the "Alive" value is not needed now.
Poseidas
#154673196Monday, January 26, 2015 2:08 AM GMT

If for some reason you need the alive value, then here: game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) Character.Humanoid.Changed:connect(function(change) if Humanoid.Health <= 0 then Player.Alive.Value = false wait(7) --Insert code here end end) end) end)
George_Becker
#154674330Monday, January 26, 2015 2:22 AM GMT

Wait, I am a little confused. It's not working.
Poseidas
#154742552Tuesday, January 27, 2015 2:41 AM GMT

Well you do have to modify the rest of your code to work with it.
George_Becker
#154745223Tuesday, January 27, 2015 3:13 AM GMT

Nope. Tested and doesn't work
ColdDeveloper
#154746665Tuesday, January 27, 2015 3:31 AM GMT

Wrong Fourm, Go to the scripting fourm
vortexyamum
#154747000Tuesday, January 27, 2015 3:36 AM GMT

@ColdUndermined This is the right forum since SH and BH got removed. Scripters isn't for help requests, just anything that is scripting and isn't a help request.
ColdDeveloper
#154748953Tuesday, January 27, 2015 4:00 AM GMT

Actually, Everyone asks for help on Scripting fourm, SH was merged with it.
Poseidas
#154776352Tuesday, January 27, 2015 6:45 PM GMT

To my knowledge, SH and BH merged here. To make a game (ie "Game Design") you need to know how to build AND script.
George_Becker
#154990059Saturday, January 31, 2015 4:47 AM GMT

bump
George_Becker
#155150649Monday, February 02, 2015 1:34 AM GMT

ANOTHER bump

    of     1