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
 

Re: how to detect double kills

Previous Thread :: Next Thread 
Roblok1 is not online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
27 Jul 2016 01:24 AM
i am making my own leaderboard script that people are getting KOs a lot. i want to add a way to award players for scoring multi KOs.

anything will do really...


Report Abuse
Roblok1 is not online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
27 Jul 2016 01:42 AM
please tell me


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
27 Jul 2016 02:07 AM
local script in starter character

declare Kills as the value in leaderstats

local kills = Kills.Value

Kills.Changed:connect(function(d)

if d - kills == 2 then

--DOUBLE KILL

elseif d - kills == 3 then

--TRIPLE KILL

end

end)



The reason why this works is because every time you die it will save kills as the current amount of kills that you have.
When you get more kills, it will see how many kills you earned since you respawned.
Report Abuse
Roblok1 is not online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
27 Jul 2016 02:18 AM
ok i will try t


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