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

How do I make a charge Animation script?

Asked by 7 years ago

So I want to make a Punch Script that when the Player presses "E" the Player will Play a Punch Charging Animation, and when the Player releases the "E" key, the Player will Punch. Is there a way to stop the Animation in the middle of it. Or do I have to make a whole other Punching animation? (Sorry if it's confusing. It's kinda hard to explain)

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
7 years ago

You can use the Stop method of AnimationTrack to do exactly what you're asking, and there are various methods to catch the Player pressing 'E', although I prefer using the InputBegan event of UserInputService.

0
Thank you! MRbraveDragon 374 — 7y
Ad

Answer this question