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
leaderstats
isn't a function, nor a constructor, meaning you can't pass arguments such as leaderstats("BoolValue")
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)