Advertisement
samuelrichter66

tanke

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