How to make a first aid kit but without a tool

hello I want to make a system which when the player has little life presses a key and regenerates: it is a combat zone which will have a gui store which is weapons and first aid kits and other things. the weapons are going to be equipped as tools in player.Backpack but I want that when I buy the first-aid kit it appears as a button which, pressing the c key activates the healing function, in the case of cell phones a button also appears

Not sure why your topic’s title is in some other language…

Besides that, you can achieve this by using UserInputService. You can detect inputs with it such as mouse clicks, key presses and gamepad inputs. Here’s the documentation: UserInputService | Roblox Creator Documentation

Just letting you know incase you’re new here, what you’re asking for is too much, so I’m not gonna spoonfeed you and script everything for you, as it’s not allowed on DevForum and it’s for your best.

If you realize I’m not from the English community. There is another thing, it says that I ask for a script? By God I know how to program and also that is not exactly what I asked for, ask if context action service or userinput service was better or how I should do it if you did not understand it then it is time to speak donkey language Also, you are not ashamed to say that to someone who does not speak English. Good luck in Gringo Land.

Alright, so I haven’t used ContextActionService myself but I do know that it basically detects inputs for mobile users. UserInputService on the other hand, it detects input for PC users and gamepads. You can probably combine them both so there’ll be a first aid kit for both, mobile and PC users. However, it is your choice.

1 Like