Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

trying to learn a script that throws projectiles upon the sword swinging, anybody who can help?

Asked by 5 years ago

I can't find any youtube videos or any friends that know how to do this. Basically, its an attack that when you swing your sword, a blast will come out and do damage. I am a medium level scripter and rely on youtube to assist so if you can find a video that matches what the stick figure does in this gif (https://orig00.deviantart.net/81f3/f/2013/143/6/f/getsiga_tensho__by_hotcackes-d66bn1u.gif) or if you scripted this before and can gimme an idea of how its done please leave a comment.

1 answer

Log in to vote
0
Answered by
valchip 789 Moderation Voter
5 years ago

Have you tried creating a model that appears when you swing and later on it moves in the direction the player is facing? That is the way I would go about it. It is not that hard. You can bind an animation event to your animation which fires in a certain keyframe. You can use :GetMarkerReachedSignal() to detect when the animation event fires and then you can clone the model in front of you and make it move, simple as that.

Ad

Answer this question