So I have a rabbit that I had animated. I am using the same script that I used with a different animal and it worked. But on this rabbit it won’t. Here is my code;
local character = script.Parent
local Humanoid = character:WaitForChild("Humanoid")
local animation = script:WaitForChild("Animation")
local animationTrack = Humanoid.Animator:LoadAnimation(animation)
local animation2 = script:WaitForChild("Animation2")
local animationTrack2 = Humanoid.Animator:LoadAnimation(animation2)
local animation3 = script:WaitForChild("Animation3")
local animationTrack3 = Humanoid.Animator:LoadAnimation(animation3)
Humanoid.Running:Connect(function(speed)
if speed > 0.1 then
animationTrack:Play()
elseif speed < 0.1 then
animationTrack:Stop()
end
end)
Humanoid.Jumping:Connect(function()
animationTrack3:Play()
end)
The code looks good. Did you save all the animations to Roblox? Any errors? Local or server script (should be server)?
EDIT: More stuff to check
Are the priorities of the animation “Movement”?
Does the model have the original Animate Script (this code would conflict with it)
Don’t quote me, but I believe this is an accountability issue. If you have a moderated animation in your game, because you saved it to your account, you are responsible for the content.