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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
|
| 14 Aug 2016 10:05 AM |
| Try game.Players.PlayerAdded |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 14 Aug 2012 |
| Total Posts: 7252 |
|
|
| 14 Aug 2016 11:05 AM |
Alright I'll give it a try.
inb4mods |
|
|
| Report Abuse |
|
|
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 |
|
|