So basically, my animation for a tool doesn't work! My script is:

local Tool = script.Parent
local Animation = Tool.Animation

Tool.Activated:Connect(function()
	local Character = Tool.Parent
	local Humanoid = Character.Humanoid
	
	local AnimationTrack = Humanoid:LoadAnimation(Animation)
	AnimationTrack:Play()
end)

my animation was allowed pretty sure, the id is 5311042620

--Animation "rbxassetid://5311042620 failed to load in "Animation.AnimationId":Animation failed to load

That is the error! Please help!

3 comments

0

Try playing it in-game instead of Roblox Studio.

0

That is what I already did, my pc is too slow to test it in studio.

0

if this is for a tool make it action priority