Is there a way to "hide" a leaderstat value?

I’m making a level leader stat system and I have 3 stats, Level, XP, and XP needed. By default all these show on the leader stats tab. Is there a way to make the XP needed and XP value hidden?

image

1 Like

Just don’t add it to the leaderstats, you can have an extra folder for it.

1 Like

but am I able to keep in the folder is the question really since this makes it really easy to find.

I don’t think you can hide it, everything in that folder will be displayed.

1 Like

Folder within a folder perhaps? I never tried it but…

7 Likes

Surprisingly that works lol. Thanks @GoteeSign for helping as well!

5 Likes

Ok if you want data that you dont want to show then try this

	local leaderstats = Instance.new("Configuration",Player)
	leaderstats.Name = 'leaderstats'-- if you want the data to show set the parent to this!
	local HiddenData = Instance.new("Configuration",Player)
	HiddenData.Name = 'HiddenData'-- if you want the data to be hidden set the parent to this!
end)
1 Like

He wanted it in the same folder, not 2 folders.

There are many new developers who don’t understand what “Folder within a folder” means.

Basically you just gotta parent the new folder to the leaderstats one like on this example here:

local leaderstats = Instance.new(“Folder”)
leaderstats.Name = “leaderstats”
leaderstats.Parent = Player

local hiddenFolder = Instance.new(“Folder”)
hiddenFolder.Name = “hiddenFolder”
hiddenFolder.Parent = leaderstats

then you just parent the values to the hiddenFolder instead of the leaderstats:

rebirths.Parent = hiddenFolder


And if you want to get the values to use it on coins etc… you just gotta do something like this:

Player.leaderstats.hiddenFolder.Coins.Value


Hope this helped a lot of new devs. And congrats to everyone’s progress!

5 Likes