Advertisement
Gotmilk0086

Untitled

May 26th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.Animetaional_Clone
  2. local char = player.SX29
  3. local mouse = player:GetMouse()
  4. local engineon = false
  5. local wpressed = false
  6. local spressed = false
  7. local forcelevel = 4e+6
  8. local accel = 0
  9. local accellimit = 30
  10. local angle = 0
  11. local wheelaccel = 0
  12. local angletorque = 5850000
  13. local kpressed = 0
  14. local lowerrightfire = false
  15. local lowerleftfire = false
  16. local rotateangle2 = 0
  17. local rotateangle = 0
  18. local mainfire1 = false
  19. local mainfire2 = false
  20. local spikeenabled = false
  21. local camera = game.Workspace.CurrentCamera
  22. local hit = false
  23.  
  24. local zpressed = 0
  25. local xpressed = 0
  26. local epressed = false
  27. local qpressed = false
  28. local hpressed = 0
  29. local gpressed = false
  30.  
  31. function weld(p0,p1,c0)
  32. local w=Instance.new("Weld",p0)
  33. w.Part0=p0
  34. w.Part1=p1
  35. w.C0=c0
  36. return w
  37. end
  38.  
  39. local mtank = Instance.new("Model", workspace)
  40. mtank.Name = "MTank"
  41.  
  42. part = Instance.new("WedgePart", mtank)
  43. part.FormFactor = Enum.FormFactor.Symmetric
  44. part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  45. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  46. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  47. part.Friction = 0.3
  48. part.Material = Enum.Material.Metal
  49. part.Size = Vector3.new(3, 1, 1)
  50. part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  51. part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  52. part.Name = "Part"
  53. part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  54. part.CFrame = CFrame.new(58.505, 2.931, 91.487)* CFrame.Angles(-1.5704523324966, 0.00039538025157526, 1.5697255134583)
  55. part.BrickColor = BrickColor.new("Grime")
  56.  
  57. frontwheels = Instance.new("Model", mtank)
  58. frontwheels.Name = "frontwheels"
  59.  
  60. faxle = Instance.new("Part", frontwheels)
  61. faxle.FormFactor = Enum.FormFactor.Symmetric
  62. faxle.CanCollide = false
  63. faxle.TopSurface = Enum.SurfaceType.Smooth
  64. faxle.Size = Vector3.new(8.498, 1, 1)
  65. faxle.Name = "faxle"
  66. faxle.CFrame = CFrame.new(60.393, 2.5, 96.979)* CFrame.Angles(1.5708076953888, -2.1010178897996e-005, -1.5707774162292)
  67. faxle.BrickColor = BrickColor.new("Black")
  68. faxle.Friction = 0.3
  69. faxle.BottomSurface = Enum.SurfaceType.Smooth
  70.  
  71. fwl = Instance.new("Part", frontwheels)
  72. fwl.FormFactor = Enum.FormFactor.Custom
  73. fwl.CanCollide = false
  74. fwl.TopSurface = Enum.SurfaceType.Smooth
  75. fwl.Material = Enum.Material.Concrete
  76. fwl.Size = Vector3.new(0.65, 3, 4.5)
  77. fwl.Name = "fwl"
  78. fwl.CFrame = CFrame.new(60.393, 2.628, 101.478)* CFrame.Angles(0.00025655250647105, -1.5707963705063, 0)
  79. fwl.Friction = 0.3
  80. fwl.BottomSurface = Enum.SurfaceType.Smooth
  81.  
  82. mesh = Instance.new("SpecialMesh", fwl)
  83. mesh.Scale = Vector3.new(5.5, 5.5, 5.5)
  84. mesh.MeshId = "http://www.roblox.com/asset/?id=122202439"
  85. mesh.TextureId = "http://www.roblox.com/asset/?id=122185866"
  86. mesh.MeshType = Enum.MeshType.FileMesh
  87.  
  88. fwr = Instance.new("Part", frontwheels)
  89. fwr.FormFactor = Enum.FormFactor.Custom
  90. fwr.CanCollide = false
  91. fwr.TopSurface = Enum.SurfaceType.Smooth
  92. fwr.Material = Enum.Material.Concrete
  93. fwr.Size = Vector3.new(0.65, 3, 4.5)
  94. fwr.Name = "fwr"
  95. fwr.CFrame = CFrame.new(60.393, 2.628, 92.478)* CFrame.Angles(0.00025655250647105, -1.5707963705063, 0)
  96. fwr.Friction = 0.3
  97. fwr.BottomSurface = Enum.SurfaceType.Smooth
  98.  
  99. mesh_2 = Instance.new("SpecialMesh", fwr)
  100. mesh_2.Scale = Vector3.new(5.5, 5.5, 5.5)
  101. mesh_2.MeshId = "http://www.roblox.com/asset/?id=122202439"
  102. mesh_2.TextureId = "http://www.roblox.com/asset/?id=122185866"
  103. mesh_2.MeshType = Enum.MeshType.FileMesh
  104.  
  105. faxlepos = Instance.new("Part", mtank)
  106. faxlepos.FormFactor = Enum.FormFactor.Symmetric
  107. faxlepos.CanCollide = false
  108. faxlepos.TopSurface = Enum.SurfaceType.Smooth
  109. faxlepos.Size = Vector3.new(8.498, 1, 1)
  110. faxlepos.Name = "faxlepos"
  111. faxlepos.Transparency = 1
  112. faxlepos.CFrame = CFrame.new(60.393, 2.5, 96.979)* CFrame.Angles(1.5708076953888, -2.1010178897996e-005, -1.5707774162292)
  113. faxlepos.BrickColor = BrickColor.new("Black")
  114. faxlepos.Friction = 0.3
  115. faxlepos.BottomSurface = Enum.SurfaceType.Smooth
  116.  
  117. baxlepos = Instance.new("Part", mtank)
  118. baxlepos.FormFactor = Enum.FormFactor.Symmetric
  119. baxlepos.CanCollide = false
  120. baxlepos.TopSurface = Enum.SurfaceType.Smooth
  121. baxlepos.Size = Vector3.new(8.498, 1, 1)
  122. baxlepos.Name = "baxlepos"
  123. baxlepos.CFrame = CFrame.new(75.393, 2.5, 96.479)* CFrame.Angles(1.5708076953888, -2.1010178897996e-005, -1.5707774162292)
  124. baxlepos.BrickColor = BrickColor.new("Black")
  125. baxlepos.Friction = 0.3
  126. baxlepos.BottomSurface = Enum.SurfaceType.Smooth
  127. baxlepos.Transparency = 1
  128.  
  129.  
  130. backwheels = Instance.new("Model", mtank)
  131. backwheels.Name = "backwheels"
  132.  
  133. baxle = Instance.new("Part", backwheels)
  134. baxle.FormFactor = Enum.FormFactor.Symmetric
  135. baxle.CanCollide = false
  136. baxle.TopSurface = Enum.SurfaceType.Smooth
  137. baxle.Size = Vector3.new(8.498, 1, 1)
  138. baxle.Name = "baxle"
  139. baxle.CFrame = CFrame.new(75.393, 2.5, 96.479)* CFrame.Angles(1.5708076953888, -2.1010178897996e-005, -1.5707774162292)
  140. baxle.BrickColor = BrickColor.new("Black")
  141. baxle.Friction = 0.3
  142. baxle.BottomSurface = Enum.SurfaceType.Smooth
  143. baxle.Transparency = 1
  144.  
  145. bwl = Instance.new("Part", backwheels)
  146. bwl.FormFactor = Enum.FormFactor.Custom
  147. bwl.CanCollide = false
  148. bwl.TopSurface = Enum.SurfaceType.Smooth
  149. bwl.Material = Enum.Material.Concrete
  150. bwl.Size = Vector3.new(0.65, 3, 4.5)
  151. bwl.Name = "bwl"
  152. bwl.CFrame = CFrame.new(75.393, 2.628, 101.478)* CFrame.Angles(0.00025655250647105, -1.5707963705063, 0)
  153. bwl.Friction = 0.3
  154. bwl.BottomSurface = Enum.SurfaceType.Smooth
  155.  
  156. mesh = Instance.new("SpecialMesh", bwl)
  157. mesh.Scale = Vector3.new(5.5, 5.5, 5.5)
  158. mesh.MeshId = "http://www.roblox.com/asset/?id=122202439"
  159. mesh.TextureId = "http://www.roblox.com/asset/?id=122185866"
  160. mesh.MeshType = Enum.MeshType.FileMesh
  161.  
  162. bwr = Instance.new("Part", backwheels)
  163. bwr.FormFactor = Enum.FormFactor.Custom
  164. bwr.CanCollide = false
  165. bwr.TopSurface = Enum.SurfaceType.Smooth
  166. bwr.Material = Enum.Material.Concrete
  167. bwr.Size = Vector3.new(0.65, 3, 4.5)
  168. bwr.Name = "bwr"
  169. bwr.CFrame = CFrame.new(75.393, 2.628, 92.478)* CFrame.Angles(0.00025655250647105, -1.5707963705063, 0)
  170. bwr.Friction = 0.3
  171. bwr.BottomSurface = Enum.SurfaceType.Smooth
  172.  
  173. mesh_2 = Instance.new("SpecialMesh", bwr)
  174. mesh_2.Scale = Vector3.new(5.5, 5.5, 5.5)
  175. mesh_2.MeshId = "http://www.roblox.com/asset/?id=122202439"
  176. mesh_2.TextureId = "http://www.roblox.com/asset/?id=122185866"
  177. mesh_2.MeshType = Enum.MeshType.FileMesh
  178.  
  179. spike1 = Instance.new("Part", mtank)
  180. spike1.FormFactor = Enum.FormFactor.Custom
  181. spike1.LeftSurface = Enum.SurfaceType.Weld
  182. spike1.TopSurface = Enum.SurfaceType.Weld
  183. spike1.Material = Enum.Material.Metal
  184. spike1.Size = Vector3.new(1, 8, 1)
  185. spike1.Name = "Spike1"
  186. spike1.CanCollide = false
  187. spike1.FrontSurface = Enum.SurfaceType.Weld
  188. spike1.CFrame = CFrame.new(74.834, 3.714, 89.407)* CFrame.Angles(-1.5708339214325, -1.5707963705063, 0)
  189. spike1.RightSurface = Enum.SurfaceType.Weld
  190. spike1.BackSurface = Enum.SurfaceType.Weld
  191. spike1.BrickColor = BrickColor.new("Dark stone grey")
  192. spike1.Friction = 0.3
  193. spike1.BottomSurface = Enum.SurfaceType.Weld
  194.  
  195. mesh_9 = Instance.new("SpecialMesh", spike1)
  196. mesh_9.Scale = Vector3.new(0.6, 1, 0.6)
  197. mesh_9.MeshId = "http://www.roblox.com/asset/?id=1033714"
  198. mesh_9.MeshType = Enum.MeshType.FileMesh
  199.  
  200. part_6 = Instance.new("Part", mtank)
  201. part_6.FormFactor = Enum.FormFactor.Symmetric
  202. part_6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  203. part_6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  204. part_6.Material = Enum.Material.Metal
  205. part_6.Size = Vector3.new(1, 2.634, 18.138)
  206. part_6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  207. part_6.CFrame = CFrame.new(69.264, 4.53, 90.302)* CFrame.Angles(-3.118275642395, -1.5698198080063, -3.1185505390167)
  208. part_6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  209. part_6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  210. part_6.BrickColor = BrickColor.new("Dark stone grey")
  211. part_6.Friction = 0.3
  212. part_6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  213.  
  214. mesh_10 = Instance.new("BlockMesh", part_6)
  215.  
  216. part_7 = Instance.new("Part", mtank)
  217. part_7.FormFactor = Enum.FormFactor.Symmetric
  218. part_7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  219. part_7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  220. part_7.Material = Enum.Material.Metal
  221. part_7.Size = Vector3.new(1, 2.634, 18.138)
  222. part_7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  223. part_7.CFrame = CFrame.new(69.263, 4.525, 103.702)* CFrame.Angles(-3.1232855319977, -1.5698198080063, -3.1235558986664)
  224. part_7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  225. part_7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  226. part_7.BrickColor = BrickColor.new("Dark stone grey")
  227. part_7.Friction = 0.3
  228. part_7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  229.  
  230. mesh_11 = Instance.new("BlockMesh", part_7)
  231.  
  232. part_8 = Instance.new("Part", mtank)
  233. part_8.FormFactor = Enum.FormFactor.Custom
  234. part_8.Size = Vector3.new(3.2, 4, 3.2)
  235. part_8.CFrame = CFrame.new(83.891, 5.547, 92.318)* CFrame.Angles(1.5706930160522, -0.32159259915352, 3.1408815383911)
  236. part_8.BrickColor = BrickColor.new("Dark stone grey")
  237. part_8.Friction = 0.3
  238.  
  239. mesh_12 = Instance.new("SpecialMesh", part_8)
  240. mesh_12.Scale = Vector3.new(4, 4, 4)
  241. mesh_12.MeshId = "http://www.roblox.com/asset/?id=103919751"
  242. mesh_12.TextureId = "rbxassetid://138327000"
  243. mesh_12.MeshType = Enum.MeshType.FileMesh
  244.  
  245. part_9 = Instance.new("Part", mtank)
  246. part_9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  247. part_9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  248. part_9.Reflectance = 0.1
  249. part_9.Material = Enum.Material.Metal
  250. part_9.Size = Vector3.new(2.103, 0.4, 2.343)
  251. part_9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  252. part_9.CFrame = CFrame.new(56.597, 4.809, 100.306)* CFrame.Angles(3.1246223449707, -0.0038618966937065, -1.580332159996)
  253. part_9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  254. part_9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  255. part_9.BrickColor = BrickColor.new("Dark stone grey")
  256. part_9.Friction = 0.3
  257. part_9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  258.  
  259. part_10 = Instance.new("Part", mtank)
  260. part_10.FormFactor = Enum.FormFactor.Symmetric
  261. part_10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  262. part_10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  263. part_10.Material = Enum.Material.Metal
  264. part_10.Size = Vector3.new(4, 4, 3)
  265. part_10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  266. part_10.CFrame = CFrame.new(62.499, 4.431, 96.994)* CFrame.Angles(0.024864688515663, 1.5697045326233, -0.024317564442754)
  267. part_10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  268. part_10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  269. part_10.BrickColor = BrickColor.new("Dark stone grey")
  270. part_10.Friction = 0.3
  271. part_10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  272.  
  273. mesh_13 = Instance.new("BlockMesh", part_10)
  274. mesh_13.Scale = Vector3.new(1.1, 1.15, 1.1)
  275.  
  276. rotatorcopy = Instance.new("Part", mtank)
  277. rotatorcopy.FormFactor = Enum.FormFactor.Symmetric
  278. rotatorcopy.CanCollide = false
  279. rotatorcopy.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  280. rotatorcopy.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  281. rotatorcopy.Material = Enum.Material.Metal
  282. rotatorcopy.Size = Vector3.new(4, 2, 4)
  283. rotatorcopy.Name = "rotatorcopy"
  284. rotatorcopy.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  285. rotatorcopy.CFrame = CFrame.new(74, 6.169, 97)* CFrame.Angles(0.00026474674814381, 1.5707963705063, 0)
  286. rotatorcopy.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  287. rotatorcopy.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  288. rotatorcopy.BrickColor = BrickColor.new("Dark stone grey")
  289. rotatorcopy.Friction = 0.3
  290. rotatorcopy.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  291.  
  292. mesh_14 = Instance.new("CylinderMesh", rotatorcopy)
  293. mesh_14.Scale = Vector3.new(1.4, 1.3, 1.4)
  294.  
  295. part_11 = Instance.new("WedgePart", mtank)
  296. part_11.FormFactor = Enum.FormFactor.Symmetric
  297. part_11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  298. part_11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  299. part_11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  300. part_11.Friction = 0.3
  301. part_11.Material = Enum.Material.Metal
  302. part_11.Size = Vector3.new(8, 4, 1)
  303. part_11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  304. part_11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  305. part_11.Name = "Part"
  306. part_11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  307. part_11.CFrame = CFrame.new(79.999, 0.929, 97.013)* CFrame.Angles(-1.5704798698425, 0.00010843898780877, -1.5717378854752)
  308. part_11.BrickColor = BrickColor.new("Dark stone grey")
  309.  
  310. part_12 = Instance.new("WedgePart", mtank)
  311. part_12.FormFactor = Enum.FormFactor.Symmetric
  312. part_12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  313. part_12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  314. part_12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  315. part_12.Friction = 0.3
  316. part_12.Material = Enum.Material.Metal
  317. part_12.Size = Vector3.new(8, 1, 5)
  318. part_12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  319. part_12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  320. part_12.Name = "Part"
  321. part_12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  322. part_12.CFrame = CFrame.new(58.499, 0.929, 96.989)* CFrame.Angles(0.005395220592618, 1.5699505805969, 3.136513710022)
  323. part_12.BrickColor = BrickColor.new("Dark stone grey")
  324.  
  325. part_13 = Instance.new("WedgePart", mtank)
  326. part_13.FormFactor = Enum.FormFactor.Symmetric
  327. part_13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  328. part_13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  329. part_13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  330. part_13.Friction = 0.3
  331. part_13.Material = Enum.Material.Metal
  332. part_13.Size = Vector3.new(3, 1, 1)
  333. part_13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  334. part_13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  335. part_13.Name = "Part"
  336. part_13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  337. part_13.CFrame = CFrame.new(79.501, 2.928, 102.511)* CFrame.Angles(-3.1412353515625, -1.5707963705063, 0)
  338. part_13.BrickColor = BrickColor.new("Grime")
  339.  
  340. part_14 = Instance.new("WedgePart", mtank)
  341. part_14.FormFactor = Enum.FormFactor.Symmetric
  342. part_14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  343. part_14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  344. part_14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  345. part_14.Friction = 0.3
  346. part_14.Material = Enum.Material.Metal
  347. part_14.Size = Vector3.new(3, 1, 1)
  348. part_14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  349. part_14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  350. part_14.Name = "Part"
  351. part_14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  352. part_14.CFrame = CFrame.new(79.488, 2.933, 91.497)* CFrame.Angles(0.20819596946239, -1.5691049098969, -2.9338436126709)
  353. part_14.BrickColor = BrickColor.new("Grime")
  354.  
  355. part_15 = Instance.new("WedgePart", mtank)
  356. part_15.FormFactor = Enum.FormFactor.Symmetric
  357. part_15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  358. part_15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  359. part_15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  360. part_15.Friction = 0.3
  361. part_15.Material = Enum.Material.Metal
  362. part_15.Size = Vector3.new(8, 1, 2)
  363. part_15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  364. part_15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  365. part_15.Name = "Part"
  366. part_15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  367. part_15.CFrame = CFrame.new(82.496, 2.428, 97.02)* CFrame.Angles(-1.5704001188278, 0.00027684145607054, -1.5710853338242)
  368. part_15.BrickColor = BrickColor.new("Dark stone grey")
  369.  
  370. part_16 = Instance.new("Part", mtank)
  371. part_16.FormFactor = Enum.FormFactor.Symmetric
  372. part_16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  373. part_16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  374. part_16.Material = Enum.Material.Metal
  375. part_16.Size = Vector3.new(8, 2, 4)
  376. part_16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  377. part_16.CFrame = CFrame.new(79.998, 2.429, 97.012)* CFrame.Angles(-3.1232855319977, -1.5698198080063, -3.1235558986664)
  378. part_16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  379. part_16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  380. part_16.BrickColor = BrickColor.new("Dark stone grey")
  381. part_16.Friction = 0.3
  382. part_16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  383.  
  384. mesh_15 = Instance.new("BlockMesh", part_16)
  385.  
  386. part_17 = Instance.new("Part", mtank)
  387. part_17.FormFactor = Enum.FormFactor.Symmetric
  388. part_17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  389. part_17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  390. part_17.Material = Enum.Material.Metal
  391. part_17.Size = Vector3.new(8, 2, 17)
  392. part_17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  393. part_17.CFrame = CFrame.new(69.498, 1.429, 97.002)* CFrame.Angles(0.018307087942958, 1.5698198080063, -0.018036684021354)
  394. part_17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  395. part_17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  396. part_17.BrickColor = BrickColor.new("Dark stone grey")
  397. part_17.Friction = 0.3
  398. part_17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  399.  
  400. mesh_16 = Instance.new("BlockMesh", part_17)
  401.  
  402. part_18 = Instance.new("Part", mtank)
  403. part_18.FormFactor = Enum.FormFactor.Symmetric
  404. part_18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  405. part_18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  406. part_18.Material = Enum.Material.Metal
  407. part_18.Size = Vector3.new(14, 2, 4)
  408. part_18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  409. part_18.CFrame = CFrame.new(80.999, 4.429, 97.014)* CFrame.Angles(-3.119649887085, -1.5697045326233, -3.1199164390564)
  410. part_18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  411. part_18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  412. part_18.BrickColor = BrickColor.new("Grime")
  413. part_18.Friction = 0.3
  414. part_18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  415.  
  416. mesh_17 = Instance.new("BlockMesh", part_18)
  417.  
  418. part_19 = Instance.new("WedgePart", mtank)
  419. part_19.FormFactor = Enum.FormFactor.Symmetric
  420. part_19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  421. part_19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  422. part_19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  423. part_19.Friction = 0.3
  424. part_19.Material = Enum.Material.Metal
  425. part_19.Size = Vector3.new(3, 1, 1)
  426. part_19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  427. part_19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  428. part_19.Name = "Part"
  429. part_19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  430. part_19.CFrame = CFrame.new(58.495, 2.928, 102.487)* CFrame.Angles(-1.5704523324966, 0.00039538025157526, 1.5697255134583)
  431. part_19.BrickColor = BrickColor.new("Grime")
  432.  
  433. part_20 = Instance.new("Part", mtank)
  434. part_20.FormFactor = Enum.FormFactor.Symmetric
  435. part_20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  436. part_20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  437. part_20.Material = Enum.Material.Metal
  438. part_20.Size = Vector3.new(3, 3, 20)
  439. part_20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  440. part_20.CFrame = CFrame.new(69.004, 3.93, 91.502)* CFrame.Angles(-3.1232855319977, -1.5698198080063, -3.1235558986664)
  441. part_20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  442. part_20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  443. part_20.BrickColor = BrickColor.new("Grime")
  444. part_20.Friction = 0.3
  445. part_20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  446.  
  447. mesh_18 = Instance.new("BlockMesh", part_20)
  448.  
  449. part_21 = Instance.new("WedgePart", mtank)
  450. part_21.FormFactor = Enum.FormFactor.Symmetric
  451. part_21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  452. part_21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  453. part_21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  454. part_21.Friction = 0.3
  455. part_21.Material = Enum.Material.Metal
  456. part_21.Size = Vector3.new(14, 3, 1)
  457. part_21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  458. part_21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  459. part_21.Name = "Part"
  460. part_21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  461. part_21.CFrame = CFrame.new(83.499, 4.928, 97.019)* CFrame.Angles(0.25741651654243, -1.5703080892563, -2.8845512866974)
  462. part_21.BrickColor = BrickColor.new("Grime")
  463.  
  464. part_22 = Instance.new("Part", mtank)
  465. part_22.FormFactor = Enum.FormFactor.Symmetric
  466. part_22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  467. part_22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  468. part_22.Material = Enum.Material.Metal
  469. part_22.Size = Vector3.new(3, 3, 20)
  470. part_22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  471. part_22.CFrame = CFrame.new(68.993, 3.928, 102.502)* CFrame.Angles(-3.1232855319977, -1.5698198080063, -3.1235558986664)
  472. part_22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  473. part_22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  474. part_22.BrickColor = BrickColor.new("Grime")
  475. part_22.Friction = 0.3
  476. part_22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  477.  
  478. mesh_19 = Instance.new("BlockMesh", part_22)
  479.  
  480. part_23 = Instance.new("WedgePart", mtank)
  481. part_23.FormFactor = Enum.FormFactor.Symmetric
  482. part_23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  483. part_23.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  484. part_23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  485. part_23.Friction = 0.3
  486. part_23.Material = Enum.Material.Metal
  487. part_23.Size = Vector3.new(8, 1, 2)
  488. part_23.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  489. part_23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  490. part_23.Name = "Part"
  491. part_23.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  492. part_23.CFrame = CFrame.new(55.502, 2.428, 97.002)* CFrame.Angles(-1.5704007148743, 0.0001785616914276, 1.5705235004425)
  493. part_23.BrickColor = BrickColor.new("Grime")
  494. part_23.Name = "fbumper"
  495.  
  496. part_24 = Instance.new("WedgePart", mtank)
  497. part_24.FormFactor = Enum.FormFactor.Symmetric
  498. part_24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  499. part_24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  500. part_24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  501. part_24.Friction = 0.3
  502. part_24.Material = Enum.Material.Metal
  503. part_24.Size = Vector3.new(14, 7, 1)
  504. part_24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  505. part_24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  506. part_24.Name = "Part"
  507. part_24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  508. part_24.CFrame = CFrame.new(80.496, 6.925, 97.037)* CFrame.Angles(1.5711652040482, -0.00017984020814765, 1.5703016519547)
  509. part_24.BrickColor = BrickColor.new("Grime")
  510.  
  511. part_25 = Instance.new("Part", mtank)
  512. part_25.FormFactor = Enum.FormFactor.Custom
  513. part_25.Size = Vector3.new(3.2, 4, 3.2)
  514. part_25.CFrame = CFrame.new(83.891, 5.546, 97.018)* CFrame.Angles(1.5706930160522, -0.32159259915352, 3.1408815383911)
  515. part_25.BrickColor = BrickColor.new("Dark stone grey")
  516. part_25.Friction = 0.3
  517.  
  518. mesh_20 = Instance.new("SpecialMesh", part_25)
  519. mesh_20.Scale = Vector3.new(4, 4, 4)
  520. mesh_20.MeshId = "http://www.roblox.com/asset/?id=103919751"
  521. mesh_20.TextureId = "rbxassetid://138327000"
  522. mesh_20.MeshType = Enum.MeshType.FileMesh
  523.  
  524. part_26 = Instance.new("Part", mtank)
  525. part_26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  526. part_26.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  527. part_26.Reflectance = 0.1
  528. part_26.Material = Enum.Material.Metal
  529. part_26.Size = Vector3.new(2.103, 0.4, 2.343)
  530. part_26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  531. part_26.CFrame = CFrame.new(56.597, 4.766, 93.806)* CFrame.Angles(3.1246223449707, -0.0038618966937065, -1.580332159996)
  532. part_26.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  533. part_26.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  534. part_26.BrickColor = BrickColor.new("Dark stone grey")
  535. part_26.Friction = 0.3
  536. part_26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  537.  
  538. part_27 = Instance.new("Part", mtank)
  539. part_27.FormFactor = Enum.FormFactor.Custom
  540. part_27.Size = Vector3.new(3.2, 4, 3.2)
  541. part_27.CFrame = CFrame.new(83.891, 5.542, 101.718)* CFrame.Angles(1.5706930160522, -0.32159259915352, 3.1408815383911)
  542. part_27.BrickColor = BrickColor.new("Dark stone grey")
  543. part_27.Friction = 0.3
  544.  
  545. mesh_21 = Instance.new("SpecialMesh", part_27)
  546. mesh_21.Scale = Vector3.new(4, 4, 4)
  547. mesh_21.MeshId = "http://www.roblox.com/asset/?id=103919751"
  548. mesh_21.TextureId = "rbxassetid://138327000"
  549. mesh_21.MeshType = Enum.MeshType.FileMesh
  550.  
  551. tankgun = Instance.new("Model", mtank)
  552. tankgun.Name = "tankgun"
  553.  
  554. rotator = Instance.new("Part", tankgun)
  555. rotator.FormFactor = Enum.FormFactor.Symmetric
  556. rotator.CanCollide = false
  557. rotator.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  558. rotator.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  559. rotator.Material = Enum.Material.Metal
  560. rotator.Size = Vector3.new(4, 2, 4)
  561. rotator.Name = "Rotator"
  562. rotator.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  563. rotator.CFrame = CFrame.new(74, 6.169, 97)* CFrame.Angles(0.00026474674814381, 1.5707963705063, 0)
  564. rotator.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  565. rotator.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  566. rotator.BrickColor = BrickColor.new("Dark stone grey")
  567. rotator.Friction = 0.3
  568. rotator.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  569.  
  570. mesh_14 = Instance.new("CylinderMesh", rotator)
  571. mesh_14.Scale = Vector3.new(1.4, 1.3, 1.4)
  572.  
  573. shield = Instance.new("Part", tankgun)
  574. shield.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  575. shield.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  576. shield.Reflectance = 0.1
  577. shield.Material = Enum.Material.Metal
  578. shield.Size = Vector3.new(3.758, 1.2, 5.609)
  579. shield.Name = "shield"
  580. shield.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  581. shield.CFrame = CFrame.new(74.356, 9.254, 96.965)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  582. shield.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  583. shield.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  584. shield.BrickColor = BrickColor.new("Dark stone grey")
  585. shield.Friction = 0.3
  586. shield.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  587.  
  588. barrel2 = Instance.new("Part", tankgun)
  589. barrel2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  590. barrel2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  591. barrel2.Reflectance = -1
  592. barrel2.Material = Enum.Material.Metal
  593. barrel2.Size = Vector3.new(2, 15.6, 1)
  594. barrel2.Name = "Barrel2"
  595. barrel2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  596. barrel2.CFrame = CFrame.new(68.823, 9.109, 95.489)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  597. barrel2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  598. barrel2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  599. barrel2.BrickColor = BrickColor.new("Really black")
  600. barrel2.Friction = 0.3
  601. barrel2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  602.  
  603. mesh_22 = Instance.new("CylinderMesh", barrel2)
  604. mesh_22.Scale = Vector3.new(1, 1.001, 0.8)
  605.  
  606. anim1 = Instance.new("Part", tankgun)
  607. anim1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  608. anim1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  609. anim1.Reflectance = 0.1
  610. anim1.Material = Enum.Material.Metal
  611. anim1.Size = Vector3.new(2, 15.6, 1)
  612. anim1.Name = "anim1"
  613. anim1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  614. anim1.CFrame = CFrame.new(68.823, 9.109, 95.489)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  615. anim1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  616. anim1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  617. anim1.BrickColor = BrickColor.new("Black")
  618. anim1.Friction = 0.3
  619. anim1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  620.  
  621. mesh_23 = Instance.new("CylinderMesh", anim1)
  622.  
  623. part_28 = Instance.new("Part", tankgun)
  624. part_28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  625. part_28.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  626. part_28.Reflectance = 0.1
  627. part_28.Material = Enum.Material.Metal
  628. part_28.Size = Vector3.new(2, 6, 2)
  629. part_28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  630. part_28.CFrame = CFrame.new(73.963, 9.073, 95.476)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  631. part_28.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  632. part_28.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  633. part_28.BrickColor = BrickColor.new("Black")
  634. part_28.Friction = 0.3
  635. part_28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  636.  
  637. mesh_24 = Instance.new("CylinderMesh", part_28)
  638.  
  639. part_29 = Instance.new("Part", tankgun)
  640. part_29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  641. part_29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  642. part_29.Reflectance = 0.1
  643. part_29.Material = Enum.Material.Metal
  644. part_29.Size = Vector3.new(2, 3.6, 1)
  645. part_29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  646. part_29.CFrame = CFrame.new(73.935, 8.354, 95.423)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  647. part_29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  648. part_29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  649. part_29.BrickColor = BrickColor.new("Black")
  650. part_29.Friction = 0.3
  651. part_29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  652.  
  653. mesh_25 = Instance.new("BlockMesh", part_29)
  654.  
  655. part_30 = Instance.new("Part", tankgun)
  656. part_30.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  657. part_30.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  658. part_30.Reflectance = -1
  659. part_30.Material = Enum.Material.Metal
  660. part_30.Size = Vector3.new(2, 3.6, 1)
  661. part_30.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  662. part_30.CFrame = CFrame.new(73.935, 8.354, 95.423)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  663. part_30.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  664. part_30.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  665. part_30.BrickColor = BrickColor.new("Really black")
  666. part_30.Friction = 0.3
  667. part_30.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  668.  
  669. mesh_26 = Instance.new("BlockMesh", part_30)
  670. mesh_26.Scale = Vector3.new(1.01, 0.9, 0.8)
  671.  
  672. barrel1 = Instance.new("Part", tankgun)
  673. barrel1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  674. barrel1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  675. barrel1.Reflectance = -1
  676. barrel1.Material = Enum.Material.Metal
  677. barrel1.Size = Vector3.new(2, 15.6, 1)
  678. barrel1.Name = "Barrel1"
  679. barrel1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  680. barrel1.CFrame = CFrame.new(68.823, 9.106, 98.489)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  681. barrel1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  682. barrel1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  683. barrel1.BrickColor = BrickColor.new("Really black")
  684. barrel1.Friction = 0.3
  685. barrel1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  686.  
  687. mesh_27 = Instance.new("CylinderMesh", barrel1)
  688. mesh_27.Scale = Vector3.new(1, 1.001, 0.8)
  689.  
  690. anim2 = Instance.new("Part", tankgun)
  691. anim2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  692. anim2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  693. anim2.Reflectance = 0.1
  694. anim2.Material = Enum.Material.Metal
  695. anim2.Size = Vector3.new(2, 15.6, 1)
  696. anim2.Name = "anim2"
  697. anim2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  698. anim2.CFrame = CFrame.new(68.823, 9.106, 98.489)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  699. anim2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  700. anim2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  701. anim2.BrickColor = BrickColor.new("Black")
  702. anim2.Friction = 0.3
  703. anim2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  704.  
  705. mesh_28 = Instance.new("CylinderMesh", anim2)
  706.  
  707. part_31 = Instance.new("Part", tankgun)
  708. part_31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  709. part_31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  710. part_31.Reflectance = 0.1
  711. part_31.Material = Enum.Material.Metal
  712. part_31.Size = Vector3.new(2, 6, 2)
  713. part_31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  714. part_31.CFrame = CFrame.new(73.963, 9.07, 98.476)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  715. part_31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  716. part_31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  717. part_31.BrickColor = BrickColor.new("Black")
  718. part_31.Friction = 0.3
  719. part_31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  720.  
  721. mesh_29 = Instance.new("CylinderMesh", part_31)
  722.  
  723. part_32 = Instance.new("Part", tankgun)
  724. part_32.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  725. part_32.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  726. part_32.Reflectance = 0.1
  727. part_32.Material = Enum.Material.Metal
  728. part_32.Size = Vector3.new(2, 3.6, 1)
  729. part_32.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  730. part_32.CFrame = CFrame.new(73.935, 8.351, 98.423)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  731. part_32.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  732. part_32.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  733. part_32.BrickColor = BrickColor.new("Black")
  734. part_32.Friction = 0.3
  735. part_32.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  736.  
  737. mesh_30 = Instance.new("BlockMesh", part_32)
  738.  
  739. part_33 = Instance.new("Part", tankgun)
  740. part_33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  741. part_33.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  742. part_33.Reflectance = -1
  743. part_33.Material = Enum.Material.Metal
  744. part_33.Size = Vector3.new(2, 3.6, 1)
  745. part_33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  746. part_33.CFrame = CFrame.new(73.935, 8.351, 98.423)* CFrame.Angles(3.124621629715, -0.0038619972765446, -1.580332159996)
  747. part_33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  748. part_33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  749. part_33.BrickColor = BrickColor.new("Really black")
  750. part_33.Friction = 0.3
  751. part_33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  752.  
  753. mesh_31 = Instance.new("BlockMesh", part_33)
  754. mesh_31.Scale = Vector3.new(1.01, 0.9, 0.8)
  755.  
  756. part_34 = Instance.new("Part", mtank)
  757. part_34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  758. part_34.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  759. part_34.Reflectance = 0.1
  760. part_34.Material = Enum.Material.Metal
  761. part_34.Size = Vector3.new(2, 2.962, 1)
  762. part_34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  763. part_34.CFrame = CFrame.new(56.404, 4.804, 93.815)* CFrame.Angles(3.1246223449707, -0.0038619670085609, -1.580332159996)
  764. part_34.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  765. part_34.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  766. part_34.BrickColor = BrickColor.new("Black")
  767. part_34.Friction = 0.3
  768. part_34.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  769. part_34.Name = "rightbarrel"
  770.  
  771. mesh_32 = Instance.new("CylinderMesh", part_34)
  772.  
  773. frontbarrel2 = Instance.new("Part", mtank)
  774. frontbarrel2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  775. frontbarrel2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  776. frontbarrel2.Reflectance = -1
  777. frontbarrel2.Material = Enum.Material.Metal
  778. frontbarrel2.Size = Vector3.new(2, 2.962, 1)
  779. frontbarrel2.Name = "frontbarrel2"
  780. frontbarrel2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  781. frontbarrel2.CFrame = CFrame.new(56.404, 4.804, 93.815)* CFrame.Angles(3.1246223449707, -0.0038619670085609, -1.580332159996)
  782. frontbarrel2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  783. frontbarrel2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  784. frontbarrel2.BrickColor = BrickColor.new("Really black")
  785. frontbarrel2.Friction = 0.3
  786. frontbarrel2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  787.  
  788. mesh_33 = Instance.new("CylinderMesh", frontbarrel2)
  789. mesh_33.Scale = Vector3.new(1, 1.001, 0.8)
  790.  
  791. frontbarrel1 = Instance.new("Part", mtank)
  792. frontbarrel1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  793. frontbarrel1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  794. frontbarrel1.Reflectance = -1
  795. frontbarrel1.Material = Enum.Material.Metal
  796. frontbarrel1.Size = Vector3.new(2, 2.962, 1)
  797. frontbarrel1.Name = "frontbarrel1"
  798. frontbarrel1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  799. frontbarrel1.CFrame = CFrame.new(56.404, 4.804, 100.315)* CFrame.Angles(3.1246223449707, -0.0038619670085609, -1.580332159996)
  800. frontbarrel1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  801. frontbarrel1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  802. frontbarrel1.BrickColor = BrickColor.new("Really black")
  803. frontbarrel1.Friction = 0.3
  804. frontbarrel1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  805.  
  806. mesh_34 = Instance.new("CylinderMesh", frontbarrel1)
  807. mesh_34.Scale = Vector3.new(1, 1.001, 0.8)
  808.  
  809. part_35 = Instance.new("Part", mtank)
  810. part_35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  811. part_35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  812. part_35.Reflectance = 0.1
  813. part_35.Material = Enum.Material.Metal
  814. part_35.Size = Vector3.new(2, 2.962, 1)
  815. part_35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  816. part_35.CFrame = CFrame.new(56.404, 4.804, 100.315)* CFrame.Angles(3.1246223449707, -0.0038619670085609, -1.580332159996)
  817. part_35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  818. part_35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  819. part_35.BrickColor = BrickColor.new("Black")
  820. part_35.Friction = 0.3
  821. part_35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  822. part_35.Name = "leftbarrel"
  823.  
  824. mesh_35 = Instance.new("CylinderMesh", part_35)
  825.  
  826. part_36 = Instance.new("WedgePart", mtank)
  827. part_36.FormFactor = Enum.FormFactor.Symmetric
  828. part_36.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  829. part_36.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  830. part_36.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  831. part_36.Friction = 0.3
  832. part_36.Material = Enum.Material.Metal
  833. part_36.Size = Vector3.new(14, 3, 1)
  834. part_36.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  835. part_36.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  836. part_36.Name = "Part"
  837. part_36.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  838. part_36.CFrame = CFrame.new(59.5, 5.93, 96.992)* CFrame.Angles(1.5711119174957, -0.00010318384011043, 1.5711228847504)
  839. part_36.BrickColor = BrickColor.new("Grime")
  840.  
  841. part_37 = Instance.new("Part", mtank)
  842. part_37.FormFactor = Enum.FormFactor.Symmetric
  843. part_37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  844. part_37.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  845. part_37.Material = Enum.Material.Metal
  846. part_37.Size = Vector3.new(14, 1, 1)
  847. part_37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  848. part_37.CFrame = CFrame.new(58.499, 4.929, 96.991)* CFrame.Angles(-3.1232855319977, -1.5698198080063, -3.1235558986664)
  849. part_37.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  850. part_37.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  851. part_37.BrickColor = BrickColor.new("Grime")
  852. part_37.Friction = 0.3
  853. part_37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  854.  
  855. mesh_36 = Instance.new("BlockMesh", part_37)
  856.  
  857. part_38 = Instance.new("WedgePart", mtank)
  858. part_38.FormFactor = Enum.FormFactor.Symmetric
  859. part_38.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  860. part_38.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  861. part_38.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  862. part_38.Friction = 0.3
  863. part_38.Material = Enum.Material.Metal
  864. part_38.Size = Vector3.new(14, 2, 1)
  865. part_38.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  866. part_38.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  867. part_38.Name = "Part"
  868. part_38.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  869. part_38.CFrame = CFrame.new(56.999, 4.931, 96.989)* CFrame.Angles(1.5711119174957, -0.00010324344475521, 1.5711228847504)
  870. part_38.BrickColor = BrickColor.new("Dark stone grey")
  871.  
  872. part_39 = Instance.new("Part", mtank)
  873. part_39.FormFactor = Enum.FormFactor.Symmetric
  874. part_39.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  875. part_39.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  876. part_39.Material = Enum.Material.Metal
  877. part_39.Size = Vector3.new(5, 1, 22)
  878. part_39.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  879. part_39.CFrame = CFrame.new(72.004, 5.93, 92.505)* CFrame.Angles(-3.1190032958984, -1.5697045326233, -3.1192691326141)
  880. part_39.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  881. part_39.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  882. part_39.BrickColor = BrickColor.new("Grime")
  883. part_39.Friction = 0.3
  884. part_39.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  885.  
  886. mesh_37 = Instance.new("BlockMesh", part_39)
  887.  
  888. part_40 = Instance.new("WedgePart", mtank)
  889. part_40.FormFactor = Enum.FormFactor.Symmetric
  890. part_40.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  891. part_40.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  892. part_40.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  893. part_40.Friction = 0.3
  894. part_40.Material = Enum.Material.Metal
  895. part_40.Size = Vector3.new(14, 1, 1)
  896. part_40.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  897. part_40.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  898. part_40.Name = "Part"
  899. part_40.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  900. part_40.CFrame = CFrame.new(55.498, 3.93, 96.987)* CFrame.Angles(1.5711119174957, -0.0001028895349009, 1.5711228847504)
  901. part_40.BrickColor = BrickColor.new("Grime")
  902.  
  903. part_41 = Instance.new("Part", mtank)
  904. part_41.FormFactor = Enum.FormFactor.Symmetric
  905. part_41.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  906. part_41.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  907. part_41.Material = Enum.Material.Metal
  908. part_41.Size = Vector3.new(5, 1, 22)
  909. part_41.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  910. part_41.CFrame = CFrame.new(71.994, 5.928, 101.505)* CFrame.Angles(-3.1198189258575, -1.5698198080063, -3.1200873851776)
  911. part_41.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  912. part_41.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  913. part_41.BrickColor = BrickColor.new("Grime")
  914. part_41.Friction = 0.3
  915. part_41.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  916.  
  917. mesh_38 = Instance.new("BlockMesh", part_41)
  918.  
  919. entrance = Instance.new("Part", mtank)
  920. entrance.FormFactor = Enum.FormFactor.Symmetric
  921. entrance.CanCollide = false
  922. entrance.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  923. entrance.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  924. entrance.Material = Enum.Material.Metal
  925. entrance.Size = Vector3.new(4, 1, 19)
  926. entrance.Name = "Entrance"
  927. entrance.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  928. entrance.CFrame = CFrame.new(73.499, 5.929, 97.006)* CFrame.Angles(-3.119649887085, -1.5697045326233, -3.1199164390564)
  929. entrance.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  930. entrance.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  931. entrance.BrickColor = BrickColor.new("Grime")
  932. entrance.Friction = 0.3
  933. entrance.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  934.  
  935. mesh_39 = Instance.new("BlockMesh", entrance)
  936.  
  937. part_42 = Instance.new("Part", mtank)
  938. part_42.FormFactor = Enum.FormFactor.Symmetric
  939. part_42.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  940. part_42.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  941. part_42.Material = Enum.Material.Metal
  942. part_42.Size = Vector3.new(14, 1, 3)
  943. part_42.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  944. part_42.CFrame = CFrame.new(57.498, 3.929, 96.99)* CFrame.Angles(-3.1232855319977, -1.5698198080063, -3.1235558986664)
  945. part_42.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  946. part_42.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  947. part_42.BrickColor = BrickColor.new("Grime")
  948. part_42.Friction = 0.3
  949. part_42.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  950.  
  951. mesh_40 = Instance.new("BlockMesh", part_42)
  952.  
  953. part_43 = Instance.new("Part", mtank)
  954. part_43.FormFactor = Enum.FormFactor.Symmetric
  955. part_43.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  956. part_43.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  957. part_43.Material = Enum.Material.Metal
  958. part_43.Size = Vector3.new(8, 2, 2)
  959. part_43.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  960. part_43.CFrame = CFrame.new(59.999, 4.429, 96.993)* CFrame.Angles(-3.1232855319977, -1.5698198080063, -3.1235558986664)
  961. part_43.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  962. part_43.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  963. part_43.BrickColor = BrickColor.new("Earth green")
  964. part_43.Friction = 0.3
  965. part_43.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  966.  
  967. mesh_41 = Instance.new("BlockMesh", part_43)
  968.  
  969. part_44 = Instance.new("Part", mtank)
  970. part_44.FormFactor = Enum.FormFactor.Symmetric
  971. part_44.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  972. part_44.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  973. part_44.Material = Enum.Material.Metal
  974. part_44.Size = Vector3.new(8, 2, 5)
  975. part_44.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  976. part_44.CFrame = CFrame.new(58.498, 2.429, 96.991)* CFrame.Angles(-3.1232855319977, -1.5698198080063, -3.1235558986664)
  977. part_44.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  978. part_44.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  979. part_44.BrickColor = BrickColor.new("Dark stone grey")
  980. part_44.Friction = 0.3
  981. part_44.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  982.  
  983. mesh_42 = Instance.new("BlockMesh", part_44)
  984.  
  985. passengerseat = Instance.new("Seat", mtank)
  986. passengerseat.Friction = 0.3
  987. passengerseat.FrontParamB = 0
  988. passengerseat.BottomSurface = Enum.SurfaceType.Smooth
  989. passengerseat.FrontParamA = 0
  990. passengerseat.TopSurface = Enum.SurfaceType.Smooth
  991. passengerseat.Size = Vector3.new(2, 0.2, 2)
  992. passengerseat.CFrame = CFrame.new(65.203, 2.53, 97.002)* CFrame.Angles(0.022589409723878, 1.5697045326233, -0.022589409723878)
  993. passengerseat.FrontSurface = Enum.SurfaceType.Hinge
  994. passengerseat.Name = "passengerseat"
  995.  
  996. driverseat = Instance.new("Seat", mtank)
  997. driverseat.Friction = 0.3
  998. driverseat.FrontParamB = 0
  999. driverseat.BottomSurface = Enum.SurfaceType.Smooth
  1000. driverseat.FrontParamA = 0
  1001. driverseat.TopSurface = Enum.SurfaceType.Smooth
  1002. driverseat.Size = Vector3.new(2, 0.2, 2)
  1003. driverseat.CFrame = CFrame.new(69.003, 2.53, 97.002)* CFrame.Angles(0.022589409723878, 1.5697045326233, -0.022589409723878)
  1004. driverseat.FrontSurface = Enum.SurfaceType.Hinge
  1005. driverseat.Name = "driverseat"
  1006.  
  1007. local engine = mtank.driverseat
  1008. local frontwheels = mtank.frontwheels
  1009. local backwheels = mtank.backwheels
  1010.  
  1011. backwheels:BreakJoints()
  1012. frontwheels:BreakJoints()
  1013. mtank:BreakJoints()
  1014.  
  1015. local prev
  1016. local parts = mtank:GetChildren()
  1017.  
  1018. for i = 1,#parts do
  1019. if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then
  1020. if (prev ~= nil)then
  1021. if parts[i]:FindFirstChild("Weld") then parts[i]:FindFirstChild("Weld"):Destroy() end
  1022. local weld = Instance.new("Weld")
  1023. weld.Part0 = prev
  1024. weld.Part1 = parts[i]
  1025. weld.C0 = prev.CFrame:inverse()
  1026. weld.C1 = parts[i].CFrame:inverse()
  1027. weld.Parent = prev
  1028. end
  1029. prev = parts[i]
  1030. end
  1031. end
  1032. mtank:MakeJoints()
  1033. mtank.Parent = char
  1034. engine.CFrame = char.Torso.CFrame*CFrame.new(10,24,5)
  1035.  
  1036.  
  1037. local prev
  1038. local parts = backwheels:GetChildren()
  1039.  
  1040. for i = 1,#parts do
  1041. if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then
  1042. if (prev ~= nil)then
  1043. if parts[i]:FindFirstChild("Weld") then parts[i]:FindFirstChild("Weld"):Destroy() end
  1044. local weld = Instance.new("Weld")
  1045. weld.Part0 = prev
  1046. weld.Part1 = parts[i]
  1047. weld.C0 = prev.CFrame:inverse()
  1048. weld.C1 = parts[i].CFrame:inverse()
  1049. weld.Parent = prev
  1050. end
  1051. prev = parts[i]
  1052. end
  1053. end
  1054. backwheels:MakeJoints()
  1055.  
  1056. local prev
  1057. local parts = frontwheels:GetChildren()
  1058.  
  1059. for i = 1,#parts do
  1060. if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then
  1061. if (prev ~= nil)then
  1062. if parts[i]:FindFirstChild("Weld") then parts[i]:FindFirstChild("Weld"):Destroy() end
  1063. local weld = Instance.new("Weld")
  1064. weld.Part0 = prev
  1065. weld.Part1 = parts[i]
  1066. weld.C0 = prev.CFrame:inverse()
  1067. weld.C1 = parts[i].CFrame:inverse()
  1068. weld.Parent = prev
  1069. end
  1070. prev = parts[i]
  1071. end
  1072. end
  1073. frontwheels:MakeJoints()
  1074.  
  1075. weld(frontwheels.faxle, mtank.faxlepos, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0))
  1076. frontwheels.faxle.Weld.Name = "Weld2"
  1077.  
  1078. weld(backwheels.baxle, mtank.baxlepos, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0))
  1079. backwheels.baxle.Weld.Name = "Weld2"
  1080.  
  1081. local prev
  1082. local parts = tankgun:GetChildren()
  1083.  
  1084. for i = 1,#parts do
  1085. if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then
  1086. if (prev ~= nil)then
  1087. if parts[i]:FindFirstChild("Weld") then parts[i]:FindFirstChild("Weld"):Destroy() end
  1088. local weld = Instance.new("Weld")
  1089. weld.Part0 = prev
  1090. weld.Part1 = parts[i]
  1091. weld.C0 = prev.CFrame:inverse()
  1092. weld.C1 = parts[i].CFrame:inverse()
  1093. weld.Parent = prev
  1094. end
  1095. prev = parts[i]
  1096. end
  1097. end
  1098.  
  1099. weld(tankgun.Rotator, mtank.rotatorcopy, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0))
  1100. mtank.rotatorcopy.Weld.Name = "rotatorweld"
  1101.  
  1102.  
  1103. local bav = Instance.new("BodyAngularVelocity",engine)
  1104. bav.MaxTorque = Vector3.new(0,0,0)
  1105. bav.P = 100
  1106. bav.AngularVelocity = Vector3.new(0,0,0)
  1107. local bv = Instance.new("BodyVelocity",engine)
  1108. bv.MaxForce = Vector3.new(0,0,0)
  1109. bv.P = 1250
  1110. bv.Velocity = Vector3.new(0.16,0,0.16)
  1111. local bv2 = Instance.new("BodyVelocity",mtank.Entrance)
  1112. bv2.MaxForce = Vector3.new(0,0,0)
  1113. bv2.P = 1250
  1114. bv2.Name = "bv2"
  1115. bv2.Velocity = Vector3.new(0,0,0)
  1116.  
  1117. local enginesound = Instance.new("Sound")
  1118. enginesound.SoundId="http://www.roblox.com/asset/?id=529366737"
  1119. enginesound.PlayOnRemove=false
  1120. enginesound.Volume=0.8
  1121. enginesound.Looped=true
  1122. enginesound.Pitch = 1
  1123. enginesound.Parent=engine
  1124.  
  1125. local hvr = Instance.new("Sound")
  1126. hvr.SoundId="http://www.roblox.com/asset/?id=319804715"
  1127. hvr.PlayOnRemove=false
  1128. hvr.Volume=0.8
  1129. hvr.Looped=false
  1130. hvr.Pitch = 1
  1131. hvr.Parent=engine
  1132. local hvr2 = Instance.new("Sound")
  1133. hvr2.SoundId="http://www.roblox.com/asset/?id=319807127"
  1134. hvr2.PlayOnRemove=false
  1135. hvr.Volume=1
  1136. hvr2.Looped=true
  1137. hvr2.Pitch = 1
  1138. hvr2.Parent=engine
  1139. local hvr3 = Instance.new("Sound")
  1140. hvr3.SoundId="http://www.roblox.com/asset/?id=319804802"
  1141. hvr3.PlayOnRemove=false
  1142. hvr3.Volume=0.8
  1143. hvr3.Looped=false
  1144. hvr3.Pitch = 1
  1145. hvr3.Parent=engine
  1146.  
  1147. mouse.KeyDown:connect(function(key)
  1148. if key == "y" and engineon == false then
  1149. engineon = true
  1150. enginesound:Play()
  1151. mtank.Entrance.CanCollide = true
  1152. end
  1153. end)
  1154. mouse.KeyDown:connect(function(key)
  1155. if key == "u" and engineon == true then
  1156. engineon = false
  1157. enginesound:Stop()
  1158. mtank.Entrance.CanCollide = false
  1159. end
  1160. end)
  1161.  
  1162.  
  1163. mouse.KeyDown:connect(function(key)
  1164. if key == "w" and engineon == true and spressed == false then
  1165. wpressed = true
  1166. bv.MaxForce = Vector3.new(forcelevel,0,forcelevel)
  1167. while wpressed == true do wait(.08)
  1168. accel = accel + 2
  1169. wheelaccel = wheelaccel + 10
  1170. if accel >=accellimit then accel = accellimit end
  1171. bv.Velocity = (mtank.driverseat.CFrame.lookVector * accel)
  1172. frontwheels.faxle.Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(wheelaccel),0,0)
  1173. backwheels.baxle.Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(wheelaccel),0,0)
  1174. end
  1175. end
  1176. end)
  1177. mouse.KeyUp:connect(function(key)
  1178. if key == "w" and engineon == true then
  1179. wpressed = false
  1180. while wpressed == false and accel >0 do wait()
  1181. accel = accel - 2.4
  1182. if accel <0 then accel = 0 end
  1183. bv.Velocity = (mtank.driverseat.CFrame.lookVector * accel)
  1184. end
  1185. end
  1186. end)
  1187.  
  1188. mouse.KeyDown:connect(function(key)
  1189. if key == "s" and engineon == true and wpressed == false then
  1190. spressed = true
  1191. bv.MaxForce = Vector3.new(forcelevel,0,forcelevel)
  1192. while spressed == true do wait(.06)
  1193. accel = accel - 2
  1194. wheelaccel = wheelaccel - 10
  1195. if accel <=-accellimit then accel = -accellimit end
  1196. bv.Velocity = (mtank.driverseat.CFrame.lookVector * accel)
  1197. frontwheels.faxle.Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(wheelaccel),0,0)
  1198. backwheels.baxle.Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(wheelaccel),0,0)
  1199. end
  1200. end
  1201. end)
  1202. mouse.KeyUp:connect(function(key)
  1203. if key == "s" and engineon == true then
  1204. spressed = false
  1205. while spressed == false and accel <0 do wait()
  1206. accel = accel + 2.4
  1207. if accel >0 then accel = 0 end
  1208. bv.Velocity = (mtank.driverseat.CFrame.lookVector * accel)
  1209. end
  1210. end
  1211. end)
  1212.  
  1213. mouse.KeyDown:connect(function(key)
  1214. if key == "a" and engineon == true then
  1215. apressed = true
  1216. angle = .8
  1217. bav.AngularVelocity = Vector3.new(0,angle,0)
  1218. bav.MaxTorque = Vector3.new(0,angletorque,0)
  1219. end
  1220. end)
  1221.  
  1222. mouse.KeyUp:connect(function(key)
  1223. if key == "a" and engineon == true then
  1224. angle = 0
  1225. apressed = false
  1226. bav.MaxTorque = Vector3.new(0,0,0)
  1227. end
  1228. end)
  1229.  
  1230. mouse.KeyDown:connect(function(key)
  1231. if key == "d" and engineon == true then
  1232. dpressed = true
  1233. angle = -.8
  1234. bav.AngularVelocity = Vector3.new(0,angle,0)
  1235. bav.MaxTorque = Vector3.new(0,-angletorque,0)
  1236. end
  1237. end)
  1238.  
  1239. mouse.KeyUp:connect(function(key)
  1240. if key == "d" and engineon == true then
  1241. angle = 0
  1242. dpressed = false
  1243. bav.MaxTorque = Vector3.new(0,0,0)
  1244. end
  1245. end)
  1246.  
  1247. mouse.KeyDown:connect(function(key)
  1248. if key == "k" then
  1249. kpressed = kpressed + 1
  1250. if kpressed == 1 then
  1251. frontwheels.fwl.CanCollide = true
  1252. frontwheels.fwr.CanCollide = true
  1253. backwheels.bwl.CanCollide = true
  1254. backwheels.bwr.CanCollide = true
  1255. print("debug wheel collisions on")
  1256. end
  1257. if kpressed == 2 then
  1258. kpressed = 0
  1259. frontwheels.fwl.CanCollide = false
  1260. frontwheels.fwr.CanCollide = false
  1261. backwheels.bwl.CanCollide = false
  1262. backwheels.bwr.CanCollide = false
  1263. print("debug wheel collisons off")
  1264. end
  1265. end
  1266. end)
  1267.  
  1268. function removewheels()
  1269. wait(.05)
  1270. frontwheels.fwl.Transparency = 0.2
  1271. frontwheels.fwr.Transparency = 0.2
  1272. backwheels.bwl.Transparency = 0.2
  1273. backwheels.bwr.Transparency = 0.2
  1274. wait(.05)
  1275. frontwheels.fwl.Transparency = 0.4
  1276. frontwheels.fwr.Transparency = 0.4
  1277. backwheels.bwl.Transparency = 0.4
  1278. backwheels.bwr.Transparency = 0.4
  1279. wait(.05)
  1280. frontwheels.fwl.Transparency = 0.6
  1281. frontwheels.fwr.Transparency = 0.6
  1282. backwheels.bwl.Transparency = 0.6
  1283. backwheels.bwr.Transparency = 0.6
  1284. wait(.05)
  1285. frontwheels.fwl.Transparency = 0.8
  1286. frontwheels.fwr.Transparency = 0.8
  1287. backwheels.bwl.Transparency = 0.8
  1288. backwheels.bwr.Transparency = 0.8
  1289. wait(.05)
  1290. frontwheels.fwl.Transparency = 1
  1291. frontwheels.fwr.Transparency = 1
  1292. backwheels.bwl.Transparency = 1
  1293. backwheels.bwr.Transparency = 1
  1294. frontwheels.fwl.CanCollide = false
  1295. frontwheels.fwr.CanCollide = false
  1296. backwheels.bwl.CanCollide = false
  1297. backwheels.bwr.CanCollide = false
  1298. end
  1299.  
  1300. function addwheels()
  1301. wait(.05)
  1302. frontwheels.fwl.Transparency = 0.8
  1303. frontwheels.fwr.Transparency = 0.8
  1304. backwheels.bwl.Transparency = 0.8
  1305. backwheels.bwr.Transparency = 0.8
  1306. wait(.05)
  1307. frontwheels.fwl.Transparency = 0.6
  1308. frontwheels.fwr.Transparency = 0.6
  1309. backwheels.bwl.Transparency = 0.6
  1310. backwheels.bwr.Transparency = 0.6
  1311. wait(.05)
  1312. frontwheels.fwl.Transparency = 0.4
  1313. frontwheels.fwr.Transparency = 0.4
  1314. backwheels.bwl.Transparency = 0.4
  1315. backwheels.bwr.Transparency = 0.4
  1316. wait(.05)
  1317. frontwheels.fwl.Transparency = 0.2
  1318. frontwheels.fwr.Transparency = 0.2
  1319. backwheels.bwl.Transparency = 0.2
  1320. backwheels.bwr.Transparency = 0.2
  1321. wait(.05)
  1322. frontwheels.fwl.Transparency = 0
  1323. frontwheels.fwr.Transparency = 0
  1324. backwheels.bwl.Transparency = 0
  1325. backwheels.bwr.Transparency = 0
  1326. frontwheels.fwl.CanCollide = true
  1327. frontwheels.fwr.CanCollide = true
  1328. backwheels.bwl.CanCollide = true
  1329. backwheels.bwr.CanCollide = true
  1330. end
  1331.  
  1332. mouse.KeyDown:connect(function(key)
  1333. if key == "h" then
  1334. hpressed = hpressed + 1
  1335. if hpressed == 1 then
  1336. hvr:Play()
  1337. removewheels()
  1338. hvr2:Play()
  1339. bv2.MaxForce = Vector3.new(0,forcelevel,0)
  1340. bv2.Velocity = Vector3.new(0,15,0)
  1341. end
  1342. if hpressed == 2 then
  1343. hpressed = 0
  1344. hvr2:Stop()
  1345. hvr3:Play()
  1346. addwheels()
  1347. bv2.MaxForce = Vector3.new(0,0,0)
  1348. end
  1349. end
  1350. end)
  1351.  
  1352. mouse.KeyDown:connect(function(key)
  1353. if key == "e" and hpressed == 1 then
  1354. bv2.Velocity = Vector3.new(0,15,0)
  1355. end
  1356. end)
  1357. mouse.KeyUp:connect(function(key)
  1358. if key == "e" and hpressed == 1 then
  1359. bv2.Velocity = Vector3.new(0,0,0)
  1360. end
  1361. end)
  1362. mouse.KeyDown:connect(function(key)
  1363. if key == "q" and hpressed == 1 then
  1364. bv2.Velocity = Vector3.new(0,-15,0)
  1365. end
  1366. end)
  1367. mouse.KeyUp:connect(function(key)
  1368. if key == "q" and hpressed == 1 then
  1369. bv2.Velocity = Vector3.new(0,0,0)
  1370. end
  1371. end)
  1372.  
  1373.  
  1374. local pellet2 = Instance.new("Part")
  1375. pellet2.FormFactor = Enum.FormFactor.Custom
  1376. pellet2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1377. pellet2.Transparency = 0.1
  1378. pellet2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1379. pellet2.Material = Enum.Material.Metal
  1380. pellet2.Size = Vector3.new(0.4, 1, 0.4)
  1381. pellet2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1382. pellet2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1383. pellet2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1384. pellet2.BrickColor = BrickColor.new("Gold")
  1385. pellet2.Friction = 0.3
  1386. pellet2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1387.  
  1388. local pellet1 = Instance.new("Part")
  1389. pellet1.FormFactor = Enum.FormFactor.Custom
  1390. pellet1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1391. pellet1.Transparency = 0.1
  1392. pellet1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1393. pellet1.Material = Enum.Material.Metal
  1394. pellet1.Size = Vector3.new(0.6, 0.9, 0.6)
  1395. pellet1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1396. pellet1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1397. pellet1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1398. pellet1.BrickColor = BrickColor.new("Gold")
  1399. pellet1.Friction = 0.3
  1400. pellet1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1401.  
  1402. local rocketlr = Instance.new("Sound")
  1403. rocketlr.SoundId="http://www.roblox.com/asset/?id=165946426"
  1404. rocketlr.PlayOnRemove=false
  1405. rocketlr.Volume=0.7
  1406. rocketlr.Looped=false
  1407. rocketlr.Pitch = 1
  1408. rocketlr.Parent=mtank.rightbarrel
  1409. local rocketll = Instance.new("Sound")
  1410. rocketll.SoundId="http://www.roblox.com/asset/?id=165946426"
  1411. rocketll.PlayOnRemove=false
  1412. rocketll.Volume=0.7
  1413. rocketll.Looped=false
  1414. rocketll.Pitch = 1
  1415. rocketll.Parent=mtank.leftbarrel
  1416.  
  1417. local rockethr = Instance.new("Sound")
  1418. rockethr.SoundId="http://www.roblox.com/asset/?id=515942061"
  1419. rockethr.PlayOnRemove=false
  1420. rockethr.Volume=0.7
  1421. rockethr.Looped=false
  1422. rockethr.Pitch = 1
  1423. rockethr.Parent=tankgun.Barrel2
  1424. local rockethl = Instance.new("Sound")
  1425. rockethl.SoundId="http://www.roblox.com/asset/?id=515942061"
  1426. rockethl.PlayOnRemove=false
  1427. rockethl.Volume=0.7
  1428. rockethl.Looped=false
  1429. rockethl.Pitch = 1
  1430. rockethl.Parent=tankgun.Barrel1
  1431.  
  1432. mouse.KeyDown:connect(function(key)
  1433. if key == "p" then
  1434. if lowerrightfire == false then
  1435. lowerrightfire = true
  1436. rocketlr:Play()
  1437. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.1,0)
  1438. wait()
  1439. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.2,0)
  1440. wait()
  1441. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.3,0)
  1442. wait()
  1443. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.4,0)
  1444. frontbarrel2.BrickColor = BrickColor.new("Bright orange")
  1445. local b = pellet2:Clone()
  1446. b.Parent = workspace
  1447. b.CFrame = mtank.rightbarrel.CFrame*CFrame.new(0,-2,.1)
  1448. b.CanCollide = true
  1449. game.Debris:AddItem(b,8)
  1450. b.Velocity = mtank.driverseat.CFrame.lookVector * 200
  1451.  
  1452. b.Touched:connect(function(h)
  1453. b:Destroy()
  1454. if h.Parent:FindFirstChild("Humanoid") then
  1455. h.Parent.Humanoid:TakeDamage(math.random(20,60))
  1456. h.Parent:FindFirstChild("Torso").Velocity = engine.CFrame.lookVector*15
  1457. local s=Instance.new("Sound")
  1458. s.SoundId="http://www.roblox.com/asset/?id=144884872"
  1459. s.PlayOnRemove=false
  1460. s.Volume=1
  1461. s.Looped=false
  1462. s.Pitch = 1
  1463. s.Parent=h.Parent.Torso
  1464. s:Play()
  1465. game.Debris:AddItem(s,4)
  1466. b:Destroy()
  1467. end
  1468. end)
  1469.  
  1470. wait()
  1471. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.5,0)
  1472. wait()
  1473. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.4,0)
  1474. wait()
  1475. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.3,0)
  1476. wait()
  1477. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.2,0)
  1478. frontbarrel2.BrickColor = BrickColor.new("Really black")
  1479. wait()
  1480. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,.1,0)
  1481. wait()
  1482. mtank.rightbarrel.Mesh.Offset = Vector3.new(0,0,0)
  1483. lowerrightfire = false
  1484. end
  1485. end
  1486. end)
  1487.  
  1488. mouse.KeyDown:connect(function(key)
  1489. if key == "l" then
  1490. if lowerleftfire == false then
  1491. lowerleftfire = true
  1492. rocketll:Play()
  1493. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.1,0)
  1494. wait()
  1495. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.2,0)
  1496. wait()
  1497. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.3,0)
  1498. wait()
  1499. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.4,0)
  1500. frontbarrel1.BrickColor = BrickColor.new("Bright orange")
  1501. local b = pellet2:Clone()
  1502. b.Parent = workspace
  1503. b.CFrame = mtank.leftbarrel.CFrame*CFrame.new(0,-2,.1)
  1504. b.CanCollide = true
  1505. game.Debris:AddItem(b,8)
  1506. b.Velocity = mtank.driverseat.CFrame.lookVector * 200
  1507.  
  1508. b.Touched:connect(function(h)
  1509. b:Destroy()
  1510. if h.Parent:FindFirstChild("Humanoid") then
  1511. h.Parent.Humanoid:TakeDamage(math.random(20,60))
  1512. h.Parent.Humanoid.PlatformStand = true
  1513. local s=Instance.new("Sound")
  1514. s.SoundId="http://www.roblox.com/asset/?id=144884872"
  1515. s.PlayOnRemove=false
  1516. s.Volume=1
  1517. s.Looped=false
  1518. s.Pitch = 1
  1519. s.Parent=h.Parent.Torso
  1520. s:Play()
  1521. game.Debris:AddItem(s,4)
  1522. end
  1523. end)
  1524.  
  1525. wait()
  1526. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.5,0)
  1527. wait()
  1528. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.4,0)
  1529. wait()
  1530. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.3,0)
  1531. wait()
  1532. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.2,0)
  1533. frontbarrel1.BrickColor = BrickColor.new("Really black")
  1534. wait()
  1535. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,.1,0)
  1536. wait()
  1537. mtank.leftbarrel.Mesh.Offset = Vector3.new(0,0,0)
  1538. lowerleftfire = false
  1539. end
  1540. end
  1541. end)
  1542.  
  1543. local rotator = tankgun.Rotator
  1544. rotator.Weld.Name = "weld2"
  1545.  
  1546.  
  1547. mtank.fbumper.Touched:connect(function(h)
  1548. if Vector3.new(mtank.driverseat.Velocity.x,0,mtank.driverseat.Velocity.z).magnitude > 6 then
  1549. if h.Parent:FindFirstChild("Humanoid") then
  1550. if h.Parent.Humanoid.Parent:FindFirstChild("ForceField") then h.Parent.ForceField:Destroy() end
  1551. if h.Parent.Humanoid.Health >1000 then h.Parent.Humanoid.MaxHealth = 1000 h.Parent.Humanoid.Health = 1000 end
  1552. local dmg = (math.random(5,20))
  1553. h.Parent.Humanoid:TakeDamage(dmg)
  1554. if h:FindFirstChild("Torso") then h:FindFirstChild("Torso").Velocity = mtank.driverseat.CFrame.lookVector*15 end
  1555. h.Parent.Humanoid.Sit = true
  1556. end
  1557. end
  1558. end)
  1559. frontwheels.fwl.Touched:connect(function(h)
  1560. if Vector3.new(mtank.driverseat.Velocity.x,0,mtank.driverseat.Velocity.z).magnitude > 6 then
  1561. if h.Parent:FindFirstChild("Humanoid") then
  1562. if h.Parent.Humanoid.Parent:FindFirstChild("ForceField") then h.Parent.ForceField:Destroy() end
  1563. if h.Parent.Humanoid.Health >1000 then h.Parent.Humanoid.MaxHealth = 1000 h.Parent.Humanoid.Health = 1000 end
  1564. local dmg = (math.random(5,10))
  1565. h.Parent.Humanoid:TakeDamage(dmg)
  1566. if h:FindFirstChild("Torso") then h:FindFirstChild("Torso").Velocity = mtank.driverseat.CFrame.lookVector*15 end
  1567. h.Parent.Humanoid.Sit = true
  1568. end
  1569. end
  1570. end)
  1571. frontwheels.fwr.Touched:connect(function(h)
  1572. if Vector3.new(mtank.driverseat.Velocity.x,0,mtank.driverseat.Velocity.z).magnitude > 6 then
  1573. if h.Parent:FindFirstChild("Humanoid") then
  1574. if h.Parent.Humanoid.Parent:FindFirstChild("ForceField") then h.Parent.ForceField:Destroy() end
  1575. if h.Parent.Humanoid.Health >1000 then h.Parent.Humanoid.MaxHealth = 1000 h.Parent.Humanoid.Health = 1000 end
  1576. local dmg = (math.random(5,10))
  1577. h.Parent.Humanoid:TakeDamage(dmg)
  1578. if h:FindFirstChild("Torso") then h:FindFirstChild("Torso").Velocity = mtank.driverseat.CFrame.lookVector*15 end
  1579. h.Parent.Humanoid.Sit = true
  1580. end
  1581. end
  1582. end)
  1583. backwheels.bwr.Touched:connect(function(h)
  1584. if Vector3.new(mtank.driverseat.Velocity.x,0,mtank.driverseat.Velocity.z).magnitude > 6 then
  1585. if h.Parent:FindFirstChild("Humanoid") then
  1586. if h.Parent.Humanoid.Parent:FindFirstChild("ForceField") then h.Parent.ForceField:Destroy() end
  1587. if h.Parent.Humanoid.Health >1000 then h.Parent.Humanoid.MaxHealth = 1000 h.Parent.Humanoid.Health = 1000 end
  1588. local dmg = (math.random(5,10))
  1589. h.Parent.Humanoid:TakeDamage(dmg)
  1590. if h:FindFirstChild("Torso") then h:FindFirstChild("Torso").Velocity = mtank.driverseat.CFrame.lookVector*15 end
  1591. h.Parent.Humanoid.Sit = true
  1592. end
  1593. end
  1594. end)
  1595. backwheels.bwl.Touched:connect(function(h)
  1596. if Vector3.new(mtank.driverseat.Velocity.x,0,mtank.driverseat.Velocity.z).magnitude > 6 then
  1597. if h.Parent:FindFirstChild("Humanoid") then
  1598. if h.Parent.Humanoid.Parent:FindFirstChild("ForceField") then h.Parent.ForceField:Destroy() end
  1599. if h.Parent.Humanoid.Health >1000 then h.Parent.Humanoid.MaxHealth = 1000 h.Parent.Humanoid.Health = 1000 end
  1600. local dmg = (math.random(5,10))
  1601. h.Parent.Humanoid:TakeDamage(dmg)
  1602. if h:FindFirstChild("Torso") then h:FindFirstChild("Torso").Velocity = mtank.driverseat.CFrame.lookVector*15 end
  1603. h.Parent.Humanoid.Sit = true
  1604. end
  1605. end
  1606. end)
  1607.  
  1608. function rbfire()
  1609. if mainfire1 == false then
  1610. mainfire1 = true
  1611. rockethr:Play()
  1612. tankgun.anim1.Mesh.Offset = Vector3.new(0,.1,0)
  1613. wait()
  1614. tankgun.anim1.Mesh.Offset = Vector3.new(0,.2,0)
  1615. wait()
  1616. tankgun.anim1.Mesh.Offset = Vector3.new(0,.3,0)
  1617. wait()
  1618. tankgun.anim1.Mesh.Offset = Vector3.new(0,.4,0)
  1619. tankgun.Barrel2.BrickColor = BrickColor.new("Bright orange")
  1620. local b = pellet1:Clone()
  1621. local fire = Instance.new("Fire",b)
  1622. b.Parent = workspace
  1623. b.CFrame = tankgun.Barrel2.CFrame*CFrame.new(0,-10,0)
  1624. b.CanCollide = true
  1625. game.Debris:AddItem(b,8)
  1626. b.Velocity = rotator.CFrame.lookVector * 155
  1627. b.Touched:connect(function(h)
  1628. local explosion = Instance.new("Explosion",workspace)
  1629. explosion.Position = b.Position
  1630. explosion.BlastPressure = 21000
  1631. explosion.BlastRadius = 14
  1632. local s=Instance.new("Sound")
  1633. s.SoundId="http://www.roblox.com/asset/?id=180199726"
  1634. s.PlayOnRemove=false
  1635. s.Volume=1
  1636. s.Looped=false
  1637. s.Pitch = 1
  1638. s.Parent=explosion
  1639. s:Play()
  1640. game.Debris:AddItem(s,4)
  1641. b:Destroy()
  1642. end)
  1643.  
  1644. wait()
  1645. tankgun.anim1.Mesh.Offset = Vector3.new(0,.5,0)
  1646. wait()
  1647. tankgun.anim1.Mesh.Offset = Vector3.new(0,.4,0)
  1648. wait()
  1649. tankgun.anim1.Mesh.Offset = Vector3.new(0,.3,0)
  1650. wait()
  1651. tankgun.anim1.Mesh.Offset = Vector3.new(0,.2,0)
  1652. tankgun.Barrel2.BrickColor = BrickColor.new("Really black")
  1653. wait()
  1654. tankgun.anim1.Mesh.Offset = Vector3.new(0,.1,0)
  1655. wait()
  1656. tankgun.anim1.Mesh.Offset = Vector3.new(0,0,0)
  1657. mainfire1 = false
  1658. end
  1659. end
  1660.  
  1661. function lbfire()
  1662. if mainfire2 == false then
  1663. mainfire2 = true
  1664. rockethl:Play()
  1665. tankgun.anim2.Mesh.Offset = Vector3.new(0,.1,0)
  1666. wait()
  1667. tankgun.anim2.Mesh.Offset = Vector3.new(0,.2,0)
  1668. wait()
  1669. tankgun.anim2.Mesh.Offset = Vector3.new(0,.3,0)
  1670. wait()
  1671. tankgun.anim2.Mesh.Offset = Vector3.new(0,.4,0)
  1672. tankgun.Barrel1.BrickColor = BrickColor.new("Bright orange")
  1673. local b = pellet1:Clone()
  1674. local fire = Instance.new("Fire",b)
  1675. b.Parent = workspace
  1676. b.CFrame = tankgun.Barrel1.CFrame*CFrame.new(0,-10,0)
  1677. b.CanCollide = true
  1678. game.Debris:AddItem(b,8)
  1679. b.Velocity = rotator.CFrame.lookVector * 155
  1680. b.Touched:connect(function(h)
  1681. local explosion = Instance.new("Explosion",workspace)
  1682. explosion.Position = b.Position
  1683. explosion.BlastPressure = 21000
  1684. explosion.BlastRadius = 14
  1685. local s=Instance.new("Sound")
  1686. s.SoundId="http://www.roblox.com/asset/?id=180199726"
  1687. s.PlayOnRemove=false
  1688. s.Volume=1
  1689. s.Looped=false
  1690. s.Pitch = 1
  1691. s.Parent=explosion
  1692. s:Play()
  1693. game.Debris:AddItem(s,4)
  1694. b:Destroy()
  1695. end)
  1696.  
  1697. wait()
  1698. tankgun.anim2.Mesh.Offset = Vector3.new(0,.5,0)
  1699. wait()
  1700. tankgun.anim2.Mesh.Offset = Vector3.new(0,.4,0)
  1701. wait()
  1702. tankgun.anim2.Mesh.Offset = Vector3.new(0,.3,0)
  1703. wait()
  1704. tankgun.anim2.Mesh.Offset = Vector3.new(0,.2,0)
  1705. tankgun.Barrel1.BrickColor = BrickColor.new("Really black")
  1706. wait()
  1707. tankgun.anim2.Mesh.Offset = Vector3.new(0,.1,0)
  1708. wait()
  1709. tankgun.anim2.Mesh.Offset = Vector3.new(0,0,0)
  1710. mainfire2 = false
  1711. end
  1712. end
  1713.  
  1714. mouse.KeyDown:connect(function(key)
  1715. if key == "f" then
  1716. rbfire()
  1717. wait(.1)
  1718. lbfire()
  1719. end
  1720. end)
  1721.  
  1722. local offset = CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
  1723.  
  1724. mouse.KeyDown:connect(function(key)
  1725. if key == "z" then
  1726. zpressed = zpressed + 1
  1727. if zpressed == 1 then
  1728. print("gun will follow mouse")
  1729. end
  1730. if zpressed == 2 then
  1731. zpressed = 0
  1732. print("gun will not follow mouse")
  1733. camera.CameraSubject = char.Humanoid
  1734. camera.CameraType = "Custom"
  1735. end
  1736. end
  1737. end)
  1738.  
  1739. mouse.Move:connect(function(key)
  1740. if zpressed == 1 then
  1741. camera.CameraSubject = rotator
  1742. camera.CameraType = "Follow"
  1743. local p0c0 = rotator:GetRenderCFrame()*rotator.Weld.C0
  1744. rotator.Weld.C0 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0
  1745. end
  1746. end)
  1747.  
  1748. mouse.KeyDown:connect(function(key)
  1749. if key == "x" then
  1750. xpressed = xpressed + 1
  1751. if xpressed == 1 then
  1752. if spikeenabled == false then
  1753. spike1.CanCollide = true
  1754. spike1.Mesh.Scale = Vector3.new(0.6, 2, 0.6)
  1755. wait()
  1756. spike1.Mesh.Scale = Vector3.new(0.6, 4, 0.6)
  1757. wait()
  1758. spike1.Mesh.Scale = Vector3.new(0.6, 6, 0.6)
  1759. wait()
  1760. spike1.Mesh.Scale = Vector3.new(0.6, 8, 0.6)
  1761. wait()
  1762. spike1.Mesh.Scale = Vector3.new(0.6, 10, 0.6)
  1763. spikeenabled = true
  1764. end
  1765. end
  1766. if xpressed == 2 then
  1767. xpressed = 0
  1768. if spikeenabled == true then
  1769. spike1.CanCollide = false
  1770. spike1.Mesh.Scale = Vector3.new(0.6, 8, 0.6)
  1771. wait()
  1772. spike1.Mesh.Scale = Vector3.new(0.6, 6, 0.6)
  1773. wait()
  1774. spike1.Mesh.Scale = Vector3.new(0.6, 4, 0.6)
  1775. wait()
  1776. spike1.Mesh.Scale = Vector3.new(0.6, 1, 0.6)
  1777. spikeenabled = false
  1778. end
  1779. end
  1780. end
  1781. end)
  1782.  
  1783. spike1.Touched:connect(function(h)
  1784. if not hit and h.Parent~=player.Character then
  1785. if spikeenabled == true then
  1786. hit=true
  1787. pcall(function()
  1788. print("Slicing")
  1789. local pYPos=h.Position.y-(h.Size.y/2)
  1790. local sYPos=spike1.Position.y
  1791. if sYPos<=pYPos or sYPos>=(pYPos+h.Size.y) then return end
  1792. local p=h:clone() p.Parent=workspace p.Anchored=false p.CanCollide=true
  1793. local p2=h:clone() p2.Parent=workspace p2.Anchored=false p2.CanCollide=true
  1794. h:remove()
  1795. p.formFactor="Custom"
  1796. p2.formFactor="Custom"
  1797. p.TopSurface="Smooth"
  1798. p.BottomSurface="Smooth"
  1799. p.Friction=0
  1800. p2.Friction=0
  1801. p.Size=Vector3.new(h.Size.x, sYPos-pYPos, h.Size.z)
  1802. p2.Size=Vector3.new(h.Size.x, p2.Size.y-(sYPos-pYPos), h.Size.z)
  1803. p.CFrame=h.CFrame*CFrame.new(0, -p2.Size.y/2, 0)
  1804. p2.CFrame=h.CFrame*CFrame.new(0, p.Size.y/2, 0)
  1805. coroutine.resume(coroutine.create(function()
  1806. wait(5)
  1807. p:remove() p2:remove()
  1808. end))
  1809. end)
  1810. wait()
  1811. hit=false
  1812. end
  1813. end
  1814. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement