how do i create this bar thing(shown in the image)

i want to make what is shown above my hotbar but for a cooldown on an item and i want it to only show when i have the item with the cooldown selected

Continue to help post