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

How do I make a tool animation?

Asked by
iFlusters 355 Moderation Voter
10 years ago

Hey,

I'm making a bowling ball and I want it to animate so when you click, your right hands goes back then forward then the ball is released and flung.

At the moment the ball is held out and then when clicked the ball rolls along

(im making a bowling game)

Please help ;)

2 answers

Log in to vote
0
Answered by
BlackJPI 2658 Snack Break Moderation Voter Community Moderator
10 years ago

Animations can be easily created with Roblox's animation editor plugin and a little bit of knowledge behind how animations work. There is a really good page on the wiki that will show you the basis on how to use the plugin and a source of code at the bottom showing an example on how to apply it the animations you create.

Ad
Log in to vote
0
Answered by 10 years ago

A model to be animated must have several parts to work. Firstly, it must have a Humanoid in which to load the animation itself with the LoadAnimation function. Secondly, it must also have a part called HumanoidRootPart. When it creates the animation from a timeline, the Animation Editor expects this part to exist. By default, player characters have both of these parts so only the animation has to be loaded in that case. Loading the animation into a Humanoid creates an Animation Track which can then be played:~~~~~~~~~~~~~~~~~ local animTrack = Humanoid:LoadAnimation(animation) animTrack:Play() ~~~~~~~~~~~~~~~~~

Just put that in the script of the ball or whatever (On the part before the ball is released

Answer this question