Advertisement
zombieslayerwtf

Holy Wrench [Leaked]

Apr 3rd, 2018
870
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. script.Parent = workspace.CurrentCamera
  2. local plr = game:GetService("Players").LocalPlayer
  3. Instance.new("ForceField",game.Players.LocalPlayer.Character)
  4.  
  5. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  6. tool.Grip = CFrame.new(0,-0.8,-0.2) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  7. tool.Name = "Holy Wrench"
  8.  
  9. local part = Instance.new("Part",tool)
  10. part.Name = "Handle"
  11. part.Size = Vector3.new(4,6,4)
  12. part.TopSurface = "Smooth"
  13. part.BottomSurface = "Smooth"
  14. part.CanCollide = false
  15. part:BreakJoints()
  16.  
  17. local mesh = Instance.new("SpecialMesh",part)
  18. mesh.MeshId = "rbxassetid://431003868" --mesh.MeshId = "rbxassetid://132920499"
  19. mesh.TextureId = "rbxassetid://430627740" --"http://www.roblox.com/asset/?id=134479421"
  20. mesh.Scale = Vector3.new(2,2,2)
  21.  
  22. local sound = Instance.new("Sound",part)
  23. sound.SoundId = "rbxassetid://511340819"
  24. sound.Volume = 3
  25.  
  26. local sound2 = Instance.new("Sound",part)
  27. sound2.SoundId = "rbxassetid://280667448"
  28. sound2.Volume = 5
  29.  
  30. local sound3 = Instance.new("Sound",part)
  31. sound3.SoundId = "rbxassetid://139100774"
  32. sound3.Volume = 10
  33.  
  34. local sound4 = Instance.new("Sound",part)
  35. sound4.SoundId = "rbxassetid://258057783"
  36. sound4.Volume = 10
  37.  
  38. local sound5 = Instance.new("Sound",part)
  39. sound5.SoundId = "rbxassetid://130932305"
  40. sound5.Volume = 10
  41.  
  42. local sound6 = Instance.new("Sound",part)
  43. sound6.SoundId = "rbxassetid://906084456"
  44. sound6.Volume = 10
  45. sound6.TimePosition = 2
  46.  
  47. function firstHum(target)
  48. for i,v in pairs(target:GetChildren()) do
  49. if v:IsA("Humanoid") then
  50. return v
  51. end
  52. end
  53. return nil
  54. end
  55.  
  56. local slap = false
  57. local cd = false
  58.  
  59. plr:GetMouse().Button1Down:connect(function()
  60. if tool.Parent == plr.Character then
  61. if slap == false then
  62. slap = true
  63. sound2:Play()
  64. local str = Instance.new("StringValue")
  65. str.Name = "toolanim"
  66. str.Value = "Slash"
  67. str.Parent = tool
  68. wait(1)
  69. slap = false
  70. end
  71. end
  72. end)
  73.  
  74. part.Touched:connect(function(hit)
  75. if slap == true then
  76. if cd == false then
  77. if not hit:IsDescendantOf(plr.Character) then
  78. if hit.Parent:IsA("Model") then
  79. local fhum = firstHum(hit.Parent)
  80. if fhum then
  81. cd = true
  82. fhum.PlatformStand = true
  83. sound:Play()
  84. local con1
  85. con1 = game:GetService("RunService").Heartbeat:connect(function()
  86. fhum.PlatformStand = true
  87. end)
  88. wait(0.1)
  89. local vel = Instance.new("BodyVelocity",hit)
  90. vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
  91. vel.MaxForce = Vector3.new(10000000,10000000,10000000)
  92. wait(1)
  93. cd = false
  94. vel:Destroy()
  95. local vel2 = Instance.new("BodyVelocity",hit)
  96. vel2.Velocity = Vector3.new(0,1000,0)
  97. vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
  98. local p2 = Instance.new("Part",hit)
  99. p2.Anchored = true
  100. p2.Transparency = 0.6
  101. p2.CanCollide = false
  102. p2.Size = Vector3.new(0.2,0.2,0.2)
  103. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  104. p2.BrickColor = BrickColor.new("New Yeller")
  105. p2.Material = "Neon"
  106. local m2 = Instance.new("CylinderMesh",p2)
  107. m2.Scale = Vector3.new(60,10000,60)
  108. local scln = sound3:Clone()
  109. scln.Parent = hit
  110. scln:Play()
  111. local con2
  112. con2 = game:GetService("RunService").Heartbeat:connect(function()
  113. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  114. end)
  115. wait(7)
  116. vel2.Velocity = Vector3.new(0,0,0)
  117. wait(0.5)
  118. scln:Stop()
  119. local scln3 = sound5:Clone()
  120. scln3.Parent = hit
  121. scln3:Play()
  122. wait(1)
  123. local bav = Instance.new("BodyAngularVelocity",hit)
  124. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  125. vel2.Velocity = Vector3.new(0,-250,0)
  126. p2.BrickColor = BrickColor.new("Really red")
  127. local scln6 = sound6:Clone()
  128. scln6.Parent = hit
  129. scln6:Play()
  130. local continue = false
  131. local htc
  132. htc = hit.Touched:connect(function(hitp)
  133. if not hitp:IsDescendantOf(hit.Parent) then
  134. continue = true
  135. scln6:Stop()
  136. vel2:Destroy()
  137. con2:Disconnect()
  138. con1:Disconnect()
  139. htc:Disconnect()
  140. p2:Destroy()
  141. end
  142. end)
  143. repeat wait() until continue == true
  144. local ctab = {}
  145. for i=1,4 do
  146. local p = Instance.new("Part",hit)
  147. p.Size = Vector3.new(30,30,30)
  148. p.Anchored = true
  149. p.CanCollide = false
  150. p.TopSurface = "Smooth"
  151. p.BottomSurface = "Smooth"
  152. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  153. p.CFrame = hit.CFrame
  154. local con
  155. con = game:GetService("RunService").Heartbeat:connect(function()
  156. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  157. p.Transparency = p.Transparency + 0.01
  158. if p.Transparency >= 1 then
  159. con:Disconnect()
  160. end
  161. end)
  162. table.insert(ctab,con)
  163. end
  164. Instance.new("Explosion",workspace).Position = hit.Position
  165. local scln2 = sound4:Clone()
  166. scln2.Parent = hit
  167. scln2:Play()
  168. vel2:Destroy()
  169. hit.Parent:BreakJoints()
  170. repeat wait() until not hit:IsDescendantOf(workspace)
  171. con2:Disconnect()
  172. end
  173. end
  174. end
  175. end
  176. end
  177. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement