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

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.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

0

Do you get any errors in the output?

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.

0

Just to make sure, you do have all of this inside a PlayerAdded function, right?

0

yes

0

what is irritating is that in my main game it doesn't show up but shows in my datastore test game

0

And it's a normal script that's somewhere in serverscriptservice or workspace?

0

it's a normal script inside the serverscriptservice

0

The issue might be on line 6, as you forgot quotation marks around currencyName, unless you have that variable defined somewhere else

0

you could add a wait after playeradded

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.

1 answer

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.

1 comment

0

Nevermind it's still like that. I'm stressed as hell

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