Animation not loading - failed to load anim with sanitized id

soo basically im helping a friend make a game and i have to get the animations working, however this error appears when the animation is supposted to load and play.
failed to load animation with sanitized ID rbxassetid://18782213589 animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=18782213589&serverplaceid=0
yea i need help cuz i already tried finding the answer to my issue and couldnt.

the animations AND the game is owned by them, so i really dont see the reason why animations wont load.

heres the script:

local tool = script.Parent
local slash
local hold


tool.Equipped:Connect(function()
	char = tool.Parent
	local holdanim = Instance.new("Animation")
	holdanim.AnimationId = "https://www.roblox.com/asset/?id=18782043077"
	
	hold = char:WaitForChild("Humanoid"):LoadAnimation(holdanim)
	
	hold:Play()
end)

tool.Unequipped:Connect(function()
	hold:Stop()
end)

tool.Activated:Connect(function()
	local slashanim = Instance.new("Animation")
	slashanim.AnimationId = "https://www.roblox.com/asset/?id=18782213589"
	slash = char:WaitForChild("Humanoid"):LoadAnimation(slashanim)
	
	slash:Play()
	
end)



slash:GetMarkerReachedSignal("slashpoint"):Connect(function()
	--other stuff here
end)

Make sure that you uploaded the animation under YOUR account. If you’re in a group make sure you uploaded it under the group the game is in. Once you upload it, give it around 3-4 minutes just to upload to Roblox.

i am NOT the owner of the game so it SHOULDNT be under MY account. the animation is under the account of the OWNER of the game.

Instead of setting the AnimationId to

"https://www.roblox.com/asset/?id=18782213589"

Set it equal to

"rbxassetid://18782213589"

Also, make sure when you copy the ID you don’t go to the webpage and just copy the ID at the top, that’s not the correct ID. Make sure that you click on the three dots and click Copy Asset ID. The only way you can get the correct ID is by clicking a button somewhere saying Copy Asset ID, you can’t copy the ID in the webpage URL anymore in the creator hub or marketplace.

Edit: When I go the webpage URL you inputted above, I get this error. Clearly it shows that your URL is incorrect and your Asset ID is probably wrong.
image

Usually, if this is not owned by a group, you would get errors in studio from people you work with. This error should not happen inside Roblox so you can ignore this inside Studio and test it public instead.

Hope this helps! :slight_smile:

nope, rbxassetid didnt work either. ill ask the creator how they send me the anim ids.

alright ill test it in a public server right now.

oh wait, it DOES work in public servers!! thanks a bunch.

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