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 » Scripting Helpers
Home Search
 

Re: If KO increases by one add 1 more KO

Previous Thread :: Next Thread 
viplav37 is not online. viplav37
Joined: 17 Aug 2011
Total Posts: 1918
05 Jul 2014 08:24 AM
I mean award 2 KOS for 1 KO change?
I am totally blank about leaderboards(never made it)
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
05 Jul 2014 08:50 AM
Umm... That would cause a theoretical infinite loop that will keep multiplying exponentially until eventually the world crashes.


Or just ya know, make roblox crash XD
Report Abuse
viplav37 is not online. viplav37
Joined: 17 Aug 2011
Total Posts: 1918
05 Jul 2014 08:52 AM
No no no no You dont get it I mean if one kill is done add 2 kos to leaderboard

Not if ko+1 then add another ko
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
05 Jul 2014 09:04 AM
Find it in your weapon script and change it to + 2 instead of + 1
Report Abuse
viplav37 is not online. viplav37
Joined: 17 Aug 2011
Total Posts: 1918
05 Jul 2014 09:46 AM
Thanks but I know that I was asking if I am in a game and I need to do that using a Local script (script builder kind of thing)
Report Abuse
fireblade2 is not online. fireblade2
Joined: 18 Nov 2007
Total Posts: 4666
05 Jul 2014 09:48 AM
local KO = game.Players.LocalPlayer.leaderstats.KOs
local last = KO.Value

KO.Changed:connect(function()
if KO.Value-last == 1 then
KO.Value = KO.Value + 1
last = KO.Value
end
end)

Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
05 Jul 2014 09:49 AM
KOs.Changed:connect(function()
if KOs.Value%2==0 then
KOs.Value = KOs.Value + 1
end
end)

idkkkkkkkk
Report Abuse
fireblade2 is not online. fireblade2
Joined: 18 Nov 2007
Total Posts: 4666
05 Jul 2014 09:51 AM
But that's assuming the KOs started as odd
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
05 Jul 2014 10:30 AM
well change the 0 as 1 when its not or something
Report Abuse
viplav37 is not online. viplav37
Joined: 17 Aug 2011
Total Posts: 1918
07 Jul 2014 07:17 AM
Thanks but it only works one time so I guess a loop will fix that
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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