How do I hide part of my leaderstats? [HELP]

Hey so, how would i happen to hide only say one of my values such as my cash value but have my points value still show?

for example:

local donated = Instance.new("IntValue")
donated.Value = donate
donated.Name = "Donated"
donated.Parent = leaderstats

local cash = Instance.new("IntValue")  ---- Hide This Value
cash.Value = cashh
cash.Name = "Cash"
cash.Parent = leaderstats

Do the same (creating a folder) as you did with leaderstats without calling it “leaderstats”.
Then put the value inside the new folder.

1 Like

I knew this at one point I promise lol

can you give me an example? Im a little confused I thought I did what you said but it just made it appear again under a diff folder name

Are you trying to hide it from the leaderstats or from the explorer view?

the leaderstats itself when a player spawns in, I have 3 values i only need to hide one of them

If what you are trying to do is hide the values from the leaderstats all you have to do is take the value outside of leaderstats folder

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

local hiddenstats = Instance.new("Folder")
hiddenstats.Name = "hiddenstats"
hiddenstats.Parent = Player

And use each folder to store values

1 Like

Sure.

game.Players.PlayerAdded:Connect(function(player)
	local leaderstats = Instance.new("Folder", player)
	leaderstats.Name = "leaderstats"
	
	local DataFolder = Instance.new("Folder", player)
	DataFolder.Name = "Data"
	
	local Points = Instance.new("NumberValue", DataFolder)
	Points.Name = "Points"
	Points.Value = 0
	
	local Cash = Instance.new("NumberValue", DataFolder)
	Cash.Name = "Cash"
	Cash.Value = 0
	
	local visiblePoints = Points:Clone()
	visiblePoints.Parent = leaderstats
	visiblePoints.Name = Points.Name
end)
2 Likes

Figured it out with some my knowledge and lots your help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.