Question about using a non active tool (potion)

Is it possible to use a tool thats in the players backpack? I’m making health and armor potions and i want the player to be able to use them with the click of a button even while the potion is not equipped.

So if im fighting NPC’s and my health gets low how would i go about adding a feature that lets you use a potion without having to equip it?

One way would be to use another local script and detect key input using context action services.

Then the script checks using findfirstchild within the backpack for the potion tool and if so equips and uses it.

Another way is to avoid tools entirely as there is no need if you are not going to use the features it has which is the .equipped and toolbar selection gui though that’s a bit more advanced.

Ah, thank you. I will give it a read. And what do you mean avoid tools?