Advertisement
billwa

M18A1 Claymore -BROKEN, WIP-

Aug 18th, 2015
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.79 KB | None | 0 0
  1. m18a1 = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  2. m18a1.GripPos = Vector3.new(0.69999998807907,0,0)
  3. m18a1.Grip = CFrame.new(0.69999998807907,0,0) * CFrame.Angles(-2.7904105081689e-005, 0.19730991125107, -2.7904105081689e-005)
  4. m18a1.GripForward = Vector3.new(-0.19603215157986,-2.7362671971787e-005,-0.98059666156769)
  5. m18a1.Name = "M18A1"
  6. m18a1.GripRight = Vector3.new(0.98059666156769,-3.3374453778379e-005,-0.19603215157986)
  7. m18a1.GripUp = Vector3.new(2.7362671971787e-005,1,-3.3374453778379e-005)
  8.  
  9. part8 = Instance.new("Part",m18a1)
  10. part8.FormFactor = Enum.FormFactor.Custom
  11. part8.CanCollide = false
  12. part8.TopSurface = Enum.SurfaceType.Smooth
  13. part8.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  14. part8.Name = "Part8"
  15. part8.CFrame = CFrame.new(-0.52392613887787,-0.039335962384939,-33.345020294189) * CFrame.Angles(0.00096099119400606, 0.29559862613678, -3.1409907341003)
  16. part8.BrickColor = BrickColor.new("Brick yellow")
  17. part8.Friction = 0.30000001192093
  18. part8.BottomSurface = Enum.SurfaceType.Smooth
  19.  
  20. mesh = Instance.new("SpecialMesh",part8)
  21. mesh.Scale = Vector3.new(0.79999995231628,0.39999997615814,0.39999997615814)
  22. mesh.MeshType = Enum.MeshType.Wedge
  23.  
  24. part9 = Instance.new("Part",m18a1)
  25. part9.FormFactor = Enum.FormFactor.Custom
  26. part9.CanCollide = false
  27. part9.TopSurface = Enum.SurfaceType.Smooth
  28. part9.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  29. part9.Name = "Part9"
  30. part9.CFrame = CFrame.new(-0.65839833021164,0.06174898147583,-33.267738342285) * CFrame.Angles(0.00089086004300043, 0.29555663466454, -1.8320337533951)
  31. part9.BrickColor = BrickColor.new("Brick yellow")
  32. part9.Friction = 0.30000001192093
  33. part9.BottomSurface = Enum.SurfaceType.Smooth
  34.  
  35. mesh = Instance.new("SpecialMesh",part9)
  36. mesh.Scale = Vector3.new(0.59999996423721,0.59999996423721,0.79999995231628)
  37. mesh.MeshType = Enum.MeshType.Wedge
  38.  
  39. weld = Instance.new("Weld",part9)
  40. weld.Part1 = Detector
  41. weld.Part0 = Part9
  42. weld.C1 = CFrame.new(-307.08624267578,-220.11706542969,-241.86853027344) * CFrame.Angles(-3.5447796108201e-005, 0.26182407140732, 3.5447796108201e-005)
  43. weld.C0 = CFrame.new(240.10000610352,314.89999389648,220.80000305176) * CFrame.Angles(1.5707963705063, -0, 3.1415927410126)
  44.  
  45. detector = Instance.new("Part",m18a1)
  46. detector.FormFactor = Enum.FormFactor.Custom
  47. detector.CanCollide = false
  48. detector.Transparency = 1
  49. detector.TopSurface = Enum.SurfaceType.Smooth
  50. detector.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  51. detector.Name = "Detector"
  52. detector.CFrame = CFrame.new(-0.31218618154526,-6.2715001106262,-32.647266387939) * CFrame.Angles(0.0029059308581054, -1.2752088308334, 1.5726896524429)
  53. detector.BrickColor = BrickColor.new("Brick yellow")
  54. detector.Friction = 0.30000001192093
  55. detector.BottomSurface = Enum.SurfaceType.Smooth
  56.  
  57. weld = Instance.new("Weld",detector)
  58. weld.Part1 = Handle
  59. weld.Part0 = Detector
  60. weld.C1 = CFrame.new(241.8420715332,-220.41229248047,-313.47076416016) * CFrame.Angles(-0.00016526760009583, -1.3088983297348, -0.00016526639228687)
  61. weld.C0 = CFrame.new(-307.08624267578,-220.11706542969,-241.86853027344) * CFrame.Angles(-3.5447796108201e-005, 0.26182407140732, 3.5447796108201e-005)
  62.  
  63. handle = Instance.new("Part",m18a1)
  64. handle.FormFactor = Enum.FormFactor.Custom
  65. handle.TopSurface = Enum.SurfaceType.Smooth
  66. handle.Size = Vector3.new(1.4800000190735,0.63999998569489,0.20000000298023)
  67. handle.Name = "Handle"
  68. handle.CFrame = CFrame.new(-0.40367808938026,0.08956190943718,-32.927307128906) * CFrame.Angles(-1.5697077512741, -0.00063033407786861, 0.29559949040413)
  69. handle.BrickColor = BrickColor.new("Brick yellow")
  70. handle.Friction = 0.30000001192093
  71. handle.BottomSurface = Enum.SurfaceType.Smooth
  72.  
  73. mesh = Instance.new("BlockMesh",handle)
  74. mesh.Scale = Vector3.new(1,1,0.79999995231628)
  75.  
  76. soundtt = Instance.new("Sound",handle)
  77. soundtt.Volume = 1
  78. soundtt.SoundId = "http://www.roblox.com/asset/?id=14863866"
  79.  
  80. explosion = Instance.new("Sound",handle)
  81. explosion.Pitch = 0.60000002384186
  82. explosion.Name = "Explosion"
  83. explosion.Volume = 1
  84. explosion.SoundId = "http://www.roblox.com/asset/?id=2693351"
  85.  
  86. weld = Instance.new("Weld",handle)
  87. weld.Part1 = Lazer1
  88. weld.Part0 = Handle
  89. weld.C1 = CFrame.new(314.97918701172,238.33633422852,-220.83198547363) * CFrame.Angles(1.5708268880844, -1.5707963705063, 0)
  90. weld.C0 = CFrame.new(241.8420715332,-220.41229248047,-313.47076416016) * CFrame.Angles(-0.00016526760009583, -1.3088983297348, -0.00016526639228687)
  91.  
  92. lazer1 = Instance.new("Part",m18a1)
  93. lazer1.FormFactor = Enum.FormFactor.Custom
  94. lazer1.CanCollide = false
  95. lazer1.Transparency = 0.5
  96. lazer1.TopSurface = Enum.SurfaceType.Smooth
  97. lazer1.Size = Vector3.new(0.20000000298023,3.2000000476837,0.20000000298023)
  98. lazer1.Name = "Lazer1"
  99. lazer1.CFrame = CFrame.new(-1.1969976425171,-1.6313956975937,-33.126178741455) * CFrame.Angles(-3.1407160758972, -0.29562351107597, 0.26120275259018)
  100. lazer1.BrickColor = BrickColor.new("Really red")
  101. lazer1.Friction = 0.30000001192093
  102. lazer1.BottomSurface = Enum.SurfaceType.Smooth
  103.  
  104. mesh = Instance.new("CylinderMesh",lazer1)
  105. mesh.Scale = Vector3.new(0.02000000141561,1,0.02000000141561)
  106.  
  107. weld = Instance.new("Weld",lazer1)
  108. weld.Part1 = Lazer2
  109. weld.Part0 = Lazer1
  110. weld.C1 = CFrame.new(152.22325134277,363.53674316406,-220.82865905762) * CFrame.Angles(1.5707728862762, -1.0470349788666, 5.9588575851421e-008)
  111. weld.C0 = CFrame.new(314.97918701172,238.33633422852,-220.83198547363) * CFrame.Angles(1.5708268880844, -1.5707963705063, 0)
  112.  
  113. lazer2 = Instance.new("Part",m18a1)
  114. lazer2.FormFactor = Enum.FormFactor.Custom
  115. lazer2.CanCollide = false
  116. lazer2.Transparency = 0.5
  117. lazer2.TopSurface = Enum.SurfaceType.Smooth
  118. lazer2.Size = Vector3.new(0.20000000298023,3.2000000476837,0.20000000298023)
  119. lazer2.Name = "Lazer2"
  120. lazer2.CFrame = CFrame.new(0.14822888374329,-1.6405953168869,-33.535858154297) * CFrame.Angles(-3.1406779289246, -0.2955627143383, -0.26251694560051)
  121. lazer2.BrickColor = BrickColor.new("Really red")
  122. lazer2.Friction = 0.30000001192093
  123. lazer2.BottomSurface = Enum.SurfaceType.Smooth
  124.  
  125. mesh = Instance.new("CylinderMesh",lazer2)
  126. mesh.Scale = Vector3.new(0.02000000141561,1,0.02000000141561)
  127.  
  128. weld = Instance.new("Weld",lazer2)
  129. weld.Part1 = Part1
  130. weld.Part0 = Lazer2
  131. weld.C1 = CFrame.new(-313.32623291016,-220.41725158691,-241.86851501465) * CFrame.Angles(-3.5447796108201e-005, 0.26182407140732, 3.5447796108201e-005)
  132. weld.C0 = CFrame.new(152.22325134277,363.53674316406,-220.82865905762) * CFrame.Angles(1.5707728862762, -1.0470349788666, 5.9588575851421e-008)
  133.  
  134. part1 = Instance.new("Part",m18a1)
  135. part1.FormFactor = Enum.FormFactor.Custom
  136. part1.CanCollide = false
  137. part1.TopSurface = Enum.SurfaceType.Smooth
  138. part1.Size = Vector3.new(0.20000000298023,0.63999998569489,0.60000002384186)
  139. part1.Name = "Part1"
  140. part1.CFrame = CFrame.new(-0.40304177999496,-0.031294584274292,-32.927612304688) * CFrame.Angles(0.0029059411026537, -1.2752088308334, 1.5726897716522)
  141. part1.BrickColor = BrickColor.new("Brick yellow")
  142. part1.Friction = 0.30000001192093
  143. part1.BottomSurface = Enum.SurfaceType.Smooth
  144.  
  145. mesh = Instance.new("BlockMesh",part1)
  146. mesh.Scale = Vector3.new(0.39999997615814,1,1)
  147.  
  148. weld = Instance.new("Weld",part1)
  149. weld.Part1 = Part10
  150. weld.Part0 = Part1
  151. weld.C1 = CFrame.new(-365.26913452148,-152.4084777832,220.82846069336) * CFrame.Angles(-1.5708103179932, 0.52355182170868, 0.00010924122034339)
  152. weld.C0 = CFrame.new(-313.32623291016,-220.41725158691,-241.86851501465) * CFrame.Angles(-3.5447796108201e-005, 0.26182407140732, 3.5447796108201e-005)
  153.  
  154. part10 = Instance.new("Part",m18a1)
  155. part10.FormFactor = Enum.FormFactor.Custom
  156. part10.CanCollide = false
  157. part10.TopSurface = Enum.SurfaceType.Smooth
  158. part10.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  159. part10.Name = "Part10"
  160. part10.CFrame = CFrame.new(-0.37941136956215,0.051581270992756,-33.352794647217) * CFrame.Angles(0.00099739176221192, 0.29554191231728, 1.8330796957016)
  161. part10.BrickColor = BrickColor.new("Brick yellow")
  162. part10.Friction = 0.30000001192093
  163. part10.BottomSurface = Enum.SurfaceType.Smooth
  164.  
  165. mesh = Instance.new("SpecialMesh",part10)
  166. mesh.Scale = Vector3.new(0.59999996423721,0.59999996423721,0.79999995231628)
  167. mesh.MeshType = Enum.MeshType.Wedge
  168.  
  169. weld = Instance.new("Weld",part10)
  170. weld.Part1 = Part11
  171. weld.Part0 = Part10
  172. weld.C1 = CFrame.new(-240.12208557129,-220.81774902344,-314.98477172852) * CFrame.Angles(3.0515249818563e-005, 9.1550406068563e-005, 3.0515249818563e-005)
  173. weld.C0 = CFrame.new(-365.26913452148,-152.4084777832,220.82846069336) * CFrame.Angles(-1.5708103179932, 0.52355182170868, 0.00010924122034339)
  174.  
  175. part11 = Instance.new("Part",m18a1)
  176. part11.FormFactor = Enum.FormFactor.Custom
  177. part11.CanCollide = false
  178. part11.TopSurface = Enum.SurfaceType.Smooth
  179. part11.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  180. part11.Name = "Part11"
  181. part11.CFrame = CFrame.new(-0.75669419765472,0.0875029489398,-33.258739471436) * CFrame.Angles(-0.74157255887985, -1.1789659261703, 0.86739975214005)
  182. part11.BrickColor = BrickColor.new("Brick yellow")
  183. part11.Friction = 0.30000001192093
  184. part11.BottomSurface = Enum.SurfaceType.Smooth
  185.  
  186. mesh = Instance.new("BlockMesh",part11)
  187. mesh.Scale = Vector3.new(0.59999996423721,0.59999996423721,0.39999997615814)
  188.  
  189. weld = Instance.new("Weld",part11)
  190. weld.Part1 = Part12
  191. weld.Part0 = Part11
  192. weld.C1 = CFrame.new(-365.2841796875,-220.84140014648,-152.28030395508) * CFrame.Angles(6.6741868067766e-006, 0.52363413572311, 9.2993352154735e-005)
  193. weld.C0 = CFrame.new(-240.12208557129,-220.81774902344,-314.98477172852) * CFrame.Angles(3.0515249818563e-005, 9.1550406068563e-005, 3.0515249818563e-005)
  194.  
  195. part12 = Instance.new("Part",m18a1)
  196. part12.FormFactor = Enum.FormFactor.Custom
  197. part12.CanCollide = false
  198. part12.TopSurface = Enum.SurfaceType.Smooth
  199. part12.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  200. part12.Name = "Part12"
  201. part12.CFrame = CFrame.new(-0.29175725579262,0.076054699718952,-33.400356292725) * CFrame.Angles(0.74588871002197, -1.1781665086746, 2.2764222621918)
  202. part12.BrickColor = BrickColor.new("Brick yellow")
  203. part12.Friction = 0.30000001192093
  204. part12.BottomSurface = Enum.SurfaceType.Smooth
  205.  
  206. mesh = Instance.new("BlockMesh",part12)
  207. mesh.Scale = Vector3.new(0.59999996423721,0.59999996423721,0.39999997615814)
  208.  
  209. weld = Instance.new("Weld",part12)
  210. weld.Part1 = Part13
  211. weld.Part0 = Part12
  212. weld.C1 = CFrame.new(152.22299194336,365.19671630859,-220.82865905762) * CFrame.Angles(1.5707728862762, -1.0470349788666, 5.9588575851421e-008)
  213. weld.C0 = CFrame.new(-365.2841796875,-220.84140014648,-152.28030395508) * CFrame.Angles(6.6741868067766e-006, 0.52363413572311, 9.2993352154735e-005)
  214.  
  215. part13 = Instance.new("Part",m18a1)
  216. part13.FormFactor = Enum.FormFactor.Custom
  217. part13.CanCollide = false
  218. part13.TopSurface = Enum.SurfaceType.Smooth
  219. part13.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  220. part13.Name = "Part13"
  221. part13.CFrame = CFrame.new(-0.26195627450943,-0.039912767708302,-33.409526824951) * CFrame.Angles(-3.1406779289246, -0.29556274414063, -0.26251688599586)
  222. part13.BrickColor = BrickColor.new("Brick yellow")
  223. part13.Friction = 0.30000001192093
  224. part13.BottomSurface = Enum.SurfaceType.Smooth
  225.  
  226. decal = Instance.new("Decal",part13)
  227. decal.Face = Enum.NormalId.Top
  228. decal.Texture = "http://www.roblox.com/asset/?id=11665139"
  229.  
  230. mesh = Instance.new("CylinderMesh",part13)
  231. mesh.Scale = Vector3.new(0.39999997615814,0.59999996423721,0.59999996423721)
  232.  
  233. weld = Instance.new("Weld",part13)
  234. weld.Part1 = Part14
  235. weld.Part0 = Part13
  236. weld.C1 = CFrame.new(314.97918701172,239.99635314941,-220.83193969727) * CFrame.Angles(1.5708268880844, -1.5707963705063, 0)
  237. weld.C0 = CFrame.new(152.22299194336,365.19671630859,-220.82865905762) * CFrame.Angles(1.5707728862762, -1.0470349788666, 5.9588575851421e-008)
  238.  
  239. part14 = Instance.new("Part",m18a1)
  240. part14.FormFactor = Enum.FormFactor.Custom
  241. part14.CanCollide = false
  242. part14.TopSurface = Enum.SurfaceType.Smooth
  243. part14.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  244. part14.Name = "Part14"
  245. part14.CFrame = CFrame.new(-0.78521698713303,-0.029991140589118,-33.250179290771) * CFrame.Angles(-3.1407160758972, -0.2956235408783, 0.26120281219482)
  246. part14.BrickColor = BrickColor.new("Brick yellow")
  247. part14.Friction = 0.30000001192093
  248. part14.BottomSurface = Enum.SurfaceType.Smooth
  249.  
  250. decal = Instance.new("Decal",part14)
  251. decal.Face = Enum.NormalId.Top
  252. decal.Texture = "http://www.roblox.com/asset/?id=11665139"
  253.  
  254. mesh = Instance.new("CylinderMesh",part14)
  255. mesh.Scale = Vector3.new(0.39999997615814,0.59999996423721,0.59999996423721)
  256.  
  257. weld = Instance.new("Weld",part14)
  258. weld.Part1 = Part15
  259. weld.Part0 = Part14
  260. weld.C1 = CFrame.new(313.42517089844,-242.3684387207,-220.10815429688) * CFrame.Angles(-1.5706536769867, -0.26175385713577, -3.1415367126465)
  261. weld.C0 = CFrame.new(314.97918701172,239.99635314941,-220.83193969727) * CFrame.Angles(1.5708268880844, -1.5707963705063, 0)
  262.  
  263. part15 = Instance.new("Part",m18a1)
  264. part15.FormFactor = Enum.FormFactor.Custom
  265. part15.CanCollide = false
  266. part15.TopSurface = Enum.SurfaceType.Smooth
  267. part15.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  268. part15.Name = "Part15"
  269. part15.CFrame = CFrame.new(-0.7812334895134,0.086429625749588,-32.456977844238) * CFrame.Angles(-3.1406452655792, -0.29568484425545, 1.5702964067459)
  270. part15.BrickColor = BrickColor.new("Brick yellow")
  271. part15.Friction = 0.30000001192093
  272. part15.BottomSurface = Enum.SurfaceType.Smooth
  273.  
  274. mesh = Instance.new("CylinderMesh",part15)
  275. mesh.Scale = Vector3.new(1.1999999284744,0.39999997615814,0.59999996423721)
  276.  
  277. weld = Instance.new("Weld",part15)
  278. weld.Part1 = Part16
  279. weld.Part0 = Part15
  280. weld.C1 = CFrame.new(313.42523193359,-241.36848449707,-220.10809326172) * CFrame.Angles(-1.5706536769867, -0.26175385713577, -3.1415367126465)
  281. weld.C0 = CFrame.new(313.42517089844,-242.3684387207,-220.10815429688) * CFrame.Angles(-1.5706536769867, -0.26175385713577, -3.1415367126465)
  282.  
  283. part16 = Instance.new("Part",m18a1)
  284. part16.FormFactor = Enum.FormFactor.Custom
  285. part16.CanCollide = false
  286. part16.TopSurface = Enum.SurfaceType.Smooth
  287. part16.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  288. part16.Name = "Part16"
  289. part16.CFrame = CFrame.new(0.17533165216446,0.087266623973846,-32.748313903809) * CFrame.Angles(-3.1406452655792, -0.29568484425545, 1.5702964067459)
  290. part16.BrickColor = BrickColor.new("Brick yellow")
  291. part16.Friction = 0.30000001192093
  292. part16.BottomSurface = Enum.SurfaceType.Smooth
  293.  
  294. mesh = Instance.new("CylinderMesh",part16)
  295. mesh.Scale = Vector3.new(1.1999999284744,0.39999997615814,0.59999996423721)
  296.  
  297. weld = Instance.new("Weld",part16)
  298. weld.Part1 = Part17
  299. weld.Part0 = Part16
  300. weld.C1 = CFrame.new(245.78273010254,-293.41952514648,241.35409545898) * CFrame.Angles(-3.0722005367279, -0.25271198153496, -2.870920419693)
  301. weld.C0 = CFrame.new(313.42523193359,-241.36848449707,-220.10809326172) * CFrame.Angles(-1.5706536769867, -0.26175385713577, -3.1415367126465)
  302.  
  303. part17 = Instance.new("Part",m18a1)
  304. part17.FormFactor = Enum.FormFactor.Custom
  305. part17.CanCollide = false
  306. part17.TopSurface = Enum.SurfaceType.Smooth
  307. part17.Size = Vector3.new(0.20000000298023,0.47999998927116,0.20000000298023)
  308. part17.Name = "Part17"
  309. part17.CFrame = CFrame.new(0.24446918070316,-0.012174159288406,-32.452857971191) * CFrame.Angles(-3.1385326385498, 1.2750945091248, 1.8305910825729)
  310. part17.BrickColor = BrickColor.new("Brick yellow")
  311. part17.Friction = 0.30000001192093
  312. part17.BottomSurface = Enum.SurfaceType.Smooth
  313.  
  314. mesh = Instance.new("BlockMesh",part17)
  315. mesh.Scale = Vector3.new(0.27999997138977,1.5000001192093,0.099999994039536)
  316.  
  317. weld = Instance.new("Weld",part17)
  318. weld.Part1 = Part18
  319. weld.Part0 = Part17
  320. weld.C1 = CFrame.new(-359.74572753906,-131.13130187988,-241.34532165527) * CFrame.Angles(0.069255776703358, 0.25273981690407, -0.2705400288105)
  321. weld.C0 = CFrame.new(245.78273010254,-293.41952514648,241.35409545898) * CFrame.Angles(-3.0722005367279, -0.25271198153496, -2.870920419693)
  322.  
  323. part18 = Instance.new("Part",m18a1)
  324. part18.FormFactor = Enum.FormFactor.Custom
  325. part18.CanCollide = false
  326. part18.TopSurface = Enum.SurfaceType.Smooth
  327. part18.Size = Vector3.new(0.20000000298023,0.47999998927116,0.20000000298023)
  328. part18.Name = "Part18"
  329. part18.CFrame = CFrame.new(0.28416514396667,0.18459148705006,-32.463325500488) * CFrame.Angles(0.0030329674482346, -1.2752219438553, 1.8345861434937)
  330. part18.BrickColor = BrickColor.new("Brick yellow")
  331. part18.Friction = 0.30000001192093
  332. part18.BottomSurface = Enum.SurfaceType.Smooth
  333.  
  334. mesh = Instance.new("BlockMesh",part18)
  335. mesh.Scale = Vector3.new(0.27999997138977,1.5000001192093,0.099999994039536)
  336.  
  337. weld = Instance.new("Weld",part18)
  338. weld.Part1 = Part19
  339. weld.Part0 = Part18
  340. weld.C1 = CFrame.new(245.78276062012,-293.41961669922,242.35411071777) * CFrame.Angles(-3.0722005367279, -0.25271198153496, -2.870920419693)
  341. weld.C0 = CFrame.new(-359.74572753906,-131.13130187988,-241.34532165527) * CFrame.Angles(0.069255776703358, 0.25273981690407, -0.2705400288105)
  342.  
  343. part19 = Instance.new("Part",m18a1)
  344. part19.FormFactor = Enum.FormFactor.Custom
  345. part19.CanCollide = false
  346. part19.TopSurface = Enum.SurfaceType.Smooth
  347. part19.Size = Vector3.new(0.20000000298023,0.47999998927116,0.20000000298023)
  348. part19.Name = "Part19"
  349. part19.CFrame = CFrame.new(-0.71061015129089,-0.014787390828133,-32.16047668457) * CFrame.Angles(-3.1385340690613, 1.2750822305679, 1.83058989048)
  350. part19.BrickColor = BrickColor.new("Brick yellow")
  351. part19.Friction = 0.30000001192093
  352. part19.BottomSurface = Enum.SurfaceType.Smooth
  353.  
  354. mesh = Instance.new("BlockMesh",part19)
  355. mesh.Scale = Vector3.new(0.27999997138977,1.5000001192093,0.099999994039536)
  356.  
  357. weld = Instance.new("Weld",part19)
  358. weld.Part1 = Part2
  359. weld.Part0 = Part19
  360. weld.C1 = CFrame.new(220.43910217285,313.31756591797,242.38061523438) * CFrame.Angles(2.8797779083252, -9.1209010861348e-005, 1.5708389282227)
  361. weld.C0 = CFrame.new(245.78276062012,-293.41961669922,242.35411071777) * CFrame.Angles(-3.0722005367279, -0.25271198153496, -2.870920419693)
  362.  
  363. part2 = Instance.new("Part",m18a1)
  364. part2.FormFactor = Enum.FormFactor.Custom
  365. part2.CanCollide = false
  366. part2.TopSurface = Enum.SurfaceType.Smooth
  367. part2.Size = Vector3.new(0.63999998569489,0.20000000298023,0.43999999761581)
  368. part2.Name = "Part2"
  369. part2.CFrame = CFrame.new(-0.89786124229431,-0.035086307674646,-32.775436401367) * CFrame.Angles(-3.138721704483, 1.2751252651215, -0.0018317792564631)
  370. part2.BrickColor = BrickColor.new("Brick yellow")
  371. part2.Friction = 0.30000001192093
  372. part2.BottomSurface = Enum.SurfaceType.Smooth
  373.  
  374. mesh = Instance.new("SpecialMesh",part2)
  375. mesh.Scale = Vector3.new(1,0.39999997615814,1)
  376. mesh.MeshType = Enum.MeshType.Wedge
  377.  
  378. weld = Instance.new("Weld",part2)
  379. weld.Part1 = Part20
  380. weld.Part0 = Part2
  381. weld.C1 = CFrame.new(-359.74572753906,-131.13122558594,-242.34530639648) * CFrame.Angles(0.069255776703358, 0.25273981690407, -0.2705400288105)
  382. weld.C0 = CFrame.new(220.43910217285,313.31756591797,242.38061523438) * CFrame.Angles(2.8797779083252, -9.1209010861348e-005, 1.5708389282227)
  383.  
  384. part20 = Instance.new("Part",m18a1)
  385. part20.FormFactor = Enum.FormFactor.Custom
  386. part20.CanCollide = false
  387. part20.TopSurface = Enum.SurfaceType.Smooth
  388. part20.Size = Vector3.new(0.20000000298023,0.47999998927116,0.20000000298023)
  389. part20.Name = "Part20"
  390. part20.CFrame = CFrame.new(-0.67091393470764,0.18188390135765,-32.17094039917) * CFrame.Angles(0.0030313762836158, -1.2752095460892, 1.834587097168)
  391. part20.BrickColor = BrickColor.new("Brick yellow")
  392. part20.Friction = 0.30000001192093
  393. part20.BottomSurface = Enum.SurfaceType.Smooth
  394.  
  395. mesh = Instance.new("BlockMesh",part20)
  396. mesh.Scale = Vector3.new(0.27999997138977,1.5000001192093,0.099999994039536)
  397.  
  398. weld = Instance.new("Weld",part20)
  399. weld.Part1 = Part3
  400. weld.Part0 = Part20
  401. weld.C1 = CFrame.new(220.41482543945,-313.56005859375,-242.39950561523) * CFrame.Angles(-0.26181471347809, -5.6325770856347e-006, 1.5708501338959)
  402. weld.C0 = CFrame.new(-359.74572753906,-131.13122558594,-242.34530639648) * CFrame.Angles(0.069255776703358, 0.25273981690407, -0.2705400288105)
  403.  
  404. part3 = Instance.new("Part",m18a1)
  405. part3.FormFactor = Enum.FormFactor.Custom
  406. part3.CanCollide = false
  407. part3.TopSurface = Enum.SurfaceType.Smooth
  408. part3.Size = Vector3.new(0.63999998569489,0.20000000298023,0.43999999761581)
  409. part3.Name = "Part3"
  410. part3.CFrame = CFrame.new(-0.89649665355682,0.20308607816696,-32.774139404297) * CFrame.Angles(0.0028699324466288, -1.2751982212067, 0.0018445280147716)
  411. part3.BrickColor = BrickColor.new("Brick yellow")
  412. part3.Friction = 0.30000001192093
  413. part3.BottomSurface = Enum.SurfaceType.Smooth
  414.  
  415. mesh = Instance.new("SpecialMesh",part3)
  416. mesh.Scale = Vector3.new(1,0.39999997615814,1)
  417. mesh.MeshType = Enum.MeshType.Wedge
  418.  
  419. weld = Instance.new("Weld",part3)
  420. weld.Part1 = Part4
  421. weld.Part0 = Part3
  422. weld.C1 = CFrame.new(-220.39801025391,-313.59222412109,241.33312988281) * CFrame.Angles(-2.8797407150269, 4.2793595639523e-005, -1.5708614587784)
  423. weld.C0 = CFrame.new(220.41482543945,-313.56005859375,-242.39950561523) * CFrame.Angles(-0.26181471347809, -5.6325770856347e-006, 1.5708501338959)
  424.  
  425. part4 = Instance.new("Part",m18a1)
  426. part4.FormFactor = Enum.FormFactor.Custom
  427. part4.CanCollide = false
  428. part4.TopSurface = Enum.SurfaceType.Smooth
  429. part4.Size = Vector3.new(0.63999998569489,0.20000000298023,0.43999999761581)
  430. part4.Name = "Part4"
  431. part4.CFrame = CFrame.new(0.098397076129913,0.20395551621914,-33.077136993408) * CFrame.Angles(-3.1385955810547, 1.2751315832138, 3.1395213603973)
  432. part4.BrickColor = BrickColor.new("Brick yellow")
  433. part4.Friction = 0.30000001192093
  434. part4.BottomSurface = Enum.SurfaceType.Smooth
  435.  
  436. mesh = Instance.new("SpecialMesh",part4)
  437. mesh.Scale = Vector3.new(1,0.39999997615814,1)
  438. mesh.MeshType = Enum.MeshType.Wedge
  439.  
  440. weld = Instance.new("Weld",part4)
  441. weld.Part1 = Part5
  442. weld.Part0 = Part4
  443. weld.C1 = CFrame.new(-220.41857910156,313.33673095703,-241.33447265625) * CFrame.Angles(0.26186320185661, 4.2797251808224e-005, -1.5707757472992)
  444. weld.C0 = CFrame.new(-220.39801025391,-313.59222412109,241.33312988281) * CFrame.Angles(-2.8797407150269, 4.2793595639523e-005, -1.5708614587784)
  445.  
  446. part5 = Instance.new("Part",m18a1)
  447. part5.FormFactor = Enum.FormFactor.Custom
  448. part5.CanCollide = false
  449. part5.TopSurface = Enum.SurfaceType.Smooth
  450. part5.Size = Vector3.new(0.63999998569489,0.20000000298023,0.43999999761581)
  451. part5.Name = "Part5"
  452. part5.CFrame = CFrame.new(0.09857551753521,-0.035999372601509,-33.077377319336) * CFrame.Angles(0.0030360035598278, -1.2751533985138, -3.1395668983459)
  453. part5.BrickColor = BrickColor.new("Brick yellow")
  454. part5.Friction = 0.30000001192093
  455. part5.BottomSurface = Enum.SurfaceType.Smooth
  456.  
  457. mesh = Instance.new("SpecialMesh",part5)
  458. mesh.Scale = Vector3.new(1,0.39999997615814,1)
  459. mesh.MeshType = Enum.MeshType.Wedge
  460.  
  461. weld = Instance.new("Weld",part5)
  462. weld.Part1 = Part6
  463. weld.Part0 = Part5
  464. weld.C1 = CFrame.new(-313.38623046875,-220.7772064209,-241.86848449707) * CFrame.Angles(-3.5447796108201e-005, 0.26182407140732, 3.5447796108201e-005)
  465. weld.C0 = CFrame.new(-220.41857910156,313.33673095703,-241.33447265625) * CFrame.Angles(0.26186320185661, 4.2797251808224e-005, -1.5707757472992)
  466.  
  467. part6 = Instance.new("Part",m18a1)
  468. part6.FormFactor = Enum.FormFactor.Custom
  469. part6.CanCollide = false
  470. part6.TopSurface = Enum.SurfaceType.Smooth
  471. part6.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  472. part6.Name = "Part6"
  473. part6.CFrame = CFrame.new(-0.50318878889084,0.023061782121658,-33.270347595215) * CFrame.Angles(0.0029029711149633, -1.2751590013504, 1.5726914405823)
  474. part6.BrickColor = BrickColor.new("Brick yellow")
  475. part6.Friction = 0.30000001192093
  476. part6.BottomSurface = Enum.SurfaceType.Smooth
  477.  
  478. mesh = Instance.new("BlockMesh",part6)
  479. mesh.Scale = Vector3.new(1,0.39999997615814,0.79999995231628)
  480.  
  481. weld = Instance.new("Weld",part6)
  482. weld.Part1 = Part7
  483. weld.Part0 = Part6
  484. weld.C1 = CFrame.new(-313.42620849609,-220.85722351074,-241.86849975586) * CFrame.Angles(-3.5447796108201e-005, 0.26182407140732, 3.5447796108201e-005)
  485. weld.C0 = CFrame.new(-313.38623046875,-220.7772064209,-241.86848449707) * CFrame.Angles(-3.5447796108201e-005, 0.26182407140732, 3.5447796108201e-005)
  486.  
  487. part7 = Instance.new("Part",m18a1)
  488. part7.FormFactor = Enum.FormFactor.Custom
  489. part7.CanCollide = false
  490. part7.TopSurface = Enum.SurfaceType.Smooth
  491. part7.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  492. part7.Name = "Part7"
  493. part7.CFrame = CFrame.new(-0.52594935894012,0.062286373227835,-33.347023010254) * CFrame.Angles(0.0029029711149633, -1.2751505374908, 1.5726914405823)
  494. part7.BrickColor = BrickColor.new("Brick yellow")
  495. part7.Friction = 0.30000001192093
  496. part7.BottomSurface = Enum.SurfaceType.Smooth
  497.  
  498. mesh = Instance.new("BlockMesh",part7)
  499. mesh.Scale = Vector3.new(0.59999996423721,0.39999997615814,0.79999995231628)
  500.  
  501. weld = Instance.new("Weld",part7)
  502. weld.Part1 = Part8
  503. weld.Part0 = Part7
  504. weld.C1 = CFrame.new(-241.85174560547,313.3264465332,220.87301635742) * CFrame.Angles(1.5710514783859, 1.3089270591736, 3.1413896083832)
  505. weld.C0 = CFrame.new(-313.42620849609,-220.85722351074,-241.86849975586) * CFrame.Angles(-3.5447796108201e-005, 0.26182407140732, 3.5447796108201e-005)
  506.  
  507. Tool = m18a1
  508. local field = nil
  509.  
  510. Tool = m18a1;
  511. local arms = nil
  512. local torso = nil
  513. local welds = {}
  514.  
  515. function Equip(mouse)
  516. wait(0.01)
  517. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  518. torso = Tool.Parent:FindFirstChild("Torso")
  519. if arms ~= nil and torso ~= nil then
  520. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  521. if sh ~= nil then
  522. local yes = true
  523. if yes then
  524. yes = false
  525. sh[1].Part1 = nil
  526. sh[2].Part1 = nil
  527. local weld1 = Instance.new("Weld")
  528. weld1.Part0 = torso
  529. weld1.Parent = torso
  530. weld1.Part1 = arms[1]
  531. weld1.C1 = CFrame.new(1, 0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0.2, math.rad(0))
  532. welds[1] = weld1
  533. local weld2 = Instance.new("Weld")
  534. weld2.Part0 = torso
  535. weld2.Parent = torso
  536. weld2.Part1 = arms[2]
  537. weld2.C1 = CFrame.new(-1, 0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  538. welds[2] = weld2
  539. end
  540. else
  541. print("sh")
  542. end
  543. else
  544. print("arms")
  545. end
  546. end
  547.  
  548. function Unequip(mouse)
  549. if arms ~= nil and torso ~= nil then
  550. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  551. if sh ~= nil then
  552. local yes = true
  553. if yes then
  554. yes = false
  555. sh[1].Part1 = arms[1]
  556. sh[2].Part1 = arms[2]
  557. welds[1].Parent = nil
  558. welds[2].Parent = nil
  559. end
  560. else
  561. print("sh")
  562. end
  563. else
  564. print("arms")
  565. end
  566. end
  567.  
  568. function RemovedTool()
  569. if arms ~= nil and torso ~= nil then
  570. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  571. if sh ~= nil then
  572. local yes = true
  573. if yes then
  574. yes = false
  575. sh[1].Part1 = arms[1]
  576. sh[2].Part1 = arms[2]
  577. welds[1].Parent = nil
  578. welds[2].Parent = nil
  579. end
  580. else
  581. print("sh")
  582. end
  583. else
  584. print("arms")
  585. end
  586. end
  587.  
  588. Tool.Equipped:connect(Equip)
  589. Tool.Unequipped:connect(Unequip)
  590.  
  591. function Heal()
  592. Tool.GripPos = Vector3.new(0.7, 2.8, 0)
  593. local minemodel = Instance.new("Model")
  594. minemodel.Parent = game.Workspace
  595. local minetool = Tool:Clone()
  596. minetool.Handle.Anchored = true
  597. minetool.Detector.Anchored = true
  598. minetool.Lazer1.Anchored = true
  599. minetool.Lazer2.Anchored = true
  600. minetool.Part1.Anchored = true
  601. minetool.Part2.Anchored = true
  602. minetool.Part3.Anchored = true
  603. minetool.Part4.Anchored = true
  604. minetool.Part5.Anchored = true
  605. minetool.Part6.Anchored = true
  606. minetool.Part7.Anchored = true
  607. minetool.Part8.Anchored = true
  608. minetool.Part9.Anchored = true
  609. minetool.Part10.Anchored = true
  610. minetool.Part11.Anchored = true
  611. minetool.Part12.Anchored = true
  612. minetool.Part13.Anchored = true
  613. minetool.Part14.Anchored = true
  614. minetool.Part15.Anchored = true
  615. minetool.Part16.Anchored = true
  616. minetool.Part17.Anchored = true
  617. minetool.Part18.Anchored = true
  618. minetool.Part19.Anchored = true
  619. minetool.Part20.Anchored = true
  620. minetool.Handle.Parent = minemodel
  621. minetool.Detector.Parent = minemodel
  622. pos = minemodel.Detector.CFrame
  623. minetool.Lazer1.Parent = Workspace
  624. minetool.Lazer2.Parent = Workspace
  625. minetool.Part1.Parent = minemodel
  626. minetool.Part2.Parent = minemodel
  627. minetool.Part3.Parent = minemodel
  628. minetool.Part4.Parent = minemodel
  629. minetool.Part5.Parent = minemodel
  630. minetool.Part6.Parent = minemodel
  631. minetool.Part7.Parent = minemodel
  632. minetool.Part8.Parent = minemodel
  633. minetool.Part9.Parent = minemodel
  634. minetool.Part10.Parent = minemodel
  635. minetool.Part11.Parent = minemodel
  636. minetool.Part12.Parent = minemodel
  637. minetool.Part13.Parent = minemodel
  638. minetool.Part14.Parent = minemodel
  639. minetool.Part15.Parent = minemodel
  640. minetool.Part16.Parent = minemodel
  641. minetool.Part17.Parent = minemodel
  642. minetool.Part18.Parent = minemodel
  643. minetool.Part19.Parent = minemodel
  644. minetool.Part20.Parent = minemodel
  645. minemodel.Detector.Size = minemodel.Detector.Size + Vector3.new(11.8, 0, 3.8)
  646. minemodel.Detector.CFrame = pos
  647. minetool:Remove()
  648. end
  649.  
  650. local prev
  651. local parts = m18a1:GetChildren()
  652.  
  653. for i = 1,#parts do
  654. if (parts[i].className == "Part") then
  655. if (prev ~= nil)then
  656. local weld = Instance.new("Weld")
  657. weld.Part0 = prev
  658. weld.Part1 = parts[i]
  659. weld.C0 = prev.CFrame:inverse()
  660. weld.C1 = parts[i].CFrame:inverse()
  661. weld.Parent = prev
  662. end
  663. prev = parts[i]
  664. end
  665. end
  666.  
  667. Tool.Enabled = true
  668. function onActivated()
  669.  
  670. if not Tool.Enabled then
  671. return
  672. end
  673.  
  674. Tool.Enabled = false
  675.  
  676. Heal()
  677.  
  678. Unequip()
  679.  
  680. Tool.Parent = nil
  681. end
  682.  
  683. function onTouched(hit)
  684. local e = Instance.new("Explosion") -- IT DOES NOT HAVE TO BE "E" IT CAN BE ANY LETTER. I JUST LIKE USING THIS
  685.  
  686. e.BlastRadius = 20 --THE RADIUS, THE BIGGER THE RADIUS, THE BIGGER IT IS
  687.  
  688. e.BlastPressure = 100000 -- THE BLAST PRESSURE IS HOW POWERFUL IT IS. THE HIGHER, THE MORE DEADLY AND THE MORE UNANCHORED BRICKS WILL GO FLYING
  689.  
  690. e.Parent = game.Workspace -- DO NOT TOUCH UNLESS YOU KNOW WHAT YOURE DOING
  691.  
  692. e.Position = Lazer1.Position
  693.  
  694. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement