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.
Ad
Still have questions? Join our Discord server and get real time help.
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 8 days 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 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
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 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
you could add a wait after playeradded valledestroy 36 — 8d
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

1 answer

Log in to vote
0
Answered by 8 days 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 8 — 8d
Ad

Answer this question