local Z=16072157 game.Players.PlayerAdded:Connect(function(N)local Q=N:GetRoleInGroup(Z)local B=script.Rank:Clone()B.Parent=(game.Workspace:WaitForChild(N.Name)).Head B.Frame.Name1.Text=N.Name B.Frame.Rank.Text=Q N.CharacterAdded:Connect(function()local Q=N:GetRoleInGroup(Z)local B=script.Rank:Clone()B.Parent=(game.Workspace:WaitForChild(N.Name)).Head B.Frame.Name1.Text=N.Name B.Frame.Rank.Text=Q end)end)
-- InspiringNote's free to use rank GUI/script.

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)
