Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local on = false
  2. local plr = game.Players:WaitForChild("LocalPlayer")
  3. local char = plr:WaitForChild("Character")
  4. local Humanoid = char:FindFirstChild("Humanoid")
  5.  
  6. script.Parent.MouseButton1Down:connect(function()
  7.     local animation = Instance.new("Animation")
  8.     animation.AnimationId = "rbxassetid://711386113"
  9.         if on == false then
  10.             animTrack = Humanoid:LoadAnimation(animation)
  11.             animTrack:Play()
  12.             on = true
  13.         else
  14.             animTrack:Stop()
  15.             on = false
  16.        
  17.     end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement