i made this beam weapon, and the animation doesnt load. I set the priority to action and it still doesnt work. it doesnt have an error message or anything. but i think it might be because i dont know how to replay the animation.
local tool = script.Parent local attack = script.attack local track
tool.Activated:Connect(function() track = script.Parent.Parent.Humanoid:LoadAnimation(attack) track:Play() local character = tool.Parent local humanoid = character.Humanoid local animationTrack = humanoid:LoadAnimation(attack) animationTrack:Play() attack:Play() end)
this is my script