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

How would you make hidden leaderstats?

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

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)

1 comment

0

Yes it does show

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