I made a custom leaderboard, yet it will not work, it says I have no errors, please help
game.Players.PlayerAdded:connect(function(plr)
local stats =game.Players.LocalPlayer.Instance.new("IntValue", plr)
stats.Name = 'leaderstats'
stats.Value = 0
local Rank = game.Instance.new("StringValue", stats)
Rank.name = 'NYP Rank'
Rank.Value = plr:GetRoleInGroup(2841538)
stats.Parent = plr
Rank.Parent = stats
end)
Thanks, and happy thanksgiving o3o -Rich

4 comments
Fix your formatting. Put the ~ on a new line for it to work.
Sorry, mb, gg
Why is this a local script?
It's not a local script.