Advertisement
memberhero

OOF

Nov 20th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. wait(1)
  2. Player = game:GetService("Players").LocalPlayer
  3. Character = Player.Character
  4. tool = Instance.new("Tool")
  5. tool.Parent = Player.Backpack
  6. handle = Instance.new("Part")
  7. handle.Name = "Handle"
  8. handle.Parent = tool
  9. mesh = Instance.new("SpecialMesh")
  10. mesh.MeshId = "rbxassetid://532155954"
  11. mesh.TextureId = "rbxassetid://532156041"
  12. mesh.Parent = handle
  13. animation = Instance.new("Animation")
  14. animation.AnimationId = "rbxassetid://105371766"
  15. animation.Parent = tool
  16. tool.Activated:connect(function()
  17. local animtrack = Player.Character.Humanoid:LoadAnimation(animation)
  18. animtrack:Play()
  19. end)
  20. handle.Touched:connect(function(hit)
  21. if hit.Parent:FindFirstChild("Humanoid") then
  22. hit.Parent.Humanoid:TakeDamage(10)
  23. hurt = Instance.new("Sound")
  24. hurt.SoundId = "rbxassetid://1096783747"
  25. hurt.PlaybackSpeed = 0.5
  26. hurt.Volume = 10
  27. hurt.Parent = tool
  28. hurt:Play()
  29. end
  30. end)
  31. tool.Equipped:connect(function()
  32. sound = Instance.new("Sound")
  33. sound.SoundId = "rbxassetid://948494432"
  34. sound.Parent = tool
  35. sound:Play()
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement