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

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

Asked by 4 years ago
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.

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

1 answer

Log in to vote
0
Answered by 4 years ago

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.

0
Nevermind it's still like that. I'm stressed as hell eromusics 10 — 4y
Ad

Answer this question