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: ya

Previous Thread :: Next Thread 
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
17 Oct 2013 08:13 PM
So, I'm making a Noob Survival game until my other game is at least in Beta. Now what I can't figure out is how to make another section on the leaderboard named PWNs. Meaning PWNs are noob kills, KOs are player kills, and WOs are deaths. So how would I insert another section named PWNs into the leaderboard that works like the KOs, except it only kills noobs?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Oct 2013 08:23 PM
well you can make the actual noobs add a KO to the leaderstat

however down to the original request:

--This is incase you already have all leaderstats and just need this one added

game.Players.PlayerAdded:connect(function(p)
repeat wait() until p:findFirstChild("leaderstats")
local pwnz = Instance.new("IntValue", p.leaderstats)
pwnz.Value = 0
end
end
Report Abuse
iForreal is not online. iForreal
Joined: 16 Jul 2013
Total Posts: 373
17 Oct 2013 08:28 PM
wat he said ^^^^
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Oct 2013 08:31 PM
oh right and add a "end)"

so should be like this:

game.Players.PlayerAdded:connect(function(p)
repeat wait() until p:findFirstChild("leaderstats")
local pwnz = Instance.new("IntValue", p.leaderstats)
pwnz.Value = 0
end
end)
end
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
17 Oct 2013 09:54 PM
Ok, thanks! I'll try that! However, where would I put this in the script? (Default LinkedLeaderboard script that ROBLOX made.)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Oct 2013 09:56 PM
Making it a seperate script is alright.
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
17 Oct 2013 09:57 PM
It would still work?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Oct 2013 09:58 PM
Yep, all it's doing is adding a new leaderstat to the leaderboard.
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
17 Oct 2013 10:00 PM
Alright then, I'll try it.
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