WolfzBoii
|
  |
| Joined: 29 Jul 2013 |
| Total Posts: 135 |
|
|
| 14 Jun 2014 11:22 AM |
(there are parts before this bit;) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() a.Value = "Dead" game.Workspace.PlayersAlive.Value = Workspace.PlayersAlive.Value - 1 ( <-- This bit does not execute) end) end) end)
|
|
|
| Report Abuse |
|
|
WolfzBoii
|
  |
| Joined: 29 Jul 2013 |
| Total Posts: 135 |
|
|
| 14 Jun 2014 11:23 AM |
I was expecting the "PlayersAlive" Value to change after a player dies. However it does not work. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 11:24 AM |
| You didn't define the variable "a". Since it doesn't exist, the script failed to execute the rest of the code. |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 11:25 AM |
game.Workspace.PlayersAlive.Value = game.Workspace.PlayersAlive.Value - 1
try that. |
|
|
| Report Abuse |
|
|
WolfzBoii
|
  |
| Joined: 29 Jul 2013 |
| Total Posts: 135 |
|
| |
|
| |
|
WolfzBoii
|
  |
| Joined: 29 Jul 2013 |
| Total Posts: 135 |
|
| |
|