Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why we can't do it without using Instance leaderboard ?

Output
--------------------
  20:29:48.541 - ServerScriptService.Leaderboard:5: attempt to index nil with 'leaderstats'
--------------------
local Leaderstats = game.Players.LocalPlayer.leaderstats("BoolValue")

I dont use Instance.new("BoolValue")

because my roblox studio when I start server. Create new "Cash" Leaderboard but I dont want this I try find script but I cant find script link so I want delete this leaderboard

edit--> although I don't remember the exact issue, it's very old and I don't have a problem with leader stats, in short, problem solved

2 comments

0

Who made this script?

0

I made this leaderboard script but I dont made Cash Leaderboard script roblox studio made Cash Leaderboard script say cloud_numbers...

2 answers

leaderstats isn't a function, nor a constructor, meaning you can't pass arguments such as leaderstats("BoolValue")

1 comment

0

So what should i do

Maybe try... If helped please accept and upvote! :)

game.Players.PlayerAdded:Connect(function(player)
   local Leaderstats = Instance.new(“Folder”, player)
   Leaderstats.Name = leaderstats
   Leaderstats.Parent = player

   local Cash = Instance.new(“IntValue”)
   Cash.Name = “Cash”
   Cash.Parent = leaderstats
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.