Advertisement
eea

hammerscript update4

eea
Aug 21st, 2021 (edited)
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. local player = owner
  2. local remote = Instance.new("RemoteEvent",game.ReplicatedStorage)
  3. remote.Name = owner.Name
  4.  
  5. NLS([[local is = game:GetService("UserInputService")
  6. local rem = game.ReplicatedStorage:FindFirstChild(owner.Name)
  7. is.InputBegan:Connect(function(key)
  8. if key.KeyCode == Enum.KeyCode.E then
  9. rem:FireServer("E")
  10. end
  11.  
  12. if key.KeyCode == Enum.KeyCode.Q then
  13. rem:FireServer("Q")
  14. end
  15. end)]],owner.Character)
  16.  
  17. local char = owner.Character
  18. local p1 = Instance.new("Part",workspace)
  19. local p2 = Instance.new("Part",workspace)
  20. local a1 = Instance.new("Attachment",p1)
  21. local a2 = Instance.new("Attachment",player.Character.HumanoidRootPart)
  22. print(a2.Parent)
  23. local w1 = Instance.new("WeldConstraint",p1)
  24. local w2 = Instance.new("WeldConstraint",p2)
  25. local r = Instance.new("RopeConstraint",a1)
  26. p1.Name = "Handle"
  27. p2.Name = "Ham"
  28. a1.Name = "A"
  29. a2.Name = "B"
  30. w1.Name = "WeldA"
  31. w2.Name = "WeldB"
  32. r.Name = "Rope"
  33. p1.Position = char.HumanoidRootPart.Position + Vector3.new(3.125, 20, 0)
  34. p1.Size = Vector3.new(4, 1.25, 1.25)
  35. p1.BrickColor = BrickColor.new("Rust")
  36. p1.Material = "Plastic"
  37. p1.BottomSurface = "Smooth"
  38. p1.TopSurface = "Smooth"
  39. p1.Anchored = true
  40. p2.Position = char.HumanoidRootPart.Position + Vector3.new(0,20,0)
  41. p2.Size = Vector3.new(2.25, 1.75, 3.75)
  42. p2.BrickColor = BrickColor.new("Smoky grey")
  43. p2.Material = "Plastic"
  44. p2.BottomSurface = "Smooth"
  45. p2.TopSurface = "Smooth"
  46. p2.CustomPhysicalProperties = PhysicalProperties.new(100,0,0,0,0)
  47. p2.Anchored = true
  48. w1.Part0 = p1
  49. w1.Part1 = p2
  50. w2.Part0 = p2
  51. w2.Part1 = p1
  52. a1.Position = Vector3.new(1,0,0)
  53. wait()
  54. char.Humanoid.BodyHeightScale.Value = 1.3
  55. char.Humanoid.BodyWidthScale.Value = 1.3
  56. char.Humanoid.BodyDepthScale.Value = 1.3
  57. char.Humanoid.HeadScale.Value = 1.3
  58. char.Humanoid.WalkSpeed = 22
  59. char.HumanoidRootPart.CustomPhysicalProperties = PhysicalProperties.new(100,0,0,0,0)
  60. player.Character.HumanoidRootPart.Anchored = true
  61. p1.Anchored = false
  62. p2.Anchored = false
  63. r.Attachment0 = a1
  64. r.Attachment1 = a2
  65. r.Length = 9
  66. r.Visible = true
  67. player.Character.HumanoidRootPart.Anchored = false
  68.  
  69. remote.OnServerEvent:Connect(function(player, key)
  70. if key == "E" then
  71. r.Length = r.Length + 1
  72. end
  73.  
  74. if key == "Q" then
  75. r.Length = r.Length - 1
  76. end
  77. end)
  78.  
  79. local debounce = false
  80.  
  81. p2.Touched:Connect(function(p)
  82. if p:IsA("Part") and not p.Parent:FindFirstChild("Humanoid") then
  83. p.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.2, 0.5, 1, 1)
  84. end
  85.  
  86. if p.Parent:FindFirstChild("Humanoid") and p.Parent.Name ~= owner.Name then
  87. if not debounce then
  88. debounce = true
  89. local human = p.Parent:FindFirstChild("Humanoid")
  90. human:TakeDamage(43)
  91. end
  92.  
  93. wait(0.4)
  94. debounce = false
  95.  
  96. end
  97. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement