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

problems with accessing leaderstats?

im trying to access my leaderstats folder from my player and im getting this error "attempt to index nil with 'WaitForChild'"

but it's clearly a folder inside my player that says.. fuckin "leaderstats" whats the issue

local player = game.Players.LocalPlayer
local stats = player:WaitForChild("leaderstats")

8 comments

4

Have you read the rules? No foul language. - ( do not use profane, vulgar, or explicit language or material on the website. )

1

and have you answered my question.. no. so thanks for the useless reply

3

It's informing of an on-site rule willing to help you, you disgust me.

0

and you disgust me for replying with STILL no answer to my problem other than something that offends you on this site. tell me who's the childish one now?

0

dude read your bio. you used the word "cuck" and you're coming after me for saying the f word. you are really a disgrace... AND STILL NO ANSWER

0

'cucked' has many interpretations, unlike the "f word". - i have no more to say except your behavior is disgusting

0

"instead of trying to help this guy with a problem that's obviously frustrating him, instead im just gonna tell him to not use the f word and that it's offensive and against the ruleeeees, boo hoo"

0

Can't you just edit your question to remove the foul language?

1 answer

player is nil = it does not exist, Is it a local script? You can only access local player from local script. Also this might not be the case but you can try to use :GetService("StarterGui") in case something renamed your starter gui but no that should not be the issue.

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