Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question