Advertisement
eea

Untitled

eea
Aug 21st, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. local player = owner
  2. local char = owner.Character
  3. local p1 = Instance.new("Part",workspace)
  4. local p2 = Instance.new("Part",workspace)
  5. local a1 = Instance.new("Attachment",p1)
  6. local a2 = Instance.new("Attachment",player.Character.HumanoidRootPart)
  7. print(a2.Parent)
  8. local w1 = Instance.new("WeldConstraint",p1)
  9. local w2 = Instance.new("WeldConstraint",p2)
  10. local r = Instance.new("RopeConstraint",a1)
  11. p1.Name = "Handle"
  12. p2.Name = "Ham"
  13. a1.Name = "A"
  14. a2.Name = "B"
  15. w1.Name = "WeldA"
  16. w2.Name = "WeldB"
  17. r.Name = "Rope"
  18. p1.Position = char.HumanoidRootPart.Position + Vector3.new(3.125, 20, 0)
  19. p1.Size = Vector3.new(4, 1.25, 1.25)
  20. p1.BrickColor = BrickColor.new("Rust")
  21. p1.Material = "Plastic"
  22. p1.BottomSurface = "Smooth"
  23. p1.TopSurface = "Smooth"
  24. p1.Anchored = true
  25. p2.Position = char.HumanoidRootPart.Position + Vector3.new(0,20,0)
  26. p2.Size = Vector3.new(2.25, 1.75, 3.75)
  27. p2.BrickColor = BrickColor.new("Smoky grey")
  28. p2.Material = "Plastic"
  29. p2.BottomSurface = "Smooth"
  30. p2.TopSurface = "Smooth"
  31. p2.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0.2, 0.5, 100, 1)
  32. p2.Anchored = true
  33. w1.Part0 = p1
  34. w1.Part1 = p2
  35. w2.Part0 = p2
  36. w2.Part1 = p1
  37. a1.Position = Vector3.new(-1,0,0)
  38. wait(3)
  39. player.Character.HumanoidRootPart.Anchored = true
  40. p1.Anchored = false
  41. p2.Anchored = false
  42. r.Attachment0 = a1
  43. r.Attachment1 = a2
  44. r.Length = 9
  45. r.Visible = true
  46. player.Character.HumanoidRootPart.Anchored = false
  47. local debounce = false
  48.  
  49. p2.Touched:Connect(function(p)
  50. if p:IsA("Part") and not p.Parent:FindFirstChild("Humanoid") then
  51. p.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.2, 0.5, 1, 1)
  52. end
  53.  
  54. if p.Parent:FindFirstChild("Humanoid") and p.Parent.Name ~= owner.Name then
  55. if not debounce then
  56. debounce = true
  57. local human = p.Parent:FindFirstChild("Humanoid")
  58. human:TakeDamage(43)
  59. end
  60.  
  61. wait(0.4)
  62. debounce = false
  63.  
  64. end
  65. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement