New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Still have questions? Join our Discord server and get real time help.
0

# Why is my folder for leader stats is not seen in the player file when I try the game?

local folder = Instance.new("Folder")
folder.Parent = player

local currency = Instance.new("IntValue")
currency.Name = currencyName
currency.Parent = folder


with this script

local folder = Instance.new("Folder")
folder.Parent = player


It helps us to set a folder called leaderstats to put in the currency when we try our game. At first it worked, after long time I tried it again. Instead of working, more problems grow! Now I can't see the leaderstats folder in my player when I try the game out.

0
Do you get any errors in the output? DarkDanny04 310 — 8d
0
I find out that the script is already in the server but what I don't understand is there is no errors in the output. But the folder won't show up. eromusics 8 — 8d
0
Just to make sure, you do have all of this inside a PlayerAdded function, right? DarkDanny04 310 — 8d
0
yes eromusics 8 — 8d
0
what is irritating is that in my main game it doesn't show up but shows in my datastore test game eromusics 8 — 8d
0
And it's a normal script that's somewhere in serverscriptservice or workspace? DarkDanny04 310 — 8d
0
it's a normal script inside the serverscriptservice eromusics 8 — 8d
0
The issue might be on line 6, as you forgot quotation marks around currencyName, unless you have that variable defined somewhere else DarkDanny04 310 — 8d
0
0
DarkDanny I used a local so that wont a problem but the PROBLEM is that I cannot see my leaderstats folder inside the player when we run the game in the studio. eromusics 8 — 8d