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