Hello, I want to know how to make a script where if a player presses a button to do an ability, they can do a key combination to activate the remote event for the ability. If they change their mind and dont want to activate the ability midway through the key combination, they can just press the button again.(by button, I mean a key on the keyboard). I’m trying to make a system where to activate abilities you have to first have the ability ready the do the specific key combination for that ability. Each ability I will costomize the ability. I’ll give you an example in steps the player has to take
- The move they want to do is called fireball
- They press the key to do fireball and they do an animation signituring that they are getting ready to do an ability
- They do a key combination for the fireball and each key they press for the combination, they do an animation.
- When they get the combination correct then they release the fireball dealing damage to their opponent
SECOND SENARIO
- The player does the same thing and they press the key for the fireball doing the animation signaturing they are getting ready to do an ability
- They change their mind and dont want to do the ability anymore and press the key again to get rid of the animation.
(Keys I will most likely be using)
- R
- Whatever the key is next to R
DIFFERENT COMBINATIONS I WOULD LIKE TO INCLUDE
- R,T,T,R
- R,T,R,T