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: Making an obby, and need a "Stage" leaderboard script.

Previous Thread :: Next Thread 
Astrobit is not online. Astrobit
Joined: 03 Aug 2015
Total Posts: 68
28 Jun 2016 01:06 PM
I am making an obby, and want a counter in the leaderboard that says Stage.

How can I make one?


Please don't reply hatefully.
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
28 Jun 2016 01:08 PM
game.Players.PlayerAdded:connect(function(p)
local stats=Instance.new('IntValue',p)
stats.Name='leaderstats'

local stage=Instance.new('IntValue',stats)
stage.Name='Stage'
stage.Value=1
end)


Report Abuse
Astrobit is not online. Astrobit
Joined: 03 Aug 2015
Total Posts: 68
28 Jun 2016 01:13 PM
That worked, but how do I make it so once someone reaches another level the stage number changes?


Please don't reply hatefully.
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
28 Jun 2016 01:15 PM
You will need to offer something, I don't do much requests.


Report Abuse
tornado4adam is not online. tornado4adam
Joined: 09 Sep 2012
Total Posts: 245
28 Jun 2016 01:15 PM
make a brick and insert a script into it with this code

script.Parent.Touched:connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
plr.leaderstats.Stage.Value = plr.leaderstats.Stage.Value + 1
end
Report Abuse
Viikko is not online. Viikko
Joined: 23 Jan 2015
Total Posts: 249
28 Jun 2016 01:16 PM
i can do that for free just give me some time
Report Abuse
Viikko is not online. Viikko
Joined: 23 Jan 2015
Total Posts: 249
28 Jun 2016 01:17 PM
don't use tornado's that's garbage
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
28 Jun 2016 01:18 PM
Since I am feeling generous

--Inside the spawn, name it the stage number

script.Parent.Touched:connect(function(hit)
local p=game.Players:GetPlayerFromCharacter(hit.Parent)
if p then
p:WaitForChild('leaderstats').Stage.Value=tonumber(script.Parent.Name) or 0
end
end)


Report Abuse
Astrobit is not online. Astrobit
Joined: 03 Aug 2015
Total Posts: 68
28 Jun 2016 01:18 PM
How is his garbage?


Please don't reply hatefully.
Report Abuse
Tynezz is not online. Tynezz
Joined: 28 Apr 2014
Total Posts: 4945
28 Jun 2016 01:19 PM
Because if you keep on jumping on it, your stage will go up and up.


Report Abuse
Astrobit is not online. Astrobit
Joined: 03 Aug 2015
Total Posts: 68
28 Jun 2016 01:21 PM
Makes sense. Thanks.


Please don't reply hatefully.
Report Abuse
tornado4adam is not online. tornado4adam
Joined: 09 Sep 2012
Total Posts: 245
28 Jun 2016 02:32 PM
got a fix

script.Parent.Touched:connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
plr.leaderstats.Stage.Value = *insert level here*
end


Sorry, i was rushing. IDK why i was, but i was.
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