local animation = Instance.new("Animation") animation.AnimationId = "https://web.roblox.com/catalog/4760001635" -- Local variables local animTrack = nil local canPlay = true function playShockAnim(Source) if canPlay then canPlay = false animTrack = script.Parent.Humanoid:LoadAnimation(animation) -- Load animation into Humanoid canPlay = true animTrack:Play() -- Start the animation end end
https://gyazo.com/87e99c72daa2891625a0653ad0b2c918 (this is the link to what happens)
how do I play my animation?
Okay, you are not calling your function somewhere, just try to do
playShockAnim()
And also, you have not welded some bodyparts, so they just falling down.