Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Problem with animations?

Asked by
RoyMer 301 Moderation Voter
8 years ago

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

1 answer

Log in to vote
4
Answered by
Hero_ic 502 Moderation Voter
8 years ago

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

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. RoyMer 301 — 8y
Ad

Answer this question