Failed to load animation: rbxassetid://14267708790
and it is driving me insane. I know there are a lot of duplicates for this topic, and I read every single one. I made sure the animation was owned by the owner of the game and I’m not sure what can be the fix anymore. Here is the relevant area of my script driving me insane:
local mainChar = plr.Character
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://14267708790"
local humanoid = mainChar.Humanoid
local animator = humanoid:FindFirstChildOfClass("Animator")
if not animator then
animator = Instance.new("Animator", humanoid)
end
local Animation1 = animator:LoadAnimation(anim)
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://14267233500"
local humanoid = enemy.Humanoid
local animator = humanoid:FindFirstChildOfClass("Animator")
if not animator then
animator = Instance.new("Animator", humanoid)
end
local Animation2 = animator:LoadAnimation(anim)
mainChar.Humanoid.WalkSpeed = 0
mainChar.HumanoidRootPart.CFrame = CFrame.new(mainChar.HumanoidRootPart.Position,Vector3.new(enemy.HumanoidRootPart.Position.X,mainChar.HumanoidRootPart.Position.Y,enemy.HumanoidRootPart.Position.Z))
enemy.HumanoidRootPart.CFrame = mainChar.HumanoidRootPart.CFrame * CFrame.new(0,0,-5)
enemy.HumanoidRootPart.CFrame = CFrame.new(enemy.HumanoidRootPart.Position,Vector3.new(mainChar.HumanoidRootPart.Position.X,enemy.HumanoidRootPart.Position.Y,mainChar.HumanoidRootPart.Position.Z))
task.wait(10)
Animation1:Play()
Animation2:Play()
Animation1.Stopped:Wait()
Any help would be extremely appreciated. Thank you.
Idk ima throw a bunch of guesses your way -
Did you try making sure if the animation works on the player instead of studio?
Does the owner of the game actually own the animation (you prob addressed this) - Did you try reuploading it ugain, or checking if it worked previously with the animation player?
Does the animation actually work for the rig you intended it on? Like the bones and/or connective joints?
also if you stop getting that error but it still doesnt work id reccomend moving it to a LocalScript in StarterPlayerScripts and using game.Players.LocalPlayer