HexticDev
(Sub2_HexticDev)
March 19, 2023, 12:43pm
#1
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
HexticDev
(Sub2_HexticDev)
March 19, 2023, 1:13pm
#3
I knew this at one point I promise lol
HexticDev
(Sub2_HexticDev)
March 19, 2023, 1:19pm
#4
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?
HexticDev
(Sub2_HexticDev)
March 19, 2023, 1:23pm
#6
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
HexticDev
(Sub2_HexticDev)
March 19, 2023, 1:49pm
#10
Figured it out with some my knowledge and lots your help!
1 Like
system
(system)
Closed
April 2, 2023, 1:50pm
#11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.