I have been looking forever on ways to do this but I can’t find anything. I have exported the animation and have the assetId but can’t figure out how to play it in game.
How do I play the animation?
I have been looking forever on ways to do this but I can’t find anything. I have exported the animation and have the assetId but can’t figure out how to play it in game.
How do I play the animation?
In a LocalScript, you load an animation object that has the AnimationId filled and then you play it.
https://developer.roblox.com/en-us/api-reference/function/Humanoid/LoadAnimation
Where do I put the KeyframeSequence instance though?
You don’t use that. You load the AssetId into an Animation instance, and play it like previously stated.
Okay, I did that but now I’m getting an error: Unable to cast value to object.
npcInstance:WaitForChild("Humanoid"):LoadAnimation("Animation"):Play()
What am I doing wrong?
You don’t use “Animation”, you need to make an Animation object in the explorer tab, and insert your AssetId you got when you uploaded the animation to the website. Then use that object instead of “Animation”