local folder = Instance.new("Folder")
folder.Name = "leaderstats"
folder.Parent = player
local currency = Instance.new("IntValue")
currency.Name = currencyName
currency.Parent = folder
with this script
local folder = Instance.new("Folder")
folder.Name = "leaderstats"
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.

10 comments
Do you get any errors in the output?
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.
Just to make sure, you do have all of this inside a PlayerAdded function, right?
yes
what is irritating is that in my main game it doesn't show up but shows in my datastore test game
And it's a normal script that's somewhere in serverscriptservice or workspace?
it's a normal script inside the serverscriptservice
The issue might be on line 6, as you forgot quotation marks around currencyName, unless you have that variable defined somewhere else
you could add a wait after playeradded
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.