Voidition
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
|
| 23 Apr 2014 10:33 AM |
No output, no nothing, doesn't work, please tell me what I'm doing wrong!
local aliveplayers = game.Players:GetPlayers() local alive = game.Workspace:FindFirstChild("AlivePlayers") local beast = game.Workspace:FindFirstChild("AliveBeast") alive.Value = #aliveplayers beast.Value = 1
game.Players.PlayerRemoving:connect(function(player) if player.Backpack.Alive.Value == true then alive.Value = alive.Value - 1 elseif player.Backpack.Beast.Value == true then beast.Value = beast.Value - 1 end end)
game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() if player.Backpack.Alive.Value == true and player.Backpack.Beast.Value == false then alive.Value = alive.Value - 1 elseif player.Backpack.Alive.Value == false and player.Backpack.Beast.Value == true then beast.Value = beast.Value - 1 end end) end) end)
if alive.Value <= 1 then _G.notAlive() end if beast.Value < 1 then _G.beastLeft() end |
|
|
| Report Abuse |
|
|
Voidition
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
| |
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 23 Apr 2014 12:50 PM |
| No helping for copyers. I dont think you will get any answers. |
|
|
| Report Abuse |
|
|
Voidition
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
|
| 23 Apr 2014 12:52 PM |
| wat, i didnt copy anything |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
|
| 23 Apr 2014 12:53 PM |
| First off, you need to say what it does and what it's supposed to do. Give as much information as possible. Secondly, that's not a very good way to keep track of things. One mistake and you get skewed forever. Instead of keeping track of alive and beast like that, you should do a check per frame or so. |
|
|
| Report Abuse |
|
|
Voidition
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
|
| 23 Apr 2014 12:56 PM |
| basically this script just runs a function when a player dies, if the value Alive in his backpack is set to true the value AlivePlayers get's decreased by 1, same for the Beast value, if the Alive value is lower or equal to 1 then it runs a global function, same for the beast value |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 23 Apr 2014 12:58 PM |
| I thought you were kinda copying Darkness (now Darkness 2). But i'll keep an eye on you. |
|
|
| Report Abuse |
|
|
Voidition
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
|
| 23 Apr 2014 01:06 PM |
| first of all, go play my game the beast before you tell me im copying something |
|
|
| Report Abuse |
|
|
Voidition
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
| |
|