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

How can I play an animation?

I have created a lightning-zap effect in my Roblox game. I have an animation of the player moving there hand out for the lightning to shoot out of. However, whenever the animation is supposed to play, my character walks in place. Here is the code for that part.

local Animation = Instance.new("Animation")
		Animation.AnimationId = "rbxassetid://5525117451"
		local LoadAnimation = Character.Humanoid:LoadAnimation(Animation)
		LoadAnimation:Play()

1 comment

0

you need to make it copy-able

2 answers

Everything Looks Right With The Code you Just need To Turn Off Copy Lock you animation

I figured it out, I only animated the hand, so the hand animation worked, but the rest of the body kept doing the other animations (which was walking). All I had to do was edit the animation, so that the entire body stayed still, other than the hand.

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