What is failed to load animation santized?

hi i am getting a big problem with animations whenever I try using a animation made by ROBLOX it doesnt work and gives me this error: Failed to load animation with sanitized ID rbxassetid://4940592718: AnimationClip loaded is not valid.

this is the script:

local humanoid = script.Parent:WaitForChild("Humanoid")

local animator = humanoid:WaitForChild("Animator")

local anim1 = animator:LoadAnimation(script:WaitForChild("IdleAnim"))

local anim2 = animator:LoadAnimation(script:WaitForChild("ConfusedAnim"))

local anim3 = animator:LoadAnimation(script:WaitForChild("CelbrateAnim"))

local anim = animator:LoadAnimation(script:WaitForChild("WaveAnim"))

local player = game.Players.LocalPlayer

local playergui = player.PlayerGui

local gui = playergui:WaitForChild("DialGui").Frame

anim1:Play()

local function typewrite(object, text, length)
	for i = 1, #text, 1 do
		local sound = Instance.new("Sound")
		sound.Parent = game.Workspace
		sound.SoundId = "rbxassetid://928241330"
		sound.Name = "DialSound"
		sound:Play()
		object.Text = string.sub(text, 1, i)
		wait(length)
	end 
	for i,v in pairs(game.Workspace:GetChildren()) do
		if v.Name == "DialSound" then
			v:Destroy()
		end
	end
end

script.Parent.ClickDetector.MouseClick:Connect(function()
	script.Parent.ClickDetector.MaxActivationDistance = 0
	gui.Visible = true
	
	gui.ImageColor3 = Color3.new(0.462745, 0.411765, 0.32549)
	gui.Text.Font = Enum.Font.Fondamento
	gui.TextName.Font = Enum.Font.Fondamento
	
	typewrite(gui.TextName, "Wise one", 0.01)
	
	wait(1)
	

	anim1:Stop()
	anim:Play()
	typewrite(gui.Text, "Oh hello do you need any help?", 0.05)
	anim:Stop()
	anim1:Play()

	wait(4)
	

	anim1:Stop()
	anim2:Play()
	typewrite(gui.Text, "You are looking for the gem planted by the ancient ones?", 0.05)
	anim1:Play()
	anim2:Stop()
	
	wait(5)
	
	anim1:Stop()
	anim3:Play()
	typewrite(gui.Text, "Really? I have been waiting for someone to ask me this for so long!", 0.05)
	anim1:Play()
	anim3:Stop()
	
	wait(3)
	typewrite(gui.Text, "I have a map for you to follow I will also be there", 0.05)
	
	wait(3)
	typewrite(gui.Text, "I have heared rumors that the gem ist a gem?", 0.05)
	
	wait(2)
	typewrite(gui.Text, "Ill meet you at the temple!", 0.05)
	
	wait(3)

end)

how to fix this?

  1. you don’t own the animation
  2. the animation was… taken down? although i doubt this
  3. roblox studio error, try restarting
1 Like

hi sorry for the long repsonse wait but i know i dont own the anim i am trying to use offical robloxs animations how could i combat this?

If roblox owns the animation you can probably just use InsertService’s LoadAsset to import the animation itself into your game then just reupload it yourself

You can also use the command bar to load it in regardless of who owns it: DataModel | Documentation - Roblox Creator Hub

1 Like