#how do i make Tool Ability?
1 messages · Page 1 of 1 (latest)
like on click or when pressing a key?
onkey press
you should learn userinputservice
use inputActions to capture the key press
basically have an inputContext (folder of inputActions)
then an inputAction determines a certain action
then inputBindings in that determine what buttons on what devices trigger it
you can then use a localscript to find when the inputAction is pressed/released and all of that
when its pressed, find the tool you have out and find if the inputAction's ability is on that tool
if it is, tell the tool to run the event
obviously you need to check for edge cases and bugs (which ive fixed in my implementation but that would take so long to list im not bothering)