#How To Preload Custom Movement Animations?

1 messages · Page 1 of 1 (latest)

brazen anvil
#

I am working on a game that uses custom animations for things like walking, climbing, sitting, etc. To implement them, I loaded into the game, copied the "Animate" script, pasted it into StarterCharacterScripts, and set all of the animation objects under it to the correct ids. The only thing is that there is a slight delay every single time before I start walking, climbing, etc. What could I add to the script to preload the animations?
(My game is in R6 only if that matters)

full bone
#

local ContentProvider = game:GetService("ContentProvider")

local Animation = Instance.new("Animation")

ContentProvider:PreloadAsync({Animation})

full bone
#

using the function :PreloadAsync() on a table with instances pre loads them so they dont lag

covert tundra
full bone
#

U need to use wait for child on it

#

That works for me idk why

brazen anvil
#

Oh thank you, that worked!

#

But will I only need to preload animations a single time when a player joins, or every single time they respawn?

full bone
#

Only when they first join

#

@brazen anvil