How would I play an animation on a mesh? I don’t know how to script but I’ve exported the animation and have the mesh but I just don’t know how to play it outside of animation editor.
I’d assume you know what AnimationIds are.
You will need an Animator
and put it under the model (im not sure)
Also put a script under the model and insert this:
local animationId = "rbxassetid://0123456789" -- change this to your animation id
local animation = Instance.new("Animation")
animation.AnimationId = animationId
local animator = script.Parent.Animator
local animationTrack = animator:LoadAnimation(animation)
-- call this function to play the animation
animationTrack:Play()
10 Likes