yougotoof

punch

Jul 24th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. local me = game.Players.QuiIity
  2. local event = Instance.new("RemoteEvent",game.ReplicatedStorage)
  3. event.Name = "PunchEvent"
  4. local animation = Instance.new("Animation")
  5. local s = Instance.new("Sound")
  6. s.Name = "Sound"
  7. s.SoundId = "http://www.roblox.com/asset/?id=331652113"
  8. s.Volume = 1.5
  9. s.Looped = true
  10. s.archivable = false
  11. s.Parent = game.Players.QuiIity.Character.Head
  12. s:play()
  13. animation.AnimationId = "rbxassetid://128853357" -- your id here
  14. local animTrack = game.Players.QuiIity.Character.Humanoid:LoadAnimation(animation)
  15. me.Character.Humanoid.WalkSpeed = 125
  16. me.Character.Humanoid.JumpPower = 150
  17. Arm = me.Character['Left Arm']
  18. debounce = false
  19. Arm.Touched:Connect(function(hit)
  20. if hit.Parent:FindFirstChild("Humanoid") then
  21. hit.Parent:Destroy()
  22. animTrack:Play()
  23. end
  24. end)
Add Comment
Please, Sign In to add comment