For example if im making a kamehameha script, and i want the player to hold down the G key to charge then when it reaches a number, it fires where the players mouse it looking at.
COMMUNITY QUESTION
How can i make a charged blast in a script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You could make a loop that checks if the G key is still pressed and if so it increases a value by 1 or whatever you want, you could also create an equation that simulates the size of a potential sphere of energy based on value. If you took a try at it i might answer.
An easy way of doing this would just be to use the ContextActionService and bind the G key to a function that when G is pushed it starts counting up everyone once in awhile, and when G is released, it fires.