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: Leaderboard help! HARD! THIS WILL HOPEFULLY BE A CHALLENGE FOR YOU GOOD SCRIPTERS!

Previous Thread :: Next Thread 
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 12:54 PM
I need a leaderboard that makes 2 boards one named "Lives" and one named "Blocks" when they enter they get 3 lives and when they die they lose a life. When their lives are 0 it moves thier team to "Start" then kills them and there lives go's back to 3. In the "Blocks" Leaderboard they start with 0 and when they reach 10 blocks it adds 1 live and brings there "blocks" back down to 0. If you guys can make one like this and it works I will pay 200 robux. Or more.

Thanks,
Ugrdbflasars1
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 01:43 PM
Anyone? Agentfirefox? ITS 200 ROBUX FOR CRYING OUT LOUD! thats about 1000 tickets.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
25 Jan 2009 01:44 PM
MONIEMONIEMONIEMONIEMONIE
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 01:45 PM
can you help?
Report Abuse
level140roblox is not online. level140roblox
Joined: 08 Jun 2008
Total Posts: 9577
25 Jan 2009 01:45 PM
shinnnnynnynyny muuunynyny
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 01:49 PM
Please? Anyone? You two are my only hope! Wahhhhhhhhhhhhhhhhhhhhhhh.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
25 Jan 2009 01:52 PM
local sc = Instance.new("Script")
sc.Source = [[
function onDed()
local p = game.Players:playerFromCharacter(script.Parent)
p.leaderstats.Lives.Value = p.leaderstats.Lives.Value - 1
if p.leaderstats.Lives.Value == 0 then
p.TeamColor = game.Teams.Start.TeamColor
p.Lives.Value = 3
end
script:remove()
end
script.Parent.Humanoid.Died:connect(onDed)
]]


local sc2 = Instance.new("LocalScript")
sc2.Source = [[
function change()
if script.Parent.Parent.leaderstats.Blocks.Value == 10 then
script.Parent.Parent.leaderstats.Blocks.Value = 0
script.Parent.Parent.leaderstats.Lives.Value = script.Parent.Parent.leaderstats.Lives.Value + 1
end
end
script.Parent.Parent.leaderstats.Blocks.Changed:connect(change)
]]

function giveScripts(p)
sc:clone().Parent = p.Character
sc2:clone().Parent = p.Backpack
end

function e(p)
p.Changed:connect(function (O) if O == "Character" then wait() giveScripts(p) end end)
end
game.Players.ChildAdded:connect(e)
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 01:52 PM
let me test it then you get the robux.
Report Abuse
level140roblox is not online. level140roblox
Joined: 08 Jun 2008
Total Posts: 9577
25 Jan 2009 01:53 PM
agent, did you just get top 100 poster?

or did i just neva notice it b4...
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
25 Jan 2009 01:53 PM
It's been flashing on and off. I think DingDong keeps stealing it from me.
Report Abuse
level140roblox is not online. level140roblox
Joined: 08 Jun 2008
Total Posts: 9577
25 Jan 2009 01:54 PM
lol, i thought i was going crazy...
Report Abuse
DingDong272 is not online. DingDong272
Top 100 Poster
Joined: 08 Dec 2007
Total Posts: 9860
25 Jan 2009 01:54 PM
Actually, for as long as I've played, when they introduced the Top 100's, all the old players got it, so Top 100 is very inaccurate.
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 01:55 PM
ok it says "Leaderstats is not a valid member of player" fix?
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
25 Jan 2009 02:36 PM
Meh I didn't even add the leaderboard. ^_^




local sc = Instance.new("Script")
sc.Source = [[
function onDed()
local p = game.Players:playerFromCharacter(script.Parent)
p.leaderstats.Lives.Value = p.leaderstats.Lives.Value - 1
if p.leaderstats.Lives.Value == 0 then
p.TeamColor = game.Teams.Start.TeamColor
p.Lives.Value = 3
end
script:remove()
end
script.Parent.Humanoid.Died:connect(onDed)
]]


local sc2 = Instance.new("LocalScript")
sc2.Source = [[
function change()
if script.Parent.Parent.leaderstats.Blocks.Value == 10 then
script.Parent.Parent.leaderstats.Blocks.Value = 0
script.Parent.Parent.leaderstats.Lives.Value = script.Parent.Parent.leaderstats.Lives.Value + 1
end
end
script.Parent.Parent.leaderstats.Blocks.Changed:connect(change)
]]

function giveScripts(p)
sc:clone().Parent = p.Character
sc2:clone().Parent = p.Backpack
end

function e(p)
wait(0.2)
local s = Instance.new("IntValue")
s.Name = "leaderstats"
local po = Instance.new("IntValue")
po.Name = "Lives"
po.Parent = s
bl = Instance.new("IntValue")
bl.Name = "Blocks"
bl.Parent = s
s.Parent = p
p.Changed:connect(function (O) if O == "Character" then wait() giveScripts(p) end end)
end
game.Players.ChildAdded:connect(e)
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 03:22 PM
that didnt work ethier, when you start you have no lives. Fix again?
Report Abuse
level140roblox is not online. level140roblox
Joined: 08 Jun 2008
Total Posts: 9577
25 Jan 2009 03:32 PM
function on(e)
e.leaderstats.Lives.Value = 3
end
game.Players.ChildAdded:connect(on)

add that at the bottom.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
25 Jan 2009 03:34 PM
ME WANTZ TEH ROBUXEZ@!!





local sc = Instance.new("Script")
sc.Source = [[
function onDed()
local p = game.Players:playerFromCharacter(script.Parent)
p.leaderstats.Lives.Value = p.leaderstats.Lives.Value - 1
if p.leaderstats.Lives.Value == 0 then
p.TeamColor = game.Teams.Start.TeamColor
p.Lives.Value = 3
end
script:remove()
end
script.Parent.Humanoid.Died:connect(onDed)
]]


local sc2 = Instance.new("LocalScript")
sc2.Source = [[
function change()
if script.Parent.Parent.leaderstats.Blocks.Value == 10 then
script.Parent.Parent.leaderstats.Blocks.Value = 0
script.Parent.Parent.leaderstats.Lives.Value = script.Parent.Parent.leaderstats.Lives.Value + 1
end
end
script.Parent.Parent.leaderstats.Blocks.Changed:connect(change)
]]

function giveScripts(p)
sc:clone().Parent = p.Character
sc2:clone().Parent = p.Backpack
end

function e(p)
wait(0.2)
local s = Instance.new("IntValue")
s.Name = "leaderstats"
local po = Instance.new("IntValue")
po.Name = "Lives"
po.Parent = s
po.Value = 3
bl = Instance.new("IntValue")
bl.Name = "Blocks"
bl.Parent = s
s.Parent = p
p.Changed:connect(function (O) if O == "Character" then wait() giveScripts(p) end end)
end
game.Players.ChildAdded:connect(e)
Report Abuse
level140roblox is not online. level140roblox
Joined: 08 Jun 2008
Total Posts: 9577
25 Jan 2009 03:37 PM
me tis nonbc either way
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 03:41 PM
im testing it right now.
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 03:52 PM
Ok now you have 3 lives when you start witch is good. But when I get too 10 blocks in the leader board it doesnt give me another live and take away the blocks, also when you die it doesnt take a life away. Fix again? 200 robux.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
25 Jan 2009 03:56 PM
You sure it's not working? :S
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 04:00 PM
nvm it works, make a t-shirt and sell it for 200 robux and il buy it, wait only if you help me with 1 other thing.
Report Abuse
Ugrdbflasars1 is not online. Ugrdbflasars1
Joined: 09 Jul 2008
Total Posts: 789
25 Jan 2009 04:00 PM
Here: http://www.roblox.com/Forum/ShowPost.aspx?PostID=5232846
Report Abuse
Clone512 is not online. Clone512
Joined: 02 Mar 2008
Total Posts: 7810
25 Jan 2009 04:45 PM
Isn't that kinda going back on your word? O_O
Report Abuse
Meelo is not online. Meelo
Joined: 04 Jul 2008
Total Posts: 14763
25 Jan 2009 04:52 PM
Yeah... it really is... and I've had people pay me 2000 tix for tasks WAY easier than this (lol)
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