generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

zombie leader board script

Previous Thread :: Next Thread 
swifty420 is not online. swifty420
Joined: 20 May 2016
Total Posts: 6
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image