Hi! I’m Keanny.
After the latest Roblox update, I realized that my leaderstats (which worked perfectly fine before the update) was somehow broken. Every time I enter the game, I get this error:
leaderstats is not a valid member of Player
I checked the player file in Roblox Studio while the game was running and the leaderstats folder is missing. Here is the code that used to work, but doesn’t work now:
players.PlayerAdded:Connect(function(plr) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = plr local Money = Instance.new("IntValue") Money.Name = "Money" Money.Parent = leaderstats end
Does anyone know how to fix this? It would be amazing if someone can tell me what went wrong. Thanks in advance.