|
| 15 Aug 2016 08:55 PM |
this is my script i need help add zombie death to count but am haveing truble
Game.Players.PlayerAdded:connect(function(Player) Leaderboard = Instance.new'IntValue' Leaderboard.Name = 'leaderstats' Leaderboard.Parent = Player Kills = Instance.new'IntValue' Kills.Name = 'Kills' Kills.Parent = Leaderboard Deaths = Instance.new'IntValue' Deaths.Name = 'Deaths' Deaths.Parent = Leaderboard Player.CharacterAdded:connect(function(Character)wait() -- I wait to allow time for all character objects to load. Character.Humanoid.Died:connect(function() Deaths.Value = Deaths.Value+1 wait() -- Let's give the weapon time to make the creator object xD if Character.Humanoid:FindFirstChild'creator'then -- Make sure our faulty weapon wont break the leaderboard... Killer = Character.Humanoid.creator.Value Killer.leaderstats.Kills.Value = Killer.leaderstats.Kills.Value+1 end end) end) end) |
|
|
| Report Abuse |
|