So I am not getting any errors but the leaderboard is not being shown and the leaderstats folder is not added to the player when they join. Why?
game.Players.PlayerAdded:Connect(function(plyaer) local leaderstats = Instance.new("Folder") leaderstats.Parent = player leaderstats.Name = "leaderstats" local stars = Instance.new("IntValue") stars.Parent = leaderstats stars.Name = "Stars" stars.Value = 0 end)
Any help would be greatly appreciated
You made a spelling mistake:
game.Players.PlayerAdded:Connect(function(player) -- was "plyaer" local leaderstats = Instance.new("Folder") leaderstats.Parent = player leaderstats.Name = "leaderstats" local stars = Instance.new("IntValue") stars.Parent = leaderstats stars.Name = "Stars" stars.Value = 0 end)