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
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
| |
|
|
| 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
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
| |
|