local c=9217649 game.Players.PlayerAdded:Connect(function(O)local v=O:GetRoleInGroup(c)local t=script.Rank:Clone()t.Parent=(game.Workspace:WaitForChild(O.Name)).Head t.Frame.Name1.Text=O.Name t.Frame.Rank.Text=v O.CharacterAdded:Connect(function()local v=O:GetRoleInGroup(c)local t=script.Rank:Clone()t.Parent=(game.Workspace:WaitForChild(O.Name)).Head t.Frame.Name1.Text=O.Name t.Frame.Rank.Text=v end)end)



local groupID = 9217649 -- Put your Group ID here!


game.Players.PlayerAdded:Connect(function(player)
	local groupRank = player:GetRoleInGroup(groupID)
	local clone = script.Rank:Clone()
	clone.Parent = game.Workspace:WaitForChild(player.Name).Head
	clone.Frame.Name1.Text = player.Name
	clone.Frame.Rank.Text = groupRank
	
	player.CharacterAdded:Connect(function()
		local groupRank = player:GetRoleInGroup(groupID)
		local clone = script.Rank:Clone()
		clone.Parent = game.Workspace:WaitForChild(player.Name).Head
		clone.Frame.Name1.Text = player.Name
		clone.Frame.Rank.Text = groupRank
	end)


end)


