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: Leaderboard no longer functioning?

Previous Thread :: Next Thread 
Colume is not online. Colume
Joined: 14 Aug 2012
Total Posts: 7252
13 Aug 2016 11:53 PM
I ripped this off from part of the script of my game, this function alone controls the leaderboard, and for some reason, it dosn't work anymore.




function arrival(newbie)
print("New arrival: "..newbie.Name..": Establishing game stats")

local lead = Instance.new("IntValue")
lead.Name = "leaderstats"
lead.Value = 2

local tags = Instance.new("IntValue")
local shards = Instance.new("IntValue")
local gems = Instance.new("IntValue")
tags.Name = "Tags"
shards.Name = "Shards"
gems.Name = "Gems"
tags.Value = 0
shards.Value = 0
gems.Value = 0

local itstat = Instance.new("BoolValue")
itstat.Name = "ItStatus"
itstat.Value = false

lead.Parent = newbie
tags.Parent = lead
shards.Parent = lead
gems.Parent = lead

itstat.Parent = newbie
while newbie.Character == nil do
wait(0)
end
--[[if running == true then
local spawns = map:findFirstChild("Spawns"):GetChildren()
local torso = newbie.Character:findFirstChild("Torso")
if torso ~= nil then
local spawn = spawns[math.random(1,#spawns)]
torso.CFrame = spawn.CFrame * CFrame.new(0,5,0)
end
end]]
end
game.Players.ChildAdded:connect(arrival)


inb4mods
Report Abuse
Colume is not online. Colume
Joined: 14 Aug 2012
Total Posts: 7252
14 Aug 2016 07:58 AM
It appears nobody is able to assist me
Or that this forum is dead af
Report Abuse
AlertedDynamite is not online. AlertedDynamite
Joined: 12 Jun 2015
Total Posts: 667
14 Aug 2016 08:11 AM
ummm. idk wtf this is but. try in test mode not play


Code is ummmm? Classified.
Report Abuse
Colume is not online. Colume
Joined: 14 Aug 2012
Total Posts: 7252
14 Aug 2016 09:59 AM
I have already tested it in all modes, none of them does the leaderboard appear
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
14 Aug 2016 10:05 AM
Try game.Players.PlayerAdded
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
14 Aug 2016 10:09 AM
Or what I personally would do

game.Players.PlayerAdded:connect(function(newbie)
print("New arrival: "..newbie.Name..": Establishing game stats")
local lead = Instance.new("IntValue", newbie)
lead.Name = "leaderstats"
lead.Value = 2 -- What's the point of this?

local tags = Instance.new("IntValue", lead)
local shards = Instance.new("IntValue", lead)
local gems = Instance.new("IntValue")
tags.Name = "Tags"
shards.Name = "Shards"
gems.Name = "Gems"
tags.Value = 0
shards.Value = 0
gems.Value = 0

local itstat = Instance.new("BoolValue", newbie)
itstat.Name = "ItStatus"
itstat.Value = false

while newbie.Character == nil do
wait()
end
--[[if running == true then
local spawns = map:findFirstChild("Spawns"):GetChildren()
local torso = newbie.Character:findFirstChild("Torso")
if torso ~= nil then
local spawn = spawns[math.random(1,#spawns)]
torso.CFrame = spawn.CFrame * CFrame.new(0,5,0)
end
end]]
end)
Report Abuse
Colume is not online. Colume
Joined: 14 Aug 2012
Total Posts: 7252
14 Aug 2016 11:05 AM
Alright I'll give it a try.


inb4mods
Report Abuse
Colume is not online. Colume
Joined: 14 Aug 2012
Total Posts: 7252
14 Aug 2016 11:10 AM
Ican,

Unfortunately that didn't work.
I'll try the wiki for a second.


inb4mods
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