RblxVoidScriptBuild

piped

Oct 10th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.56 KB | None | 0 0
  1. --By Rufus14
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. print("This has been edited by me.")
  18. print("YES. It is i bacon_hairkid9")
  19. cors = {}
  20. mas = Instance.new("Model",game:GetService("Lighting"))
  21. Tool0 = Instance.new("Tool")
  22. Part1 = Instance.new("Part")
  23. Sound2 = Instance.new("Sound")
  24. Sound3 = Instance.new("Sound")
  25. Sound4 = Instance.new("Sound")
  26. Sound5 = Instance.new("Sound")
  27. Weld5 = Instance.new("Weld")
  28. Weld6 = Instance.new("Weld")
  29. Weld7 = Instance.new("Weld")
  30. Weld8 = Instance.new("Weld")
  31. Weld9 = Instance.new("Weld")
  32. Sound10 = Instance.new("Sound")
  33. Sound11 = Instance.new("Sound")
  34. Part12 = Instance.new("Part")
  35. Part13 = Instance.new("Part")
  36. Part14 = Instance.new("Part")
  37. Part15 = Instance.new("Part")
  38. Part16 = Instance.new("Part")
  39. Script17 = Instance.new("Script")
  40. Tool0.Name = "Pipe"
  41. Tool0.Parent = mas
  42. Part1.Name = "Handle"
  43. Part1.Parent = Tool0
  44. Part1.CFrame = CFrame.new(15.2139997, 2.55800009, -5.85500002, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  45. Part1.Orientation = Vector3.new(0, -90, 0)
  46. Part1.Position = Vector3.new(15.2139997, 2.55800009, -5.85500002)
  47. Part1.Rotation = Vector3.new(0, -90, 0)
  48. Part1.Color = Color3.new(0.623529, 0.631373, 0.67451)
  49. Part1.Size = Vector3.new(3.90909028, 0.72727263, 0.72727263)
  50. Part1.BottomSurface = Enum.SurfaceType.Smooth
  51. Part1.BrickColor = BrickColor.new("Fossil")
  52. Part1.CanCollide = false
  53. Part1.Material = Enum.Material.Metal
  54. Part1.TopSurface = Enum.SurfaceType.Smooth
  55. Part1.brickColor = BrickColor.new("Fossil")
  56. Part1.Shape = Enum.PartType.Cylinder
  57. Sound2.Name = "MetalHit"
  58. Sound2.Parent = Part1
  59. Sound2.Pitch = 1.2999999523163
  60. Sound2.PlaybackSpeed = 1.2999999523163
  61. Sound2.SoundId = "rbxassetid://933780081"
  62. Sound3.Name = "Swoosh"
  63. Sound3.Parent = Part1
  64. Sound3.SoundId = "rbxassetid://1489705211"
  65. Sound4.Name = "Hit"
  66. Sound4.Parent = Part1
  67. Sound4.SoundId = "rbxassetid://743886825"
  68. Sound5.Parent = Part1
  69. Sound5.Name = "unequip"
  70. Sound5.SoundId = "rbxassetid://769464514"
  71. Weld5.Parent = Part1
  72. Weld5.C0 = CFrame.new(-1.30636311, 0.00200498104, -0.00644207001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  73. Weld5.Part0 = Part1
  74. Weld5.Part1 = Part16
  75. Weld5.part1 = Part16
  76. Weld6.Parent = Part1
  77. Weld6.C0 = CFrame.new(0.0269742012, 0.00200498104, -0.00644397736, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  78. Weld6.Part0 = Part1
  79. Weld6.Part1 = Part13
  80. Weld6.part1 = Part13
  81. Weld7.Parent = Part1
  82. Weld7.C0 = CFrame.new(1.33000708, 0.00200498104, -0.0064458847, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  83. Weld7.Part0 = Part1
  84. Weld7.Part1 = Part14
  85. Weld7.part1 = Part14
  86. Weld8.Parent = Part1
  87. Weld8.C0 = CFrame.new(-1.94272614, 0.00200498104, -0.0064458847, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  88. Weld8.Part0 = Part1
  89. Weld8.Part1 = Part12
  90. Weld8.part1 = Part12
  91. Weld9.Parent = Part1
  92. Weld9.C0 = CFrame.new(-1.94272089, 0.00200498104, 0.539008141, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  93. Weld9.Part0 = Part1
  94. Weld9.Part1 = Part15
  95. Weld9.part1 = Part15
  96. Sound10.Name = "Swoosh2"
  97. Sound10.Parent = Part1
  98. Sound10.SoundId = "rbxassetid://181894961"
  99. Sound11.Name = "MetalHit2"
  100. Sound11.Parent = Part1
  101. Sound11.SoundId = "rbxassetid://546410481"
  102. Part12.Name = "Ball"
  103. Part12.Parent = Tool0
  104. Part12.CFrame = CFrame.new(15.2204456, 2.56000519, -7.79772615, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  105. Part12.Orientation = Vector3.new(0, -90, 0)
  106. Part12.Position = Vector3.new(15.2204456, 2.56000519, -7.79772615)
  107. Part12.Rotation = Vector3.new(0, -90, 0)
  108. Part12.Color = Color3.new(0.623529, 0.631373, 0.67451)
  109. Part12.Size = Vector3.new(0.72727263, 0.72727263, 0.72727263)
  110. Part12.BottomSurface = Enum.SurfaceType.Smooth
  111. Part12.BrickColor = BrickColor.new("Fossil")
  112. Part12.CanCollide = false
  113. Part12.Material = Enum.Material.Metal
  114. Part12.TopSurface = Enum.SurfaceType.Smooth
  115. Part12.brickColor = BrickColor.new("Fossil")
  116. Part12.Shape = Enum.PartType.Ball
  117. Part13.Parent = Tool0
  118. Part13.CFrame = CFrame.new(15.2204437, 2.56000519, -5.82802582, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  119. Part13.Orientation = Vector3.new(0, -90, 0)
  120. Part13.Position = Vector3.new(15.2204437, 2.56000519, -5.82802582)
  121. Part13.Rotation = Vector3.new(0, -90, 0)
  122. Part13.Color = Color3.new(0.356863, 0.364706, 0.411765)
  123. Part13.Size = Vector3.new(0.181818157, 0.799999774, 0.799999774)
  124. Part13.BottomSurface = Enum.SurfaceType.Smooth
  125. Part13.BrickColor = BrickColor.new("Smoky grey")
  126. Part13.CanCollide = false
  127. Part13.Material = Enum.Material.Concrete
  128. Part13.TopSurface = Enum.SurfaceType.Smooth
  129. Part13.brickColor = BrickColor.new("Smoky grey")
  130. Part13.Shape = Enum.PartType.Cylinder
  131. Part14.Parent = Tool0
  132. Part14.CFrame = CFrame.new(15.2204456, 2.56000519, -4.52499294, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  133. Part14.Orientation = Vector3.new(0, -90, 0)
  134. Part14.Position = Vector3.new(15.2204456, 2.56000519, -4.52499294)
  135. Part14.Rotation = Vector3.new(0, -90, 0)
  136. Part14.Color = Color3.new(0.356863, 0.364706, 0.411765)
  137. Part14.Size = Vector3.new(0.181818157, 0.799999774, 0.799999774)
  138. Part14.BottomSurface = Enum.SurfaceType.Smooth
  139. Part14.BrickColor = BrickColor.new("Smoky grey")
  140. Part14.CanCollide = false
  141. Part14.Material = Enum.Material.Concrete
  142. Part14.TopSurface = Enum.SurfaceType.Smooth
  143. Part14.brickColor = BrickColor.new("Smoky grey")
  144. Part14.Shape = Enum.PartType.Cylinder
  145. Part15.Parent = Tool0
  146. Part15.CFrame = CFrame.new(14.6749916, 2.56000519, -7.79772091, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  147. Part15.Orientation = Vector3.new(0, 180, 0)
  148. Part15.Position = Vector3.new(14.6749916, 2.56000519, -7.79772091)
  149. Part15.Rotation = Vector3.new(-180, 0, -180)
  150. Part15.Color = Color3.new(0.623529, 0.631373, 0.67451)
  151. Part15.Size = Vector3.new(1.09090889, 0.72727263, 0.72727263)
  152. Part15.BottomSurface = Enum.SurfaceType.Smooth
  153. Part15.BrickColor = BrickColor.new("Fossil")
  154. Part15.CanCollide = false
  155. Part15.Material = Enum.Material.Metal
  156. Part15.TopSurface = Enum.SurfaceType.Smooth
  157. Part15.brickColor = BrickColor.new("Fossil")
  158. Part15.Shape = Enum.PartType.Cylinder
  159. Part16.Parent = Tool0
  160. Part16.CFrame = CFrame.new(15.2204418, 2.56000519, -7.16136312, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  161. Part16.Orientation = Vector3.new(0, -90, 0)
  162. Part16.Position = Vector3.new(15.2204418, 2.56000519, -7.16136312)
  163. Part16.Rotation = Vector3.new(0, -90, 0)
  164. Part16.Color = Color3.new(0.356863, 0.364706, 0.411765)
  165. Part16.Size = Vector3.new(0.181818157, 0.799999774, 0.799999774)
  166. Part16.BottomSurface = Enum.SurfaceType.Smooth
  167. Part16.BrickColor = BrickColor.new("Smoky grey")
  168. Part16.CanCollide = false
  169. Part16.Material = Enum.Material.Concrete
  170. Part16.TopSurface = Enum.SurfaceType.Smooth
  171. Part16.brickColor = BrickColor.new("Smoky grey")
  172. Part16.Shape = Enum.PartType.Cylinder
  173. Script17.Name = "LeadpipeServer"
  174. Script17.Parent = Tool0
  175. table.insert(cors,sandbox(Script17,function()
  176. --By Rufus14, inspired by leadpipe melee from R2DA
  177. --[[
  178. Featuring:
  179. NPC Concussion
  180. Melee immunity (u cant be damaged while attacking and your humanoid changes name)
  181. --
  182. Each hit makes player's screen 90% whiter,
  183. Stuns characters
  184. ]]--
  185. canattack = true
  186. cananimate = true
  187. attackanim = 0
  188. sine = 0
  189. range = 3
  190. tool = script.Parent
  191. ball = tool.Ball
  192. handle = tool.Handle
  193. swooshsound = handle.Swoosh
  194. metalhit = handle.MetalHit
  195. swooshsound2 = handle.Swoosh2
  196. metalhit2 = handle.MetalHit2
  197. hitsound = handle.Hit
  198. step = game:GetService("RunService").Stepped
  199. owner = nil
  200. function equip()
  201. tool = script.Parent
  202. owner = tool.Parent
  203. local leftarm = Instance.new("Weld", owner.Torso)
  204. leftarm.Part0 = owner.Torso
  205. leftarm.Part1 = owner["Left Arm"]
  206. leftarm.C0 = CFrame.new(-1.5,0.5,0)
  207. leftarm.C1 = CFrame.new(0,0.5,0)
  208. leftarm.Name = "LeftArmWelde"
  209. local rightarm = Instance.new("Weld", owner.Torso)
  210. rightarm.Part0 = owner.Torso
  211. rightarm.Part1 = owner["Right Arm"]
  212. rightarm.C0 = CFrame.new(1.5,0.5,0)
  213. rightarm.C1 = CFrame.new(0,0.5,0)
  214. rightarm.Name = "RightArmWelde"
  215. local head = Instance.new("Weld", owner.Torso)
  216. head.Part0 = owner.Torso
  217. head.Part1 = owner.Head
  218. head.C0 = CFrame.new(0,1,0)
  219. head.C1 = CFrame.new(0,-0.5,0)
  220. head.Name = "HeadWelde"
  221. local humanoidrootpart = Instance.new("Weld", owner.HumanoidRootPart)
  222. humanoidrootpart.Part0 = owner.HumanoidRootPart
  223. humanoidrootpart.Part1 = owner.Torso
  224. humanoidrootpart.Name = "HumanoidRootPartWelde"
  225. local pipeweld = owner["Right Arm"]:WaitForChild("RightGrip")
  226. pipeweld.C0 = CFrame.new(-1.33580685, -1.09495306, -0.391068697, 0.96628654, 0.230114311, -0.115489528, 0.127946258, -0.0399156809, 0.990977526, 0.223428279, -0.972344756, -0.0680122375)
  227. local function checkanim()
  228. while tool.Parent.ClassName ~= "Backpack" and tool.Parent.ClassName ~= "Workspace" and tool.Parent ~= nil and step:wait() do
  229. sine = sine + 1
  230. if cananimate then
  231. pipeweld.C0 = pipeweld.C0:lerp(CFrame.new(-1.33580685, -1.09495306, -0.391068697, 0.96628654, 0.230114311, -0.115489528, 0.127946258, -0.0399156809, 0.990977526, 0.223428279, -0.972344756, -0.0680122375),0.2)
  232. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),0.2)
  233. rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(45 + (3*math.sin(sine/60))),math.rad(-2.5)+math.sin(sine/60)/15,math.rad(-10) + math.rad(math.sin(sine/60))),0.2)
  234. leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(55 + (3*math.sin(sine/60))),0,math.rad(10) + math.rad(-math.sin(sine/60))),0.2)
  235. head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.rad(math.sin(sine/60)),0,0),0.2)
  236. end
  237. end
  238. end
  239. spawn(checkanim)
  240. end
  241. attacknumber = 0
  242. function swing()
  243. if canattack then
  244. cananimate = false
  245. canattack = false
  246. owner:findFirstChildOfClass("Humanoid").Name = "Immunity"
  247. local hp = owner:findFirstChildOfClass("Humanoid").Health
  248. local function immunity()
  249. while not cananimate do
  250. owner:findFirstChildOfClass("Humanoid").Health = hp
  251. step:wait()
  252. end
  253. for i = 1,100 do
  254. owner:findFirstChildOfClass("Humanoid").Health = hp
  255. step:wait()
  256. end
  257. if cananimate then
  258. owner:findFirstChildOfClass("Humanoid").Name = "Humanoid"
  259. end
  260. end
  261. spawn(immunity)
  262. if attacknumber == 0 then
  263. attacknumber = 1
  264. local swingrand = math.random(-50,50)
  265. for i = 0,1 , 0.14 do
  266. if owner:findFirstChild("HumanoidRootPart") then
  267. if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
  268. local humweld = owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde")
  269. humweld.C0 = humweld.C0:lerp(CFrame.new(0, 0, 0, 0.33682403, 0.0593911596, -0.939692616, -0.173648149, 0.98480773, 0, 0.925416529, 0.163175896, 0.342020094),i)
  270. end
  271. end
  272. if owner:findFirstChild("Right Arm") then
  273. if owner["Right Arm"]:findFirstChild("RightGrip") then
  274. if owner["Right Arm"].RightGrip.Part1 == handle then
  275. owner["Right Arm"].RightGrip.C0 = owner["Right Arm"].RightGrip.C0:lerp(CFrame.new(-0.0920391083, -1.25493407, -1.08148742, 0.0278200079, 0.997889102, 0.0586810894, 0.0716719925, -0.0605439581, 0.995588958, 0.997040212, -0.0234915055, -0.0732050538),i)
  276. end
  277. end
  278. end
  279. if owner:findFirstChild("Torso") then
  280. if owner.Torso:findFirstChild("RightArmWelde") then
  281. owner.Torso:findFirstChild("RightArmWelde").C0 = owner.Torso:findFirstChild("RightArmWelde").C0:lerp(CFrame.new(0,-0.1,0) * CFrame.new(1.43301249, 0.884340763, -0.405934334, 0.866025448, 7.4505806e-09, -0.499999762, -0.171009988, -0.939692438, -0.296198189, -0.469846129, 0.342020154, -0.813797832) * CFrame.fromEulerAnglesXYZ(0,math.rad(swingrand),0),i)
  282. end
  283. if owner.Torso:findFirstChild("LeftArmWelde") then
  284. owner.Torso:findFirstChild("LeftArmWelde").C0 = owner.Torso:findFirstChild("LeftArmWelde").C0:lerp(CFrame.new(0.5,0.5,0) * CFrame.new(-1.96153116, 0.131953716, 0, 0.766044378, 0.642787516, -2.98023224e-08, -0.642787516, 0.766044378, 0, -2.98023224e-08, 1.49011612e-08, 0.99999994),i)
  285. end
  286. if owner.Torso:findFirstChild("HeadWelde") then
  287. owner.Torso:findFirstChild("HeadWelde").C0 = owner.Torso:findFirstChild("HeadWelde").C0:lerp(CFrame.new(0,-0.5,0) * CFrame.new(-0.0815877914, 1.49240351, -0.0296964645, 0.342020094, -0.163175687, 0.92541647, -1.45519152e-09, 0.98480773, 0.17364797, -0.939692557, -0.0593911, 0.336824089),i)
  288. end
  289. end
  290. step:wait()
  291. end
  292. swooshsound2.Pitch = 1 + math.random(-2,2)/10
  293. swooshsound2:Play()
  294. swooshsound.Pitch = 1 + math.random(-2,2)/10
  295. swooshsound:Play()
  296. for i = 0,1 , 0.1 do
  297. if owner:findFirstChild("HumanoidRootPart") then
  298. if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
  299. local humweld = owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde")
  300. humweld.C0 = humweld.C0:lerp(CFrame.new(0, 0, 0, 0.645385742, -0.0593911596, 0.761544466, -0.0868240744, 0.98480767, 0.150383741, -0.758906364, -0.163175881, 0.630424261),i)
  301. end
  302. end
  303. if owner:findFirstChild("Right Arm") then
  304. if owner["Right Arm"]:findFirstChild("RightGrip") then
  305. if owner["Right Arm"].RightGrip.Part1 == handle then
  306. owner["Right Arm"].RightGrip.C0 = owner["Right Arm"].RightGrip.C0:lerp(CFrame.new(-0.0920391083, -1.25493407, -1.08148742, 0.0278200079, 0.997889102, 0.0586810894, 0.0716719925, -0.0605439581, 0.995588958, 0.997040212, -0.0234915055, -0.0732050538),i)
  307. end
  308. end
  309. end
  310. if owner:findFirstChild("Torso") then
  311. if owner.Torso:findFirstChild("RightArmWelde") then
  312. owner.Torso:findFirstChild("RightArmWelde").C0 = owner.Torso:findFirstChild("RightArmWelde").C0:lerp(CFrame.new(0,0.4,0.3) * CFrame.new(1.88293552, 0.2333498, -0.433140755, 0.859446883, -0.503111184, -0.0907213986, 0.308427513, 0.651808023, -0.692833483, 0.407705337, 0.567472816, 0.715367913) * CFrame.fromEulerAnglesXYZ(0,math.rad(swingrand),0),i)
  313. end
  314. if owner.Torso:findFirstChild("LeftArmWelde") then
  315. owner.Torso:findFirstChild("LeftArmWelde").C0 = owner.Torso:findFirstChild("LeftArmWelde").C0:lerp(CFrame.new(0.5,0.5,0) * CFrame.new(-1.96153116, 0.131953716, 0, 0.766044378, 0.642787516, -2.98023224e-08, -0.642787516, 0.766044378, 0, -2.98023224e-08, 1.49011612e-08, 0.99999994),i)
  316. end
  317. if owner.Torso:findFirstChild("HeadWelde") then
  318. owner.Torso:findFirstChild("HeadWelde").C0 = owner.Torso:findFirstChild("HeadWelde").C0:lerp(CFrame.new(0,-0.5,0) * CFrame.new(-0.0406684875, 1.4979527, 0.0197181702, 0.649181902, -0.0813359022, -0.756272018, 0.0229108427, 0.995905817, -0.0874414966, 0.76028806, 0.0394386649, 0.648387671),i)
  319. end
  320. end
  321. step:wait()
  322. end
  323. for i,v in pairs(workspace:GetChildren()) do
  324. if v.ClassName == "Model" and v ~= owner then
  325. local headdd = v:findFirstChild("Head")
  326. local humanoiddd = v:findFirstChildOfClass("Humanoid")
  327. if humanoiddd and headdd then
  328. if (headdd.Position - ball.Position).magnitude <= range then
  329. humanoiddd.Health = humanoiddd.Health - math.random(20,25)
  330. hitsound.Pitch = 1 + math.random(-2,2)/10
  331. hitsound:Play()
  332. metalhit2.Pitch = 1 + math.random(-2,2)/10
  333. metalhit2:Play()
  334. metalhit.Pitch = 1 + math.random(-2,2)/10
  335. metalhit.TimePosition = 1
  336. metalhit:Play()
  337. headdd.CFrame = CFrame.new(headdd.Position, owner.Head.Position)
  338. headdd.CFrame = headdd.CFrame * CFrame.fromEulerAnglesXYZ(0.3,0,0)
  339. humanoiddd.PlatformStand = true
  340. local velocity = Instance.new("BodyVelocity", headdd)
  341. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  342. velocity.Velocity = owner.HumanoidRootPart.CFrame.lookVector * 10
  343. game.Debris:AddItem(velocity,0.3)
  344. local function gothit()
  345. if not game:GetService("Players"):findFirstChild(humanoiddd.Parent.Name) then
  346. local boolvalue = Instance.new("BoolValue", humanoiddd.Parent)
  347. boolvalue.Name = "owieConcussed"
  348. if not headdd:findFirstChild("Textr") then
  349. -- Farewell Infortality.
  350. -- Version: 2.82
  351. -- Instances:
  352. local Text = Instance.new("BillboardGui")
  353. local Name = Instance.new("TextLabel")
  354. --Properties:
  355. Text.Name = "Textr"
  356. Text.Parent = headdd
  357. Text.Size = UDim2.new(2, 0, 2, 0)
  358. Text.StudsOffset = Vector3.new(-4, 3, 0)
  359.  
  360. Name.Name = "Name"
  361. Name.Parent = Text
  362. Name.BackgroundTransparency = 1
  363. Name.Size = UDim2.new(5, 0, 1, 0)
  364. Name.Font = Enum.Font.Cartoon
  365. Name.Text = "(Concussed)"
  366. Name.TextColor3 = Color3.new(1, 1, 1)
  367. Name.TextScaled = true
  368. Name.TextWrapped = true
  369. end
  370. local function walkaround()
  371. while v:findFirstChild("owieConcussed") do
  372. local therandom1 = math.random(-15,15)
  373. local therandom2 = math.random(-15,15)
  374. local randomstop = math.random(80,140)
  375. for i = 1,randomstop do
  376. humanoiddd.WalkToPoint = Vector3.new(headdd.Position.x + therandom1,0,headdd.Position.z + therandom2)
  377. step:wait()
  378. end
  379. end
  380. if headdd:findFirstChild("Textr") then
  381. headdd:findFirstChild("Textr"):destroy()
  382. end
  383. end
  384. spawn(walkaround)
  385. game.Debris:AddItem(boolvalue, 15)
  386. else
  387. local flashedplr = game:GetService("Players"):findFirstChild(humanoiddd.Parent.Name)
  388. if v == flashedplr.Character then
  389. local dead = Instance.new("ScreenGui")
  390. local ringing = Instance.new("Sound", dead)
  391. local Frame = Instance.new("Frame")
  392. game.Debris:AddItem(dead,10)
  393. --Properties:
  394. dead.Name = "dead"
  395. dead.Parent = flashedplr:findFirstChildOfClass("PlayerGui")
  396. dead.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  397.  
  398. Frame.Parent = dead
  399. Frame.BackgroundColor3 = Color3.new(255,255,255)
  400. Frame.Size = UDim2.new(1, 0, 1, 36)
  401. Frame.BackgroundTransparency = 0.1
  402. Frame.Position = Frame.Position + UDim2.new(0,0,0,-36)
  403.  
  404. ringing.SoundId = "rbxassetid://152736435"
  405. ringing.Volume = 0.05
  406. ringing.Looped = true
  407. ringing:Play()
  408. local function waitfordisapear()
  409. wait(7)
  410. for i = 1,150 do
  411. ringing.Volume = ringing.Volume - 0.001
  412. Frame.BackgroundTransparency = Frame.BackgroundTransparency + 0.02
  413. wait()
  414. end
  415. dead:destroy()
  416. end
  417. spawn(waitfordisapear)
  418. else
  419. local boolvalue = Instance.new("BoolValue", humanoiddd.Parent)
  420. boolvalue.Name = "owieConcussed"
  421. if not headdd:findFirstChild("Textr") then
  422. -- Farewell Infortality.
  423. -- Version: 2.82
  424. -- Instances:
  425. local Text = Instance.new("BillboardGui")
  426. local Name = Instance.new("TextLabel")
  427. --Properties:
  428. Text.Name = "Textr"
  429. Text.Parent = headdd
  430. Text.Size = UDim2.new(2, 0, 2, 0)
  431. Text.StudsOffset = Vector3.new(-4, 3, 0)
  432.  
  433. Name.Name = "Name"
  434. Name.Parent = Text
  435. Name.BackgroundTransparency = 1
  436. Name.Size = UDim2.new(5, 0, 1, 0)
  437. Name.Font = Enum.Font.Cartoon
  438. Name.Text = "(Concussed)"
  439. Name.TextColor3 = Color3.new(1, 1, 1)
  440. Name.TextScaled = true
  441. Name.TextWrapped = true
  442. end
  443. local function walkaround()
  444. while v:findFirstChild("owieConcussed") do
  445. local therandom1 = math.random(-15,15)
  446. local therandom2 = math.random(-15,15)
  447. local randomstop = math.random(80,140)
  448. for i = 1,randomstop do
  449. humanoiddd.WalkToPoint = Vector3.new(headdd.Position.x + therandom1,0,headdd.Position.z + therandom2)
  450. step:wait()
  451. end
  452. end
  453. if headdd:findFirstChild("Textr") then
  454. headdd:findFirstChild("Textr"):destroy()
  455. end
  456. end
  457. spawn(walkaround)
  458. game.Debris:AddItem(boolvalue, 15)
  459. end
  460. end
  461. wait(1.2)
  462. humanoiddd.PlatformStand = false
  463. end
  464. spawn(gothit)
  465. end
  466. end
  467. end
  468. end
  469. elseif attacknumber == 1 then
  470. attacknumber = 0
  471. local swingrand = math.random(-20,20)
  472. for i = 0,1 , 0.14 do
  473. if owner:findFirstChild("HumanoidRootPart") then
  474. if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
  475. local humweld = owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde")
  476. humweld.C0 = humweld.C0:lerp(CFrame.new(0, 0, 0, 0.342020303, 0.163175672, 0.925416589, 4.47034836e-08, 0.98480773, -0.17364797, -0.939692557, 0.0593911409, 0.336824268),i)
  477. end
  478. end
  479. if owner:findFirstChild("Right Arm") then
  480. if owner["Right Arm"]:findFirstChild("RightGrip") then
  481. if owner["Right Arm"].RightGrip.Part1 == handle then
  482. owner["Right Arm"].RightGrip.C0 = owner["Right Arm"].RightGrip.C0:lerp(CFrame.new(-0.0920391083, -1.25493407, -1.08148742, 0.0278200079, 0.997889102, 0.0586810894, 0.0716719925, -0.0605439581, 0.995588958, 0.997040212, -0.0234915055, -0.0732050538),i)
  483. end
  484. end
  485. end
  486. if owner:findFirstChild("Torso") then
  487. if owner.Torso:findFirstChild("RightArmWelde") then
  488. owner.Torso:findFirstChild("RightArmWelde").C0 = owner.Torso:findFirstChild("RightArmWelde").C0:lerp(CFrame.new(0,0,0.5) * CFrame.new(1.11058283, 0.534516811, -1.14242649, 0.133022264, 0.395739019, 0.908677936, 0.991084576, -0.0600325875, -0.118940994, 0.00748064928, 0.916398764, -0.400196671) * CFrame.fromEulerAnglesXYZ(0,math.rad(swingrand),0),i)
  489. end
  490. if owner.Torso:findFirstChild("LeftArmWelde") then
  491. owner.Torso:findFirstChild("LeftArmWelde").C0 = owner.Torso:findFirstChild("LeftArmWelde").C0:lerp(CFrame.new(0.5,0.5,0) * CFrame.new(-1.96153116, 0.131953716, 0, 0.766044378, 0.642787516, -2.98023224e-08, -0.642787516, 0.766044378, 0, -2.98023224e-08, 1.49011612e-08, 0.99999994),i)
  492. end
  493. if owner.Torso:findFirstChild("HeadWelde") then
  494. owner.Torso:findFirstChild("HeadWelde").C0 = owner.Torso:findFirstChild("HeadWelde").C0:lerp(CFrame.new(0,-0.5,0) * CFrame.new(-2.38418579e-07, 1.49999952, 9.53674316e-07, 0.49999994, 2.60770321e-08, -0.866025388, -1.02445483e-08, 0.999999821, -3.35276127e-08, 0.866025567, -1.49011612e-08, 0.49999994),i)
  495. end
  496. end
  497. step:wait()
  498. end
  499. swooshsound2.Pitch = 1 + math.random(-2,2)/10
  500. swooshsound2:Play()
  501. swooshsound.Pitch = 1 + math.random(-2,2)/10
  502. swooshsound:Play()
  503. local canhitaaaaaaaaa = true
  504. for i = 0,1 , 0.1 do
  505. if i >= 0.5 and canhitaaaaaaaaa then
  506. canhitaaaaaaaaa = false
  507. for i,v in pairs(workspace:GetChildren()) do
  508. if v.ClassName == "Model" and v ~= owner then
  509. local headdd = v:findFirstChild("Head")
  510. local humanoiddd = v:findFirstChildOfClass("Humanoid")
  511. if humanoiddd and headdd then
  512. if (headdd.Position - ball.Position).magnitude <= range then
  513. humanoiddd.Health = humanoiddd.Health - math.random(20,25)
  514. hitsound.Pitch = 1 + math.random(-2,2)/10
  515. hitsound:Play()
  516. metalhit2.Pitch = 1 + math.random(-2,2)/10
  517. metalhit2:Play()
  518. metalhit.Pitch = 1 + math.random(-2,2)/10
  519. metalhit.TimePosition = 1
  520. metalhit:Play()
  521. headdd.CFrame = CFrame.new(headdd.Position, owner.Head.Position)
  522. headdd.CFrame = headdd.CFrame * CFrame.fromEulerAnglesXYZ(0.3,0,0)
  523. humanoiddd.PlatformStand = true
  524. local velocity = Instance.new("BodyVelocity", headdd)
  525. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  526. velocity.Velocity = owner.HumanoidRootPart.CFrame.lookVector * 10
  527. game.Debris:AddItem(velocity,0.3)
  528. local function gothit()
  529. if not game:GetService("Players"):findFirstChild(humanoiddd.Parent.Name) then
  530. local boolvalue = Instance.new("BoolValue", humanoiddd.Parent)
  531. boolvalue.Name = "owieConcussed"
  532. if not headdd:findFirstChild("Textr") then
  533. -- Farewell Infortality.
  534. -- Version: 2.82
  535. -- Instances:
  536. local Text = Instance.new("BillboardGui")
  537. local Name = Instance.new("TextLabel")
  538. --Properties:
  539. Text.Name = "Textr"
  540. Text.Parent = headdd
  541. Text.Size = UDim2.new(2, 0, 2, 0)
  542. Text.StudsOffset = Vector3.new(-4, 3, 0)
  543.  
  544. Name.Name = "Name"
  545. Name.Parent = Text
  546. Name.BackgroundTransparency = 1
  547. Name.Size = UDim2.new(5, 0, 1, 0)
  548. Name.Font = Enum.Font.Cartoon
  549. Name.Text = "(Concussed)"
  550. Name.TextColor3 = Color3.new(1, 1, 1)
  551. Name.TextScaled = true
  552. Name.TextWrapped = true
  553. end
  554. local function walkaround()
  555. while v:findFirstChild("owieConcussed") do
  556. local therandom1 = math.random(-15,15)
  557. local therandom2 = math.random(-15,15)
  558. local randomstop = math.random(80,140)
  559. for i = 1,randomstop do
  560. humanoiddd.WalkToPoint = Vector3.new(headdd.Position.x + therandom1,0,headdd.Position.z + therandom2)
  561. step:wait()
  562. end
  563. end
  564. if headdd:findFirstChild("Textr") then
  565. headdd:findFirstChild("Textr"):destroy()
  566. end
  567. end
  568. spawn(walkaround)
  569. game.Debris:AddItem(boolvalue, 15)
  570. else
  571. local flashedplr = game:GetService("Players"):findFirstChild(humanoiddd.Parent.Name)
  572. if v == flashedplr.Character then
  573. local dead = Instance.new("ScreenGui")
  574. local ringing = Instance.new("Sound", dead)
  575. local Frame = Instance.new("Frame")
  576. game.Debris:AddItem(dead,10)
  577. --Properties:
  578. dead.Name = "dead"
  579. dead.Parent = flashedplr:findFirstChildOfClass("PlayerGui")
  580. dead.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  581.  
  582. Frame.Parent = dead
  583. Frame.BackgroundColor3 = Color3.new(255,255,255)
  584. Frame.Size = UDim2.new(1, 0, 1, 36)
  585. Frame.BackgroundTransparency = 0.1
  586. Frame.Position = Frame.Position + UDim2.new(0,0,0,-36)
  587.  
  588. ringing.SoundId = "rbxassetid://152736435"
  589. ringing.Volume = 0.05
  590. ringing.Looped = true
  591. ringing:Play()
  592. local function waitfordisapear()
  593. wait(7)
  594. for i = 1,150 do
  595. ringing.Volume = ringing.Volume - 0.001
  596. Frame.BackgroundTransparency = Frame.BackgroundTransparency + 0.02
  597. wait()
  598. end
  599. dead:destroy()
  600. end
  601. spawn(waitfordisapear)
  602. else
  603. local boolvalue = Instance.new("BoolValue", humanoiddd.Parent)
  604. boolvalue.Name = "owieConcussed"
  605. if not headdd:findFirstChild("Textr") then
  606. -- Farewell Infortality.
  607. -- Version: 2.82
  608. -- Instances:
  609. local Text = Instance.new("BillboardGui")
  610. local Name = Instance.new("TextLabel")
  611. --Properties:
  612. Text.Name = "Textr"
  613. Text.Parent = headdd
  614. Text.Size = UDim2.new(2, 0, 2, 0)
  615. Text.StudsOffset = Vector3.new(-4, 3, 0)
  616.  
  617. Name.Name = "Name"
  618. Name.Parent = Text
  619. Name.BackgroundTransparency = 1
  620. Name.Size = UDim2.new(5, 0, 1, 0)
  621. Name.Font = Enum.Font.Cartoon
  622. Name.Text = "(Concussed)"
  623. Name.TextColor3 = Color3.new(1, 1, 1)
  624. Name.TextScaled = true
  625. Name.TextWrapped = true
  626. end
  627. local function walkaround()
  628. while v:findFirstChild("owieConcussed") do
  629. local therandom1 = math.random(-15,15)
  630. local therandom2 = math.random(-15,15)
  631. local randomstop = math.random(80,140)
  632. for i = 1,randomstop do
  633. humanoiddd.WalkToPoint = Vector3.new(headdd.Position.x + therandom1,0,headdd.Position.z + therandom2)
  634. step:wait()
  635. end
  636. end
  637. if headdd:findFirstChild("Textr") then
  638. headdd:findFirstChild("Textr"):destroy()
  639. end
  640. end
  641. spawn(walkaround)
  642. game.Debris:AddItem(boolvalue, 15)
  643. end
  644. end
  645. wait(1.2)
  646. humanoiddd.PlatformStand = false
  647. end
  648. spawn(gothit)
  649. end
  650. end
  651. end
  652. end
  653. end
  654. if owner:findFirstChild("HumanoidRootPart") then
  655. if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
  656. local humweld = owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde")
  657. humweld.C0 = humweld.C0:lerp(CFrame.new(0, 0, 0, 0.356122136, 0.10289897, -0.928756654, 0.0610870048, 0.989228606, 0.133022025, 0.932440579, -0.104107097, 0.346000373),i)
  658. end
  659. end
  660. if owner:findFirstChild("Right Arm") then
  661. if owner["Right Arm"]:findFirstChild("RightGrip") then
  662. if owner["Right Arm"].RightGrip.Part1 == handle then
  663. owner["Right Arm"].RightGrip.C0 = owner["Right Arm"].RightGrip.C0:lerp(CFrame.new(-0.0920391083, -1.25493407, -1.08148742, 0.0278200079, 0.997889102, 0.0586810894, 0.0716719925, -0.0605439581, 0.995588958, 0.997040212, -0.0234915055, -0.0732050538),i)
  664. end
  665. end
  666. end
  667. if owner:findFirstChild("Torso") then
  668. if owner.Torso:findFirstChild("RightArmWelde") then
  669. owner.Torso:findFirstChild("RightArmWelde").C0 = owner.Torso:findFirstChild("RightArmWelde").C0:lerp(CFrame.new(0,0.7,0.3) * CFrame.new(1.94078016, 0.420045853, -0.739268303, 0.133022189, -0.718527198, 0.682659388, 0.991084456, 0.0912356675, -0.0970924273, 0.00748063065, 0.689488888, 0.724257588) * CFrame.fromEulerAnglesXYZ(0,math.rad(swingrand),0),i)
  670. end
  671. if owner.Torso:findFirstChild("LeftArmWelde") then
  672. owner.Torso:findFirstChild("LeftArmWelde").C0 = owner.Torso:findFirstChild("LeftArmWelde").C0:lerp(CFrame.new(0.7,0,0) * CFrame.new(-2.05798006, 0.156598568, 9.53674316e-07, 0.50000006, 0.866025329, -5.96046448e-08, -0.86602509, 0.499999821, -1.11758709e-08, -4.47034836e-08, -8.94069672e-08, 1),i)
  673. end
  674. if owner.Torso:findFirstChild("HeadWelde") then
  675. owner.Torso:findFirstChild("HeadWelde").C0 = owner.Torso:findFirstChild("HeadWelde").C0:lerp(CFrame.new(0,-0.5,0) * CFrame.new(0, 1.49999905, 0, 0.342020094, -6.70552254e-08, 0.939692616, -1.10594556e-08, 0.999999702, -6.70552254e-08, -0.939692676, -1.11758709e-08, 0.342019945),i)
  676. end
  677. end
  678. step:wait()
  679. end
  680. end
  681. cananimate = true
  682. canattack = true
  683. end
  684. end
  685. tool.Activated:connect(swing)
  686. function unequip()
  687. Sound5:Play()
  688. if owner.Torso:findFirstChild("LeftArmWelde") then
  689. owner.Torso:findFirstChild("LeftArmWelde"):destroy()
  690. end
  691. if owner.Torso:findFirstChild("RightArmWelde") then
  692. owner.Torso:findFirstChild("RightArmWelde"):destroy()
  693. end
  694. if owner.Torso:findFirstChild("HeadWelde") then
  695. owner.Torso:findFirstChild("HeadWelde"):destroy()
  696. end
  697. if owner["Right Arm"]:findFirstChild("pipeweld") then
  698. owner["Right Arm"]:findFirstChild("pipeweld"):destroy()
  699. end
  700. if owner:findFirstChild("HumanoidRootPart") then
  701. if owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde") then
  702. owner.HumanoidRootPart:findFirstChild("HumanoidRootPartWelde"):destroy()
  703. end
  704. end
  705. end
  706. tool.Unequipped:connect(unequip)
  707. tool.Equipped:connect(equip)
  708. end))
  709. for i,v in pairs(mas:GetChildren()) do
  710. v.Parent = owner.Character
  711. pcall(function() v:MakeJoints() end)
  712. end
  713. mas:Destroy()
  714. for i,v in pairs(cors) do
  715. spawn(function()
  716. pcall(v)
  717. end)
  718. end
Add Comment
Please, Sign In to add comment