Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Problem with animations?

I have made an animation myself, but whenever I try to play it, it says Animation failed to load?

1 answer

You should provide a script of what you have made but since you did not I made a script for you. put in starterpack as a localscript

--First we need to get the player and humanoid
local player = game.Players.LocalPlayer --We get the local player
local character = player.Character or player.CharacterAdded:wait()
repeat wait() until character  -- We then wait for the character to load to make sure it works correctly
local humanoid = character:WaitForChild("Humanoid")

local myAnim = Instance.new("Animation") --we need to create a new animation
myAnim.AnimationId = "rbxassetid://YOUR ID HERE" --then get our id from when you exported your animation

local AnimTrack = humanoid:LoadAnimation(myAnim) -- now we load the animation
AnimTrack:Play() -- and play

That is all you have to do hope this helped!

~KIHeros

1 comment

0

The thing is if I test my script with other animations, it works, but if I use the animation I made, it gives me the error.

This discussion is preserved as it was. New answers, comments, and votes are closed.