AnimationHandler. Cause I needed features

Hello frodev here!

So dont know if its just me but you cant get any animations you’ve loaded so I made a module for this!
Its not very complicated but I like it and so here I am to share it!


Features

  • SetHumanoid | Params (Humanoid) | This allows you to set the humanoid you want it to use, this isnt needed if the parent of the module is a humanoid. By default it uses the parent if its a humanoid, if it isnt one make sure to call this function before calling the others.
  • LoadAnimations | Params (AnimationID,Name | This function allows you to load an animation based on its ID. The name parameter allows you to use this name in order to retrieve set animation
  • GetAnimation | Params (Name) | This function allows you to get any loaded animation based on the Name value.

Get it!

Current Version: 1.0: FrodevsAnimationHandler.rbxm (2.0 KB)

All version:

So far thats all the features, again I only made this cause I needed this features but if there are any you want feel free to tell me, I might add em!

Anyhow your welcome.

7 Likes

Ok you can get it now. My bad lol

2 Likes

:sob:this pairs well with animation module!
Frodev W

Help me making a game as if I’m not a solo developer is soo painful

3 Likes

Okay so, I used this to periodically load animations that need to be called on a server event.
Bad idea ik
Just enter my game and press left click to m1.
It used to have to load the animation every time the server was called but now…! Idk how this works but it doesn’t have to load it every time!
Prelude (WIP) - Roblox

3 Likes

What’s the difference between this and running a for loop on the current playing animations?

2 Likes

I don’t know too much but I think optimization?
It only needs to load once and doesn’t need to run a loop to check.

1 Like

Plus it’s just cleaner code and it’s out of a module that’s honestly quite easy to configure, for me I had to use this to get already synced animations then load them into a module I have in the humanoid that stored all loaded anims. Then I retrieved that table on every left click to a server script that fired a remote function to start the animation

1 Like

It doesnt need to be playing ig. Personally I think its a little simpler than that so boom ig

1 Like

You can always Play the animations and put their weight to absolutely nothing (so that you do not see them) (you can always loop the animations / set the animation speed to zero) and then proceed to use:

GetPlayingAnimationTracks

Yes you could do that, but thats a whole process so I just do this