Hey everyone! So today I started working on a Global Leaderboard for my game, and when I play the game to test it out, there is one error. I click on it, and I can’t find the problem. Could someone help me?
The error message is:
GlobalLeaderboard is not a valid member of Workspace “Workspace”
And here is my line of script which is wrong:
Does someone know how to fix this? If so, please tell me.
No, I mean using WaitForChild(“GlobalLeaderboard”) which in case it doesn’t exist, It’ll wait until it does.
local GlobalLeaderboard = game.Workspace:WaitForChild("GlobalLeaderboard")
for _, frame in pairs(GlobalLeaderboard.LeaderboardGUI.Holder:GetChildren()) do
Now there is no error from the output, but the leaderboard isn’t updating. It should say success in the output when it updates, but it never happens. Is this a glitch, or did i do something wrong?