Error with animations "Failed to load animation - sanitized ID"

I’m working on a game for someone and every animation they’ve provided me as resulted in the error Failed to load animation - sanitized ID: rbxassetid://# it doesn’t seem to be related to my code, but here it is anyways.

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait() 
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://6649589005"
local animationTrack = animator:LoadAnimation(animation)

local function onInput(input : InputObject, gameProcessed : boolean)
	if gameProcessed then
		return
	end

	local action = Input.keybindings[input.KeyCode]
	if action ~= nil then
		if action == Input.gameActions.LIGHT then
			animationTrack:Play()
		end
	end
end

I haven’t seen much of this error but from what I’ve read it occurs when you don’t own the asset (in this case the animation). Is the place you’re working on created under that person’s profile? Or is it your own?

1 Like

I don’t why this happens, but the solution is to just wait an hour or two and run it again. ( unless u dont own the animation like @ProgrammingRottie said )

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