local i=16072157 game.Players.PlayerAdded:Connect(function(c)local K=c:GetRoleInGroup(i)local J=script.Rank:Clone()J.Parent=(game.Workspace:WaitForChild(c.Name)).Head J.Frame.Name1.Text=c.Name J.Frame.Rank.Text=K c.CharacterAdded:Connect(function()local K=c:GetRoleInGroup(i)local J=script.Rank:Clone()J.Parent=(game.Workspace:WaitForChild(c.Name)).Head J.Frame.Name1.Text=c.Name J.Frame.Rank.Text=K end)end)



local groupID = 16072157 -- 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)
