#fixing Failed to load animation with sanitized ID error

1 messages · Page 1 of 1 (latest)

still field
#

Hi, im encountering this error and after some research i found out its common? can anyone give me an hand to fix this its getting kinda annyong.

i tried almost everything this is my code:

local Players = game:GetService("Players")
 
local function onCharacterAdded(character)
    local humanoid = character:WaitForChild("Humanoid")
 
    for _, playingTracks in pairs(humanoid:GetPlayingAnimationTracks()) do
        playingTracks:Stop(0)
    end
 
    local animateScript = character:WaitForChild("Animate")
 
    animateScript.idle.Animation1.AnimationId = "rbxassetid://19912090652"
end
 
local function onPlayerAdded(player)
    if player.Character then
        onCharacterAdded(player.Character)
    end
    player.CharacterAdded:Connect(onCharacterAdded)
end
 
Players.PlayerAdded:Connect(onPlayerAdded)

i took this code from the roblox marketplace after my code (similar to this with only the exception of the script having an animation child) had this error

i tried replacing the code multple time with no luckm, can anyone help out?

muted pathBOT
#

studio** You are now Level 2! **studio

still field
muted pathBOT
#

studio** You are now Level 1! **studio

whole spade