Animation failing to load

I keep gettings the error

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.

3 Likes

reply to this man he needs it we have been trying for hours

1 Like

Is the animation ID correct?
Can you access the animation from a web browser?

1 Like

I can access the animations from a web browser, and the ids are correct.

Is the game a group game? Because the animation appears to be uploaded to a profile.

No it is not a group game. The animation is uploaded to my friend’s profile. My friend also owns the game.

Is the code in a LocalScript? Otherwise it wouldn’t work, because animations are client-sided. (i think)

rutro raggy______________________________________________

It’s found in a server script in serverscriptservice.

put it in a LocalScript in StarterPlayerScripts and test it again?

idk maybe this will help?

I tried doing that, but it still doesn’t load.

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?

maybe this also?

This didn’t fix my problem :frowning: __________

this is probably what is happening. wait until tomorrow or night if it’s morning and try again?

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

I have checked all of your questions, and here are my answers in order:

  1. Yes
  2. Yes
  3. Yes
  4. Yes
  5. The link didn’t help

I’ll try this I guess. _____________

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.