Pancakess Apr 13th, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- -- Import animation
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID=3069713559"
- -- Local variables
- local animTrack = nil
- local canPlay = true
- function playShockAnim(Source)
- if canPlay then
- local player = script.Parent.Parent
- canPlay = false
- animTrack = player.Humanoid:LoadAnimation(animation) -- Load animation into Humanoid
- canPlay = true
- animTrack:Play() -- Start the animation
RAW Paste Data