Advertisement
memberhero

OOF2

Nov 20th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 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. if hit.Parent:FindFirstChild("ForceField") then
  30. hit.Parent:BreakJoints()
  31. end
  32. end
  33. end)
  34. tool.Equipped:connect(function()
  35. sound = Instance.new("Sound")
  36. sound.SoundId = "rbxassetid://948494432"
  37. sound.Parent = tool
  38. sound:Play()
  39. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement