HeadTag with toggles

How would I go about making a headtag script while making both the rank and display name toggleable for just certain people in the group.

you could make a table with those certain player’s names.
then you would use table.find() to look for that player’s name inside the table People.

local People = {"Me","Player2"}

function Toggle(Player: Player)
      if table.find(People, Player.Name) then
            -- Toggle head script
      else 
            -- player is not allowed to toggle
      end
end)