Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

An animation is failing to load but everything else is working fine?

Here is the code:

``CandoDMG = true Keybind = "f"

dmg = 25

local plr = game.Players.LocalPlayer local mouse = plr:GetMouse()

mouse.KeyDown:Connect(function(key) if key == Keybind then local anim = script.Parent.Humanoid:LoadAnimation(script.Animation) anim:Play() script.Parent.LeftHand.Touched:Connect(function(hit) if hit.Parent.Humanoid and CandoDMG == true then hit.Parent.Humanoid:TakeDamage(dmg) CandoDMG = false wait(1) CandoDMG = true

		end
	end)
end

end)```

The error im getting is: Animation "https://assetdelivery.roblox.com/v1/asset?id=5519579895&serverplaceid=0" failed to load in "Workspace.EyeDontLie.LocalScript.Animation.AnimationId": Animation failed to load I don't know what is wrong because everything else works but the animation also btw the animation's priority is action

2 comments

0

it would be good if you codeblock all your code, instead of just 3 ends

0

yep ^^^

1 answer

Make sure that the owner of the animation is also the owner of the place.

If it's a group, make the owner of the animation, the group.

Roblox won't accept animations that are not affiliated with the creator of the game.

1 comment

0

but tis a fighting game so how will the game work for everyone?

This discussion is preserved as it was. New answers, comments, and votes are closed.