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

Why does stats in the player named "leaderstats" show up in the player list and nothing else??

So, this isn't a script question... but I just wanted to know, when you create a folder called "leaderstats" inside the player and put values in that, why does everything in that specific folder show up on the player list??? Like... if I rename the folder to "Stats" it will not show up on the player list.

-- here is the hidden stats
wait(5)
local HiddenStats = Instance.new('Folder')
HiddenStats.Name = "Stats"
HiddenStats.Parent = game.Players.LocalPlayer
local hiddenvalue = Instance.new('IntValue')
hiddenvalue.Parent = HiddenStats
hiddenvalue.Name = "Hidden_Int"

--- then if you rename the folder to "leaderstats" it shows up

local Stats = Instance.new('Folder')
Stats.Name = "leaderstats"
Stats.Parent = game.Players.LocalPlayer
local NewValue= Instance.new('IntValue')
NewValue.Parent = Stats
NewValue.Name = "some_value"

1 answer

✓ Accepted answer

Because the script looking to showcase it is looking for a file called "leaderstats" and not Stats.

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