How to effectively preload animations?

I’m working on a game and in the game there are jumpscares for certain creatures that kill you, but i don’t know how i would preload their jumpscare animations.

Doing Humanoid:LoadAnimation(animation) or Animator:LoadAnimation(animation) should preload the animation.
I recomend using an Animator object instead of the humanoid.

create a reference to the loaded animation before you play it
for example

local loadedAnimation = humanoid.Animator:LoadAnimation(animation)

function do_something()



This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.