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

Hide only one stat in leaderstats?

Asked by 5 years ago

I have two stats; "Objects", and "Light", I want to hide ONLY the "Light" stats,Is there any way?

1
Just put it outside of the model/folder. KingLoneCat 2642 — 5y

1 answer

Log in to vote
0
Answered by
herrtt 387 Moderation Voter
5 years ago

Just create another folder for the Light,

game.Players.PlayerAdded:Connect(function(plr)
    local folder = Instance.new("Folder")
    folder.Parent = plr
    folder.Name = "stats"

    local light = Instance.new("IntValue")
    light.Parent = folder
    light.Name = "Light"
end)
Ad

Answer this question