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

How would you make hidden leaderstats?

Asked by 10 years ago

I have tried using the same way to make regular leaderstats, but that wont work~~~~~~~~~~~~~~~~~ local hs = Instance.new("IntValue") hs.Name = "hiddenstats" hs.Parent = player

            local hscore = Instance.new("IntValue")
    hscore.Name = "timmur"
    hscore.Parent = ls
   hscore.Value = 0

~~~~~~~~~~~~~~~~~ (thats not the whole thing) it still shows up on the leaderboard. Could someone please help?

1 answer

Log in to vote
0
Answered by
Dummiez 360 Moderation Voter
10 years ago

The Roblox CoreGUI Playerlist will take the values of whatever is inside 'leaderstats'. If you rename it to anything else, it will not display on the list, however can still be used as leaderstats.

game.Players.PlayerAdded:connect(function(player)
    repeat wait() until player.Character
    local stat = Instance.new("IntValue")
    stat.Name = "hiddenstats" -- or anything else 

    local hscore = Instance.new("IntValue")
    hscore.Name = "timmur"
    hscore.Value = 0

    hscore.Parent = stat
    stat.Parent = player
end)
0
Yes it does show tanoflame 22 — 10y
Ad

Answer this question