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
you need to make it copy-able