I am have Having trouble on how to apply custom animation to a custom rig. Where should I start.
Thank You!!
I am have Having trouble on how to apply custom animation to a custom rig. Where should I start.
Thank You!!
If the custom rig has a humanoid and HumanoidRootPart, just use the default Animation Editor on Studio, the same as you use it with normal characters. Or what kind of custom rigs you have?
I have created 2 animations a walk and a idle animation in the default animation editor. So how do apply them to the rig.
If you overrided the Animate default roblox script, then you gotta create a new one.
If you still using the default Anime script, just access it and change it. Replace the walk and idle animation with the ID of your uploaded animations.
Do it by script on characterAdded event, replace the id’s inside Animate.
Get the Animate script from the Character from CharacterAdded event. And change the idle and walk animations. I typed a way to change the sit animation, cause I dont remember the name of the Idle one. I need to read it.
local animateScript = character:WaitForChild("Animate")
animateScript.sit.SitAnim.AnimationId = "rbxassetid://0000000000"
Or in studio, go to Animate script (I forgot you need to copy it from the game if you dont have it already in your CharacterScripts folder, just run the game, find the Animate script inside your own character, copy it, stop the simulation, and paste it in that folder), and replace the id’s of your desired animations. Probably you want to replace ALL animations, cause your character would be unable to play any of the default ones correctly.
Or if you want to just start the animation from an event in your game, Lets say, the character is burning alive at some point of the game :v …
Then just store the animation, or use the ID to create an Animation instance, and give it play
-- Anim Loading
local idleAnim = script.Parent.Idle -- I placed an animation instance inside the model called Idle
idleAnim = CreatureHumanoid:LoadAnimation(idleAnim) -- This is the Humanoid of the custom character
idleAnim.Looped = true
idleAnim.Priority = Enum.AnimationPriority.Idle
idleAnim:Play()
Right now I cant remember the “new” way to play animations. The last one is a little deprecated function but still working.