There’s probably an easy fix for this, but I’m new to scripting animations. Whenever I play an animation, there’s a tiny delay until the animation actually plays because it hasn’t completely loaded for the player yet. How do I fix this?
1 Like
You cant I think, the best way you can do might be to Load the animations once the players character is added then just stop them.
1 Like
local ContentProvider = game:GetService("ContentProvider")
local animation = Instance.new("Animation")
animation.AnimationId = "whatever"
ContentProvider:PreloadAsync({animation})
Also make sure you’re loading it on the client for the fastest response times
5 Likes
okay, cool. but im still a little bit confused about it. would i do animation:Play() after that? i did that with my animation but it says that “Play” isn’t a child of animation.
1 Like
afterwards you still have to load the animation into the humanoid,
local animationtrack = humanoid:LoadAnimation(animation)
animationtrack:Play()
2 Likes
alright, thank you! ill do this in the future.