game.Players.PlayerAdded:connect(function(player)
local stats = player:findFirstChild("leaderstats")
local rank = stats:findFirstChild("Rank")
function Update()
rank.Value = player:GetRoleInGroup(964666)
while true do wait(5)
Update()
end
end
end)
It is supposed to update a player's rank when a player joins the server every 5 seconds. "Rank" is a StringValue in leaderstats.
I am not entirely sure what the problem is.

1 comment
Very hard to understand what you mean, are you trying to change his rank whenever his rank in the group changes?