Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

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

Asked by 3 years ago
Edited 1 year ago
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

0
Who made this script? User#30567 0 — 3y
0
I made this leaderboard script but I dont made Cash Leaderboard script roblox studio made Cash Leaderboard script say cloud_numbers... xccosanxcc -9 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago

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

0
So what should i do xccosanxcc -9 — 3y
Ad
Log in to vote
0
Answered by
iivSnooxy 248 Moderation Voter
3 years ago
Edited 3 years ago

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)

Answer this question