For some reason there is a error it doesn't work correctly and the output shows no errors heres the code
game.Players.PlayerAdded:connect(function(p)
repeat wait()
until P:FindFirstChild("leaderstats")
local Rank = Instance.new("StringValue", P.leaderstats)
Rank.Name = "GroupName"
Rank.Value = P:GetRankInGroup(00)--Group ID
end)

2 comments
Its now saying Workspace.Script:16 attempt to index global 'P' (a nil value)
Im trying to make it like there leader board group system on hilton hotel v4