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.
Ok seems like my game file is corrupted. I started to suspect my game file since in every new file it works. So I decided to just copy all models and things from my old game file to a new file. Well thanks for those who tried to help me but I finally know how.