Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

my beam weapon doesnt load its animations?

Asked by
kiraca 0
2 years ago

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

Answer this question