Leaderboard not working?

i have a textlabel that is supposed to get the leaderstat’s value of player, however it says that I don’t have a leaderstat inside the player, I have the leaderstat GUI disabled but not the leaderstat, as shown in the picture

don’t really know how to fix this

That means the script is running before the ‘leaderstats’ is created. You should :WaitForChild("leaderstats"):WaitForChild("Level")

Also, you should not get yourself stuck in .Parent hell, and just usegame.Players.LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Level") Much neater, right?

1 Like