Hello, I have seen many topics on this and spent lots of time trying to get a simple animation to play but all of the solutions I have tried never worked. When I run my animation in the game, it says, Failed to load animation - sanitized ID: rbxassetid://17353845468 (The game is under a group and I put in 2 animations 1 under the groups name and 1 under mine but both of them had this error). Any help?
local inRadius = false
local radius = 15
local objectPosition = Vector3.new(-24.005, 3.764, 63.418) or game.Workspace.ForestHelmetShop.Helmet.Position
local UserInputService = game:GetService("UserInputService")
local open1 = script.Parent.open1
local animation = game.Workspace:WaitForChild("blackSmithPlace"):WaitForChild("Hammer"):WaitForChild("AnimationController"):WaitForChild("Animation")
local loader = game.Workspace:WaitForChild("blackSmithPlace"):WaitForChild("Hammer"):WaitForChild("AnimationController")
open1.Activated:Connect(function()
if inRadius == true then
if script.Parent.Visible == true then
local Cam = game.Workspace.CurrentCamera
local CameraObject = game.Workspace.blackSmithPlace.rollCam
script.Parent.Parent.Active = false
script.Parent.Visible = false
script.Parent.Parent.HelmetFrame.Visible = false
Cam.CFrame = CameraObject.CFrame
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = 0
Cam.CameraType = Enum.CameraType.Scriptable
--params: helmetBoxNumb
game.ReplicatedStorage.remotes.openEvent:FireServer(1)
--play anim
local load = loader:LoadAnimation(animation)
load:Play()
end
end
end)