Advertisement
billwa

stop breaking my shit pastebin

Oct 28th, 2016
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 47.50 KB | None | 0 0
  1. --[[
  2. Objects Skipped: 3
  3.     Script: 3
  4. --]]
  5.  
  6. local vehicle = Instance.new("Model", workspace)
  7. local seat = Instance.new("VehicleSeat", vehicle)
  8. local gunignore = Instance.new("Model", vehicle)
  9. local barrel = Instance.new("Part", gunignore)
  10. local light = Instance.new("BillboardGui", barrel)
  11. local light_2 = Instance.new("ImageLabel", light)
  12. local pointlight = Instance.new("PointLight", barrel)
  13. local mesh = Instance.new("CylinderMesh", barrel)
  14. local maxclips = Instance.new("NumberValue", barrel)
  15. local clips = Instance.new("NumberValue", barrel)
  16. local ammo = Instance.new("NumberValue", barrel)
  17. local fire = Instance.new("Sound", barrel)
  18. local triger = Instance.new("Sound", barrel)
  19. local part = Instance.new("Part", vehicle)
  20. local mesh_2 = Instance.new("CylinderMesh", part)
  21. local part_2 = Instance.new("Part", vehicle)
  22. local mesh_3 = Instance.new("CylinderMesh", part_2)
  23. local part_3 = Instance.new("Part", vehicle)
  24. local mesh_4 = Instance.new("CylinderMesh", part_3)
  25. local part_4 = Instance.new("Part", vehicle)
  26. local mesh_5 = Instance.new("BlockMesh", part_4)
  27. local part_5 = Instance.new("Part", vehicle)
  28. local mesh_6 = Instance.new("BlockMesh", part_5)
  29. local part_6 = Instance.new("Part", vehicle)
  30. local mesh_7 = Instance.new("CylinderMesh", part_6)
  31. local part_7 = Instance.new("Part", vehicle)
  32. local mesh_8 = Instance.new("BlockMesh", part_7)
  33. local part_8 = Instance.new("Part", vehicle)
  34. local mesh_9 = Instance.new("SpecialMesh", part_8)
  35. local part_9 = Instance.new("Part", vehicle)
  36. local mesh_10 = Instance.new("BlockMesh", part_9)
  37. local parttopart_strong_joint = Instance.new("ManualWeld", part_9)
  38. local part_10 = Instance.new("Part", vehicle)
  39. local mesh_11 = Instance.new("BlockMesh", part_10)
  40. local part_11 = Instance.new("Part", vehicle)
  41. local mesh_12 = Instance.new("BlockMesh", part_11)
  42. local part_12 = Instance.new("Part", vehicle)
  43. local mesh_13 = Instance.new("CylinderMesh", part_12)
  44. local part_13 = Instance.new("Part", vehicle)
  45. local mesh_14 = Instance.new("BlockMesh", part_13)
  46. local part_14 = Instance.new("Part", vehicle)
  47. local mesh_15 = Instance.new("CylinderMesh", part_14)
  48. local part_15 = Instance.new("Part", vehicle)
  49. local mesh_16 = Instance.new("BlockMesh", part_15)
  50. local part_16 = Instance.new("Part", vehicle)
  51. local mesh_17 = Instance.new("BlockMesh", part_16)
  52. local part_17 = Instance.new("Part", vehicle)
  53. local mesh_18 = Instance.new("BlockMesh", part_17)
  54. local part_18 = Instance.new("Part", vehicle)
  55. local mesh_19 = Instance.new("BlockMesh", part_18)
  56. local part_19 = Instance.new("Part", vehicle)
  57. local mesh_20 = Instance.new("SpecialMesh", part_19)
  58. local parttopart_strong_joint_2 = Instance.new("ManualWeld", part_19)
  59. local part_20 = Instance.new("Part", vehicle)
  60. local mesh_21 = Instance.new("BlockMesh", part_20)
  61. local part_21 = Instance.new("Part", vehicle)
  62. local mesh_22 = Instance.new("BlockMesh", part_21)
  63. local part_22 = Instance.new("Part", vehicle)
  64. local mesh_23 = Instance.new("CylinderMesh", part_22)
  65. local part_23 = Instance.new("Part", vehicle)
  66. local mesh_24 = Instance.new("BlockMesh", part_23)
  67. local part_24 = Instance.new("Part", vehicle)
  68. local parttopart_strong_joint_3 = Instance.new("ManualWeld", part_24)
  69. local parttopart_strong_joint_4 = Instance.new("ManualWeld", part_24)
  70. local parttopart_strong_joint_5 = Instance.new("ManualWeld", part_24)
  71. local parttopart_strong_joint_6 = Instance.new("ManualWeld", part_24)
  72. local parttopart_strong_joint_7 = Instance.new("ManualWeld", part_24)
  73. local parttopart_strong_joint_8 = Instance.new("ManualWeld", part_24)
  74. local parttopart_strong_joint_9 = Instance.new("ManualWeld", part_24)
  75. local part_25 = Instance.new("Part", vehicle)
  76. local parttopart_strong_joint_10 = Instance.new("ManualWeld", part_25)
  77. local parttopart_strong_joint_11 = Instance.new("ManualWeld", part_25)
  78. local parttopart_strong_joint_12 = Instance.new("ManualWeld", part_25)
  79. local parttopart_strong_joint_13 = Instance.new("ManualWeld", part_25)
  80. local parttopart_strong_joint_14 = Instance.new("ManualWeld", part_25)
  81. local parttopart_strong_joint_15 = Instance.new("ManualWeld", part_25)
  82. local parttopart_strong_joint_16 = Instance.new("ManualWeld", part_25)
  83. local part_26 = Instance.new("Part", vehicle)
  84. local parttopart_strong_joint_17 = Instance.new("ManualWeld", part_26)
  85. local parttopart_strong_joint_18 = Instance.new("ManualWeld", part_26)
  86. local parttopart_strong_joint_19 = Instance.new("ManualWeld", part_26)
  87. local parttopart_strong_joint_20 = Instance.new("ManualWeld", part_26)
  88. local parttopart_strong_joint_21 = Instance.new("ManualWeld", part_26)
  89. local parttopart_strong_joint_22 = Instance.new("ManualWeld", part_26)
  90. local parttopart_strong_joint_23 = Instance.new("ManualWeld", part_26)
  91. local part_27 = Instance.new("Part", vehicle)
  92. local mesh_25 = Instance.new("CylinderMesh", part_27)
  93. local part_28 = Instance.new("Part", vehicle)
  94. local mesh_26 = Instance.new("BlockMesh", part_28)
  95. local part_29 = Instance.new("Part", vehicle)
  96. local mesh_27 = Instance.new("BlockMesh", part_29)
  97. local part_30 = Instance.new("Part", vehicle)
  98. local mesh_28 = Instance.new("BlockMesh", part_30)
  99. local part_31 = Instance.new("Part", vehicle)
  100. local mesh_29 = Instance.new("SpecialMesh", part_31)
  101. local parttopart_strong_joint_24 = Instance.new("ManualWeld", part_31)
  102. local part_32 = Instance.new("Part", vehicle)
  103. local mesh_30 = Instance.new("SpecialMesh", part_32)
  104. local parttopart_strong_joint_25 = Instance.new("ManualWeld", part_32)
  105. local part_33 = Instance.new("Part", vehicle)
  106. local mesh_31 = Instance.new("BlockMesh", part_33)
  107. local part_34 = Instance.new("Part", vehicle)
  108. local mesh_32 = Instance.new("BlockMesh", part_34)
  109. local part_35 = Instance.new("Part", vehicle)
  110. local mesh_33 = Instance.new("CylinderMesh", part_35)
  111. local part_36 = Instance.new("Part", vehicle)
  112. local mesh_34 = Instance.new("CylinderMesh", part_36)
  113.  
  114. vehicle.Name = "Vehicle"
  115.  
  116. seat.Friction = 0.3
  117. seat.BottomSurface = Enum.SurfaceType.Weld
  118. seat.LeftSurface = Enum.SurfaceType.Weld
  119. seat.TopSurface = Enum.SurfaceType.Smooth
  120. seat.Name = "Seat"
  121. seat.BrickColor = BrickColor.new("Grime")
  122. seat.CFrame = CFrame.new(30.9, 0.488, -198.7) * CFrame.Angles(3.141592502594, -8.2584932670215e-007, -3.1415922641754)
  123. seat.Size = Vector3.new(1, 1, 1)
  124. seat.RightSurface = Enum.SurfaceType.Weld
  125. seat.Torque = 1
  126. seat.BackSurface = Enum.SurfaceType.Weld
  127. seat.MaxSpeed = 20
  128. seat.HeadsUpDisplay = false
  129.  
  130. gunignore.Name = "GunIgnore"
  131.  
  132. barrel.Anchored = true
  133. barrel.FormFactor = Enum.FormFactor.Symmetric
  134. barrel.LeftSurface = Enum.SurfaceType.Weld
  135. barrel.Transparency = 1
  136. barrel.TopSurface = Enum.SurfaceType.Weld
  137. barrel.Reflectance = 0.2
  138. barrel.FrontSurface = Enum.SurfaceType.Weld
  139. barrel.Name = "Barrel"
  140. barrel.Size = Vector3.new(1, 1, 1)
  141. barrel.RightSurface = Enum.SurfaceType.Weld
  142. barrel.BackSurface = Enum.SurfaceType.Weld
  143. barrel.CFrame = CFrame.new(30.911, 5.267, -192.762) * CFrame.Angles(3.0865514278412, 1.5698198080063, -1.5156611204147)
  144. barrel.BrickColor = BrickColor.new("Black")
  145. barrel.Friction = 0.3
  146. barrel.BottomSurface = Enum.SurfaceType.Weld
  147.  
  148. light.Active = true
  149. light.Adornee = barrel
  150. light.Name = "Light"
  151. light.Size = UDim2.new(1.5, 0, 1.5, 0)
  152.  
  153. light_2.Visible = false
  154. light_2.Active = true
  155. light_2.Image = "http://www.roblox.com/asset/?id=69576497"
  156. light_2.Name = "Light"
  157. light_2.Position = UDim2.new(-0.5, 0, -0.5, 0)
  158. light_2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  159. light_2.BackgroundTransparency = 1
  160. light_2.Size = UDim2.new(2, 0, 2, 0)
  161. light_2.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  162.  
  163. pointlight.Enabled = false
  164. pointlight.Color = Color3.new(1, 0.666667, 0)
  165. pointlight.Brightness = 2
  166. pointlight.Range = 10
  167.  
  168. mesh.Offset = Vector3.new(0, -1.4, 0)
  169. mesh.Scale = Vector3.new(0.2, 2.4, 0.3)
  170.  
  171. maxclips.Name = "MAXclips"
  172. maxclips.Value = 10
  173.  
  174. clips.Name = "Clips"
  175. clips.Value = 20
  176.  
  177. ammo.Name = "Ammo"
  178. ammo.Value = 100
  179.  
  180. fire.Pitch = 1.1
  181. fire.MinDistance = 10
  182. fire.MaxDistance = 10000
  183. fire.Name = "Fire"
  184. fire.Volume = 1
  185. fire.SoundId = "http://roblox.com/asset/?id=140588028"
  186.  
  187. triger.Pitch = 100
  188. triger.MinDistance = 10
  189. triger.MaxDistance = 10000
  190. triger.Name = "Triger"
  191. triger.SoundId = "http://roblox.com/asset/?id=10209859"
  192.  
  193. part.Anchored = true
  194. part.FormFactor = Enum.FormFactor.Custom
  195. part.LeftSurface = Enum.SurfaceType.Weld
  196. part.TopSurface = Enum.SurfaceType.Weld
  197. part.FrontSurface = Enum.SurfaceType.Weld
  198. part.Material = Enum.Material.Metal
  199. part.Size = Vector3.new(1, 0.2, 1)
  200. part.RightSurface = Enum.SurfaceType.Weld
  201. part.BackSurface = Enum.SurfaceType.Weld
  202. part.CFrame = CFrame.new(30.9, 4.004, -195.7) * CFrame.Angles(-3.1415543556213, 7.1940559109862e-007, -1.2363815585559e-005)
  203. part.BrickColor = BrickColor.new("Dark stone grey")
  204. part.Friction = 0.3
  205. part.BottomSurface = Enum.SurfaceType.Weld
  206.  
  207.  
  208. part_2.Anchored = true
  209. part_2.FormFactor = Enum.FormFactor.Custom
  210. part_2.LeftSurface = Enum.SurfaceType.Weld
  211. part_2.TopSurface = Enum.SurfaceType.Weld
  212. part_2.FrontSurface = Enum.SurfaceType.Weld
  213. part_2.Material = Enum.Material.Metal
  214. part_2.Size = Vector3.new(0.2, 2.2, 0.2)
  215. part_2.RightSurface = Enum.SurfaceType.Weld
  216. part_2.BackSurface = Enum.SurfaceType.Weld
  217. part_2.CFrame = CFrame.new(31.7, 3.324, -196.7) * CFrame.Angles(-2.3561561107635, 6.516629014186e-007, -0.52361118793488)
  218. part_2.BrickColor = BrickColor.new("Dark stone grey")
  219. part_2.Friction = 0.3
  220. part_2.BottomSurface = Enum.SurfaceType.Weld
  221.  
  222.  
  223. part_3.Anchored = true
  224. part_3.FormFactor = Enum.FormFactor.Custom
  225. part_3.LeftSurface = Enum.SurfaceType.Weld
  226. part_3.TopSurface = Enum.SurfaceType.Weld
  227. part_3.FrontSurface = Enum.SurfaceType.Weld
  228. part_3.Material = Enum.Material.Metal
  229. part_3.Size = Vector3.new(0.2, 2, 0.2)
  230. part_3.RightSurface = Enum.SurfaceType.Weld
  231. part_3.BackSurface = Enum.SurfaceType.Weld
  232. part_3.CFrame = CFrame.new(30.9, 3.275, -194.571) * CFrame.Angles(2.356232881546, 6.1690802795056e-006, -8.9482928160578e-006)
  233. part_3.BrickColor = BrickColor.new("Dark stone grey")
  234. part_3.Friction = 0.3
  235. part_3.BottomSurface = Enum.SurfaceType.Weld
  236.  
  237.  
  238. part_4.Anchored = true
  239. part_4.FormFactor = Enum.FormFactor.Custom
  240. part_4.FrontSurface = Enum.SurfaceType.Weld
  241. part_4.Size = Vector3.new(1.022, 1.022, 1.022)
  242. part_4.CFrame = CFrame.new(30.857, 5.401, -196.925) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  243. part_4.BrickColor = BrickColor.new("Really black")
  244. part_4.Friction = 0.3
  245.  
  246. mesh_5.Scale = Vector3.new(0.029, 0.048, 0.095)
  247.  
  248. part_5.Anchored = true
  249. part_5.FormFactor = Enum.FormFactor.Custom
  250. part_5.FrontSurface = Enum.SurfaceType.Weld
  251. part_5.Size = Vector3.new(0.368, 0.368, 0.368)
  252. part_5.CFrame = CFrame.new(31.171, 5.411, -195.461) * CFrame.Angles(-3.1415927410126, 0, 2.6179938316345)
  253. part_5.BrickColor = BrickColor.new("Dark orange")
  254. part_5.Friction = 0.3
  255.  
  256. mesh_6.Scale = Vector3.new(0.265, 0.133, 1.327)
  257.  
  258. part_6.Anchored = true
  259. part_6.FormFactor = Enum.FormFactor.Custom
  260. part_6.FrontSurface = Enum.SurfaceType.Weld
  261. part_6.Size = Vector3.new(0.721, 0.721, 0.721)
  262. part_6.CFrame = CFrame.new(30.911, 5.255, -195.266) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  263. part_6.BrickColor = BrickColor.new("Really black")
  264. part_6.Friction = 0.3
  265.  
  266. mesh_7.Scale = Vector3.new(0.271, 0.162, 0.203)
  267.  
  268. part_7.Anchored = true
  269. part_7.FormFactor = Enum.FormFactor.Custom
  270. part_7.FrontSurface = Enum.SurfaceType.Weld
  271. part_7.Size = Vector3.new(1.022, 1.022, 1.022)
  272. part_7.CFrame = CFrame.new(30.911, 4.792, -196.876) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  273. part_7.BrickColor = BrickColor.new("Dark orange")
  274. part_7.Friction = 0.3
  275.  
  276. mesh_8.Scale = Vector3.new(0.172, 0.382, 0.191)
  277.  
  278. part_8.Anchored = true
  279. part_8.FormFactor = Enum.FormFactor.Custom
  280. part_8.TopSurface = Enum.SurfaceType.Smooth
  281. part_8.Size = Vector3.new(0.721, 0.721, 0.721)
  282. part_8.CFrame = CFrame.new(30.667, 5.035, -196.193) * CFrame.Angles(0, 1.5707963705063, 0)
  283. part_8.BrickColor = BrickColor.new("Grime")
  284. part_8.Friction = 0.3
  285. part_8.BottomSurface = Enum.SurfaceType.Weld
  286.  
  287. mesh_9.Scale = Vector3.new(0.406, 0.135, 0.406)
  288. mesh_9.MeshType = Enum.MeshType.Wedge
  289.  
  290. part_9.Anchored = true
  291. part_9.FormFactor = Enum.FormFactor.Custom
  292. part_9.FrontSurface = Enum.SurfaceType.Weld
  293. part_9.Size = Vector3.new(0.721, 0.721, 0.721)
  294. part_9.CFrame = CFrame.new(30.911, 5.133, -197.022) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  295. part_9.BrickColor = BrickColor.new("Really black")
  296. part_9.Friction = 0.3
  297.  
  298. mesh_10.Scale = Vector3.new(0.271, 0.406, 0.135)
  299.  
  300. parttopart_strong_joint.Name = "Part-to-Part Strong Joint"
  301. parttopart_strong_joint.C1 = CFrame.new(2, 0, 1) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  302. parttopart_strong_joint.Part0 = part_9
  303. parttopart_strong_joint.C0 = CFrame.new(-2, -0.5, 3.5) * CFrame.Angles(-0, 0, -0)
  304.  
  305. part_10.Anchored = true
  306. part_10.FormFactor = Enum.FormFactor.Custom
  307. part_10.FrontSurface = Enum.SurfaceType.Weld
  308. part_10.Size = Vector3.new(0.781, 0.488, 0.293)
  309. part_10.CFrame = CFrame.new(30.911, 4.743, -196.193) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  310. part_10.BrickColor = BrickColor.new("Grime")
  311. part_10.Friction = 0.3
  312.  
  313.  
  314. part_11.Anchored = true
  315. part_11.FormFactor = Enum.FormFactor.Custom
  316. part_11.FrontSurface = Enum.SurfaceType.Weld
  317. part_11.Size = Vector3.new(1.022, 1.022, 1.022)
  318. part_11.CFrame = CFrame.new(30.911, 5.157, -196.242) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  319. part_11.BrickColor = BrickColor.new("Really black")
  320. part_11.Friction = 0.3
  321.  
  322. mesh_12.Scale = Vector3.new(0.191, 0.334, 1.432)
  323.  
  324. part_12.Anchored = true
  325. part_12.FormFactor = Enum.FormFactor.Custom
  326. part_12.FrontSurface = Enum.SurfaceType.Weld
  327. part_12.Size = Vector3.new(0.858, 0.858, 0.858)
  328. part_12.CFrame = CFrame.new(30.911, 5.255, -194.363) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  329. part_12.BrickColor = BrickColor.new("Really black")
  330. part_12.Friction = 0.3
  331.  
  332. mesh_13.Scale = Vector3.new(0.205, 2.671, 0.153)
  333.  
  334. part_13.Anchored = true
  335. part_13.FormFactor = Enum.FormFactor.Custom
  336. part_13.FrontSurface = Enum.SurfaceType.Weld
  337. part_13.Size = Vector3.new(0.368, 0.368, 0.368)
  338. part_13.CFrame = CFrame.new(30.911, 5.353, -196.095) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  339. part_13.BrickColor = BrickColor.new("Really black")
  340. part_13.Friction = 0.3
  341.  
  342. mesh_14.Scale = Vector3.new(0.531, 0.133, 2.388)
  343.  
  344. part_14.Anchored = true
  345. part_14.FormFactor = Enum.FormFactor.Custom
  346. part_14.FrontSurface = Enum.SurfaceType.Weld
  347. part_14.Size = Vector3.new(0.858, 0.858, 0.858)
  348. part_14.CFrame = CFrame.new(30.911, 5.109, -194.754) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  349. part_14.BrickColor = BrickColor.new("Really black")
  350. part_14.Friction = 0.3
  351.  
  352. mesh_15.Scale = Vector3.new(0.205, 0.966, 0.153)
  353.  
  354. part_15.Anchored = true
  355. part_15.FormFactor = Enum.FormFactor.Custom
  356. part_15.FrontSurface = Enum.SurfaceType.Weld
  357. part_15.Size = Vector3.new(0.721, 0.721, 0.721)
  358. part_15.CFrame = CFrame.new(30.911, 5.182, -194.193) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  359. part_15.BrickColor = BrickColor.new("Really black")
  360. part_15.Friction = 0.3
  361.  
  362. mesh_16.Scale = Vector3.new(0.189, 0.406, 0.406)
  363.  
  364. part_16.Anchored = true
  365. part_16.FormFactor = Enum.FormFactor.Custom
  366. part_16.FrontSurface = Enum.SurfaceType.Weld
  367. part_16.Size = Vector3.new(0.721, 0.721, 0.721)
  368. part_16.CFrame = CFrame.new(31.155, 5.035, -196.193) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  369. part_16.BrickColor = BrickColor.new("Grime")
  370. part_16.Friction = 0.3
  371.  
  372. mesh_17.Scale = Vector3.new(0.406, 0.135, 0.406)
  373.  
  374. part_17.Anchored = true
  375. part_17.FormFactor = Enum.FormFactor.Custom
  376. part_17.FrontSurface = Enum.SurfaceType.Weld
  377. part_17.Size = Vector3.new(0.368, 0.368, 0.368)
  378. part_17.CFrame = CFrame.new(31.044, 5.338, -195.266) * CFrame.Angles(-3.1415927410126, 0, 2.6179938316345)
  379. part_17.BrickColor = BrickColor.new("Really black")
  380. part_17.Friction = 0.3
  381.  
  382. mesh_18.Scale = Vector3.new(0.531, 0.053, 0.239)
  383.  
  384. part_18.Anchored = true
  385. part_18.FormFactor = Enum.FormFactor.Custom
  386. part_18.FrontSurface = Enum.SurfaceType.Weld
  387. part_18.Size = Vector3.new(1.022, 1.022, 1.022)
  388. part_18.CFrame = CFrame.new(30.911, 5.084, -195.339) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  389. part_18.BrickColor = BrickColor.new("Really black")
  390. part_18.Friction = 0.3
  391.  
  392. mesh_19.Scale = Vector3.new(0.191, 0.191, 0.334)
  393.  
  394. part_19.Anchored = true
  395. part_19.FormFactor = Enum.FormFactor.Custom
  396. part_19.TopSurface = Enum.SurfaceType.Smooth
  397. part_19.Size = Vector3.new(0.721, 0.721, 0.721)
  398. part_19.CFrame = CFrame.new(30.911, 5.328, -197.022) * CFrame.Angles(-0, 0, -0)
  399. part_19.BrickColor = BrickColor.new("Really black")
  400. part_19.Friction = 0.3
  401. part_19.BottomSurface = Enum.SurfaceType.Weld
  402.  
  403. mesh_20.Scale = Vector3.new(0.271, 0.135, 0.135)
  404. mesh_20.MeshType = Enum.MeshType.Wedge
  405.  
  406. parttopart_strong_joint_2.Name = "Part-to-Part Strong Joint"
  407. parttopart_strong_joint_2.C1 = CFrame.new(2, -3.5, -4) * CFrame.Angles(-0, -1.5707963705063, 0)
  408. parttopart_strong_joint_2.Part0 = part_19
  409. parttopart_strong_joint_2.C0 = CFrame.new(-3, -1, 3) * CFrame.Angles(-0, 0, -0)
  410.  
  411. part_20.Anchored = true
  412. part_20.FormFactor = Enum.FormFactor.Custom
  413. part_20.FrontSurface = Enum.SurfaceType.Weld
  414. part_20.Size = Vector3.new(0.721, 0.721, 0.721)
  415. part_20.CFrame = CFrame.new(30.911, 5.353, -193.315) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  416. part_20.BrickColor = BrickColor.new("Really black")
  417. part_20.Friction = 0.3
  418.  
  419. mesh_21.Scale = Vector3.new(0.095, 0.203, 0.135)
  420.  
  421. part_21.Anchored = true
  422. part_21.FormFactor = Enum.FormFactor.Custom
  423. part_21.FrontSurface = Enum.SurfaceType.Weld
  424. part_21.Size = Vector3.new(1.022, 1.022, 1.022)
  425. part_21.CFrame = CFrame.new(30.964, 5.401, -196.925) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  426. part_21.BrickColor = BrickColor.new("Really black")
  427. part_21.Friction = 0.3
  428.  
  429. mesh_22.Scale = Vector3.new(0.029, 0.048, 0.095)
  430.  
  431. part_22.Anchored = true
  432. part_22.FormFactor = Enum.FormFactor.Custom
  433. part_22.FrontSurface = Enum.SurfaceType.Weld
  434. part_22.Size = Vector3.new(0.858, 0.858, 0.858)
  435. part_22.CFrame = CFrame.new(30.911, 5.255, -193.046) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  436. part_22.BrickColor = BrickColor.new("Really black")
  437. part_22.Friction = 0.3
  438.  
  439. mesh_23.Scale = Vector3.new(0.227, 0.398, 0.17)
  440.  
  441. part_23.Anchored = true
  442. part_23.FormFactor = Enum.FormFactor.Custom
  443. part_23.FrontSurface = Enum.SurfaceType.Weld
  444. part_23.Size = Vector3.new(0.368, 0.368, 0.368)
  445. part_23.CFrame = CFrame.new(30.911, 5.353, -196.803) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  446. part_23.BrickColor = BrickColor.new("Really black")
  447. part_23.Friction = 0.3
  448.  
  449. mesh_24.Scale = Vector3.new(0.531, 0.133, 0.929)
  450.  
  451. part_24.Anchored = true
  452. part_24.FormFactor = Enum.FormFactor.Custom
  453. part_24.TopSurface = Enum.SurfaceType.Smooth
  454. part_24.Material = Enum.Material.Metal
  455. part_24.Size = Vector3.new(0.4, 0.4, 0.2)
  456. part_24.CFrame = CFrame.new(30.7, 5.105, -195.6) * CFrame.Angles(0.78410416841507, 1.5703080892563, -1.4399670362473)
  457. part_24.BrickColor = BrickColor.new("Dark stone grey")
  458. part_24.Friction = 0.3
  459. part_24.BottomSurface = Enum.SurfaceType.Smooth
  460.  
  461. parttopart_strong_joint_3.Name = "Part-to-Part Strong Joint"
  462. parttopart_strong_joint_3.C1 = CFrame.new(-12, -3.5, -12) * CFrame.Angles(-1.5707963705063, 0, 1.5707963705063)
  463. parttopart_strong_joint_3.Part0 = part_24
  464. parttopart_strong_joint_3.C0 = CFrame.new(-12, 0.5, 12) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  465.  
  466. parttopart_strong_joint_4.Name = "Part-to-Part Strong Joint"
  467. parttopart_strong_joint_4.C1 = CFrame.new(3.5, -1.5, -18.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  468. parttopart_strong_joint_4.Part0 = part_24
  469. parttopart_strong_joint_4.C0 = CFrame.new(-10, -1.5, 1.5) * CFrame.Angles(-0, 0, -0)
  470.  
  471. parttopart_strong_joint_5.Name = "Part-to-Part Strong Joint"
  472. parttopart_strong_joint_5.C1 = CFrame.new(-3.5, -0.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  473. parttopart_strong_joint_5.Part0 = part_24
  474. parttopart_strong_joint_5.C0 = CFrame.new(-1, 1.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  475.  
  476. parttopart_strong_joint_6.Name = "Part-to-Part Strong Joint"
  477. parttopart_strong_joint_6.C1 = CFrame.new(5.5, 1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0)
  478. parttopart_strong_joint_6.Part0 = part_24
  479. parttopart_strong_joint_6.C0 = CFrame.new(1, -1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0)
  480.  
  481. parttopart_strong_joint_7.Name = "Part-to-Part Strong Joint"
  482. parttopart_strong_joint_7.C1 = CFrame.new(7, -2, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  483. parttopart_strong_joint_7.Part0 = part_24
  484. parttopart_strong_joint_7.C0 = CFrame.new(-1, -1.5, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  485.  
  486. parttopart_strong_joint_8.Name = "Part-to-Part Strong Joint"
  487. parttopart_strong_joint_8.C1 = CFrame.new(1.5, -0.5, 1.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  488. parttopart_strong_joint_8.Part0 = part_24
  489. parttopart_strong_joint_8.C0 = CFrame.new(-1.5, 1.5, 0.3) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  490.  
  491. parttopart_strong_joint_9.Name = "Part-to-Part Strong Joint"
  492. parttopart_strong_joint_9.C1 = CFrame.new(5.3, 0.1, 0.2) * CFrame.Angles(1.5707963705063, 0, -0)
  493. parttopart_strong_joint_9.Part0 = part_24
  494. parttopart_strong_joint_9.C0 = CFrame.new(2, -1.5, 0.2) * CFrame.Angles(1.5707963705063, 0, -0)
  495.  
  496. part_25.Anchored = true
  497. part_25.FormFactor = Enum.FormFactor.Custom
  498. part_25.TopSurface = Enum.SurfaceType.Smooth
  499. part_25.Material = Enum.Material.Metal
  500. part_25.Size = Vector3.new(0.6, 0.2, 0.6)
  501. part_25.CFrame = CFrame.new(30.9, 4.805, -195.7) * CFrame.Angles(0.78410416841507, 1.5703080892563, -1.4399670362473)
  502. part_25.BrickColor = BrickColor.new("Dark stone grey")
  503. part_25.Friction = 0.3
  504. part_25.BottomSurface = Enum.SurfaceType.Smooth
  505.  
  506. parttopart_strong_joint_10.Name = "Part-to-Part Strong Joint"
  507. parttopart_strong_joint_10.C1 = CFrame.new(-12, -3.5, -12) * CFrame.Angles(-1.5707963705063, 0, 1.5707963705063)
  508. parttopart_strong_joint_10.Part0 = part_25
  509. parttopart_strong_joint_10.C0 = CFrame.new(-12, 0.5, 12) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  510.  
  511. parttopart_strong_joint_11.Name = "Part-to-Part Strong Joint"
  512. parttopart_strong_joint_11.C1 = CFrame.new(3.5, -1.5, -18.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  513. parttopart_strong_joint_11.Part0 = part_25
  514. parttopart_strong_joint_11.C0 = CFrame.new(-10, -1.5, 1.5) * CFrame.Angles(-0, 0, -0)
  515.  
  516. parttopart_strong_joint_12.Name = "Part-to-Part Strong Joint"
  517. parttopart_strong_joint_12.C1 = CFrame.new(-3.5, -0.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  518. parttopart_strong_joint_12.Part0 = part_25
  519. parttopart_strong_joint_12.C0 = CFrame.new(-1, 1.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  520.  
  521. parttopart_strong_joint_13.Name = "Part-to-Part Strong Joint"
  522. parttopart_strong_joint_13.C1 = CFrame.new(5.5, 1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0)
  523. parttopart_strong_joint_13.Part0 = part_25
  524. parttopart_strong_joint_13.C0 = CFrame.new(1, -1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0)
  525.  
  526. parttopart_strong_joint_14.Name = "Part-to-Part Strong Joint"
  527. parttopart_strong_joint_14.C1 = CFrame.new(7, -2, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  528. parttopart_strong_joint_14.Part0 = part_25
  529. parttopart_strong_joint_14.C0 = CFrame.new(-1, -1.5, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  530.  
  531. parttopart_strong_joint_15.Name = "Part-to-Part Strong Joint"
  532. parttopart_strong_joint_15.C1 = CFrame.new(1.5, -0.5, 1.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  533. parttopart_strong_joint_15.Part0 = part_25
  534. parttopart_strong_joint_15.C0 = CFrame.new(-1.5, 1.5, 0.3) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  535.  
  536. parttopart_strong_joint_16.Name = "Part-to-Part Strong Joint"
  537. parttopart_strong_joint_16.C1 = CFrame.new(5.3, 0.1, 0.2) * CFrame.Angles(1.5707963705063, 0, -0)
  538. parttopart_strong_joint_16.Part0 = part_25
  539. parttopart_strong_joint_16.C0 = CFrame.new(2, -1.5, 0.2) * CFrame.Angles(1.5707963705063, 0, -0)
  540.  
  541. part_26.Anchored = true
  542. part_26.FormFactor = Enum.FormFactor.Custom
  543. part_26.TopSurface = Enum.SurfaceType.Smooth
  544. part_26.Material = Enum.Material.Metal
  545. part_26.Size = Vector3.new(0.4, 0.4, 0.2)
  546. part_26.CFrame = CFrame.new(31.1, 5.105, -195.6) * CFrame.Angles(0.78410416841507, 1.5703080892563, -1.4399670362473)
  547. part_26.BrickColor = BrickColor.new("Dark stone grey")
  548. part_26.Friction = 0.3
  549. part_26.BottomSurface = Enum.SurfaceType.Smooth
  550.  
  551. parttopart_strong_joint_17.Name = "Part-to-Part Strong Joint"
  552. parttopart_strong_joint_17.C1 = CFrame.new(-12, -3.5, -12) * CFrame.Angles(-1.5707963705063, 0, 1.5707963705063)
  553. parttopart_strong_joint_17.Part0 = part_26
  554. parttopart_strong_joint_17.C0 = CFrame.new(-12, 0.5, 12) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  555.  
  556. parttopart_strong_joint_18.Name = "Part-to-Part Strong Joint"
  557. parttopart_strong_joint_18.C1 = CFrame.new(3.5, -1.5, -18.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  558. parttopart_strong_joint_18.Part0 = part_26
  559. parttopart_strong_joint_18.C0 = CFrame.new(-10, -1.5, 1.5) * CFrame.Angles(-0, 0, -0)
  560.  
  561. parttopart_strong_joint_19.Name = "Part-to-Part Strong Joint"
  562. parttopart_strong_joint_19.C1 = CFrame.new(-3.5, -0.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  563. parttopart_strong_joint_19.Part0 = part_26
  564. parttopart_strong_joint_19.C0 = CFrame.new(-1, 1.5, 0.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  565.  
  566. parttopart_strong_joint_20.Name = "Part-to-Part Strong Joint"
  567. parttopart_strong_joint_20.C1 = CFrame.new(5.5, 1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0)
  568. parttopart_strong_joint_20.Part0 = part_26
  569. parttopart_strong_joint_20.C0 = CFrame.new(1, -1.5, 0.5) * CFrame.Angles(1.5707963705063, 0, -0)
  570.  
  571. parttopart_strong_joint_21.Name = "Part-to-Part Strong Joint"
  572. parttopart_strong_joint_21.C1 = CFrame.new(7, -2, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  573. parttopart_strong_joint_21.Part0 = part_26
  574. parttopart_strong_joint_21.C0 = CFrame.new(-1, -1.5, -0.5) * CFrame.Angles(-0, -1.5707963705063, 0)
  575.  
  576. parttopart_strong_joint_22.Name = "Part-to-Part Strong Joint"
  577. parttopart_strong_joint_22.C1 = CFrame.new(1.5, -0.5, 1.5) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  578. parttopart_strong_joint_22.Part0 = part_26
  579. parttopart_strong_joint_22.C0 = CFrame.new(-1.5, 1.5, 0.3) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  580.  
  581. parttopart_strong_joint_23.Name = "Part-to-Part Strong Joint"
  582. parttopart_strong_joint_23.C1 = CFrame.new(5.3, 0.1, 0.2) * CFrame.Angles(1.5707963705063, 0, -0)
  583. parttopart_strong_joint_23.Part0 = part_26
  584. parttopart_strong_joint_23.C0 = CFrame.new(2, -1.5, 0.2) * CFrame.Angles(1.5707963705063, 0, -0)
  585.  
  586. part_27.Anchored = true
  587. part_27.FormFactor = Enum.FormFactor.Custom
  588. part_27.LeftSurface = Enum.SurfaceType.Weld
  589. part_27.TopSurface = Enum.SurfaceType.Weld
  590. part_27.FrontSurface = Enum.SurfaceType.Weld
  591. part_27.Material = Enum.Material.Metal
  592. part_27.Size = Vector3.new(0.6, 0.6, 1)
  593. part_27.RightSurface = Enum.SurfaceType.Weld
  594. part_27.BackSurface = Enum.SurfaceType.Weld
  595. part_27.CFrame = CFrame.new(30.9, 4.404, -195.7) * CFrame.Angles(-3.1415543556213, 6.8804189368166e-007, -1.2319006600592e-005)
  596. part_27.BrickColor = BrickColor.new("Dark stone grey")
  597. part_27.Friction = 0.3
  598. part_27.BottomSurface = Enum.SurfaceType.Weld
  599.  
  600.  
  601. part_28.Anchored = true
  602. part_28.FormFactor = Enum.FormFactor.Symmetric
  603. part_28.FrontSurface = Enum.SurfaceType.Weld
  604. part_28.Size = Vector3.new(0.195, 0.488, 0.146)
  605. part_28.CFrame = CFrame.new(30.911, 5.035, -198.169) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  606. part_28.BrickColor = BrickColor.new("Reddish brown")
  607. part_28.Friction = 0.3
  608.  
  609.  
  610. part_29.Anchored = true
  611. part_29.FormFactor = Enum.FormFactor.Symmetric
  612. part_29.FrontSurface = Enum.SurfaceType.Weld
  613. part_29.Size = Vector3.new(0.195, 0.049, 0.829)
  614. part_29.CFrame = CFrame.new(30.911, 5.255, -197.681) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  615. part_29.BrickColor = BrickColor.new("Reddish brown")
  616. part_29.Friction = 0.3
  617.  
  618.  
  619. part_30.Anchored = true
  620. part_30.FormFactor = Enum.FormFactor.Symmetric
  621. part_30.FrontSurface = Enum.SurfaceType.Weld
  622. part_30.Size = Vector3.new(0.195, 0.146, 0.683)
  623. part_30.CFrame = CFrame.new(30.911, 4.962, -197.754) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  624. part_30.BrickColor = BrickColor.new("Reddish brown")
  625. part_30.Friction = 0.3
  626.  
  627.  
  628. part_31.Anchored = true
  629. part_31.FormFactor = Enum.FormFactor.Symmetric
  630. part_31.TopSurface = Enum.SurfaceType.Smooth
  631. part_31.Size = Vector3.new(0.195, 0.098, 0.098)
  632. part_31.CFrame = CFrame.new(30.911, 4.84, -198.047) * CFrame.Angles(-1.5707963705063, 0, -3.1415927410126)
  633. part_31.BrickColor = BrickColor.new("Reddish brown")
  634. part_31.Friction = 0.3
  635. part_31.BottomSurface = Enum.SurfaceType.Weld
  636.  
  637. mesh_29.MeshType = Enum.MeshType.Wedge
  638.  
  639. parttopart_strong_joint_24.Name = "Part-to-Part Strong Joint"
  640. parttopart_strong_joint_24.C1 = CFrame.new(2, -3.5, -4) * CFrame.Angles(-0, -1.5707963705063, 0)
  641. parttopart_strong_joint_24.Part0 = part_31
  642. parttopart_strong_joint_24.C0 = CFrame.new(-3, -1, 3) * CFrame.Angles(-0, 0, -0)
  643.  
  644. part_32.Anchored = true
  645. part_32.FormFactor = Enum.FormFactor.Symmetric
  646. part_32.TopSurface = Enum.SurfaceType.Smooth
  647. part_32.Size = Vector3.new(0.195, 0.049, 0.049)
  648. part_32.CFrame = CFrame.new(30.911, 5.255, -197.242) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  649. part_32.BrickColor = BrickColor.new("Reddish brown")
  650. part_32.Friction = 0.3
  651. part_32.BottomSurface = Enum.SurfaceType.Weld
  652.  
  653. mesh_30.MeshType = Enum.MeshType.Wedge
  654.  
  655. parttopart_strong_joint_25.Name = "Part-to-Part Strong Joint"
  656. parttopart_strong_joint_25.C1 = CFrame.new(2, -3.5, -4) * CFrame.Angles(-0, -1.5707963705063, 0)
  657. parttopart_strong_joint_25.Part0 = part_32
  658. parttopart_strong_joint_25.C0 = CFrame.new(-3, -1, 3) * CFrame.Angles(-0, 0, -0)
  659.  
  660. part_33.Anchored = true
  661. part_33.FormFactor = Enum.FormFactor.Symmetric
  662. part_33.FrontSurface = Enum.SurfaceType.Weld
  663. part_33.Size = Vector3.new(0.195, 0.39, 0.146)
  664. part_33.CFrame = CFrame.new(30.911, 4.953, -197.387) * CFrame.Angles(-2.6179938316345, 0, -3.1415927410126)
  665. part_33.BrickColor = BrickColor.new("Reddish brown")
  666. part_33.Friction = 0.3
  667.  
  668.  
  669. part_34.Anchored = true
  670. part_34.FormFactor = Enum.FormFactor.Symmetric
  671. part_34.FrontSurface = Enum.SurfaceType.Weld
  672. part_34.Size = Vector3.new(0.195, 0.195, 0.293)
  673. part_34.CFrame = CFrame.new(30.911, 5.133, -197.217) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  674. part_34.BrickColor = BrickColor.new("Reddish brown")
  675. part_34.Friction = 0.3
  676.  
  677.  
  678. part_35.Anchored = true
  679. part_35.FormFactor = Enum.FormFactor.Custom
  680. part_35.LeftSurface = Enum.SurfaceType.Weld
  681. part_35.TopSurface = Enum.SurfaceType.Weld
  682. part_35.FrontSurface = Enum.SurfaceType.Weld
  683. part_35.Material = Enum.Material.Metal
  684. part_35.Size = Vector3.new(0.2, 2.2, 0.2)
  685. part_35.RightSurface = Enum.SurfaceType.Weld
  686. part_35.BackSurface = Enum.SurfaceType.Weld
  687. part_35.CFrame = CFrame.new(30.1, 3.324, -196.7) * CFrame.Angles(-2.356155872345, 7.8976239592521e-007, 0.52358639240265)
  688. part_35.BrickColor = BrickColor.new("Dark stone grey")
  689. part_35.Friction = 0.3
  690. part_35.BottomSurface = Enum.SurfaceType.Weld
  691.  
  692.  
  693. part_36.Anchored = true
  694. part_36.FormFactor = Enum.FormFactor.Custom
  695. part_36.LeftSurface = Enum.SurfaceType.Weld
  696. part_36.TopSurface = Enum.SurfaceType.Weld
  697. part_36.FrontSurface = Enum.SurfaceType.Weld
  698. part_36.Material = Enum.Material.Metal
  699. part_36.Size = Vector3.new(0.2, 1.4, 0.2)
  700. part_36.RightSurface = Enum.SurfaceType.Weld
  701. part_36.BackSurface = Enum.SurfaceType.Weld
  702. part_36.CFrame = CFrame.new(30.9, 3.464, -196.5) * CFrame.Angles(1.5708087682724, -3.8449161365861e-005, -1.5707974433899)
  703. part_36.BrickColor = BrickColor.new("Dark stone grey")
  704. part_36.Friction = 0.3
  705. part_36.BottomSurface = Enum.SurfaceType.Weld
  706.  
  707. local gun = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  708. local gungui = Instance.new("ScreenGui", Game.Players.LocalPlayer.PlayerGui)
  709. local clips = Instance.new("Frame", gungui)
  710. local textlabel = Instance.new("TextLabel", clips)
  711. local ammo = Instance.new("Frame", gungui)
  712. local textlabel_2 = Instance.new("TextLabel", ammo)
  713.  
  714. gun.Name = "GUN"
  715.  
  716. gungui.Name = "GunGui"
  717.  
  718. clips.Size = UDim2.new(0, 100, 0, 45)
  719. clips.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  720. clips.Name = "Clips"
  721. clips.Style = Enum.FrameStyle.RobloxRound
  722. clips.Position = UDim2.new(0.5, -50, 1, -200)
  723. clips.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059)
  724.  
  725. textlabel.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059)
  726. textlabel.BackgroundTransparency = 1
  727. textlabel.Size = UDim2.new(1, 0, 1, 0)
  728. textlabel.TextColor3 = Color3.new(1, 1, 1)
  729. textlabel.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  730. textlabel.Text = "Battery: 100"
  731. textlabel.FontSize = Enum.FontSize.Size11
  732.  
  733. ammo.Size = UDim2.new(0, 100, 0, 45)
  734. ammo.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  735. ammo.Name = "Ammo"
  736. ammo.Style = Enum.FrameStyle.RobloxRound
  737. ammo.Position = UDim2.new(0.5, -50, 1, -155)
  738. ammo.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059)
  739.  
  740. textlabel_2.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059)
  741. textlabel_2.BackgroundTransparency = 1
  742. textlabel_2.Size = UDim2.new(1, 0, 1, 0)
  743. textlabel_2.TextColor3 = Color3.new(1, 1, 1)
  744. textlabel_2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  745. textlabel_2.Text = "Charges: 15"
  746. textlabel_2.FontSize = Enum.FontSize.Size11
  747.  
  748. thetool=Vehicle.GunIgnore.Barrel
  749. local wc = game.Workspace:GetChildren()
  750. for i = 1, #wc do
  751.     if wc[i].Name == "Vehicle" then
  752.         if wc[i].Seat:findFirstChild("SeatWeld") then
  753.             if wc[i].Seat["SeatWeld"].Part1.Parent == game.Players.LocalPlayer.Character then
  754.                 thetool = wc[i].GunIgnore.Barrel
  755.             end
  756.         end
  757.     end
  758. end
  759. -------------------------------------DEFULT STUFF, NEEDED TO BE LIKE THIS, IF YOU CHANGE THIS LITTLE PART, YOU BREACK IT
  760. equiped=false
  761. reloading=false
  762. stopper=false
  763. down=false
  764. -------------------------------------GAMEINFO
  765. Team=BrickColor.new("Bright red")
  766. TeamsAliies=BrickColor.new("Bright green")
  767. -------------------------------------GUNINFO
  768. OriginalToolName=gun.Parent.Name
  769. RayLength=3000
  770. MAXclips=thetool.MAXclips.Value
  771. Firerate=0.065
  772. BaseDamage=20
  773. VehicleDamage=35
  774. MAXammo=200
  775. reloadinterval=7/MAXammo
  776. Spread=0.07
  777. threebb=false
  778. auto=true
  779. shot=false
  780. ShotFrom=Vector3.new(-1.5,0.6,0)
  781. clips=thetool.Clips
  782. ammo=thetool.Ammo
  783. Cursor="rbxasset://textures\\GunCursor.png"
  784. ReloadCursor="rbxasset://textures\\GunWaitCursor.png"
  785. -------------------------------------RAYINFO
  786. Bullet=Instance.new("Part")
  787. Bullet.Name="Bullet"
  788. Bullet.BrickColor=BrickColor.new("Bright yellow")
  789. Bullet.Anchored=true
  790. Bullet.CanCollide=false
  791. Bullet.Locked=true
  792. Bullet.Size=Vector3.new(1,1,1)
  793. Bullet.Transparency=.65
  794. Bullet.formFactor=0
  795. Bullet.TopSurface=0
  796. Bullet.BottomSurface=0
  797. mesh=Instance.new("SpecialMesh")
  798. mesh.Parent=Bullet
  799. mesh.MeshType="Brick"
  800. mesh.Name="Mesh"
  801. mesh.Scale=Vector3.new(.15,.15,1)
  802. -------------------------------------REFERENCES
  803. player=game.Players.LocalPlayer
  804. -------------------------------------SCRIPT
  805.  
  806. function flash()
  807.     if equiped==true then
  808.         if clips.Value==0 then
  809.             for i=1, 5 do
  810.                 player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 1)
  811.                 wait(0.05)
  812.                 if reloading==true then
  813.                     player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255)
  814.                     break
  815.                 end
  816.                 player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 0, 0)
  817.                 wait(0.05)
  818.                 if reloading==true then
  819.                     player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255)
  820.                     break
  821.                 end
  822.             end
  823.         elseif ammo.Value==0 then
  824.             for i=1, 5 do
  825.                 player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 1)
  826.                 wait(0.05)
  827.                 if reloading==true then
  828.                     player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255)
  829.                     break
  830.                 end
  831.                 player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 0, 0)
  832.                 wait(0.05)
  833.                 if reloading==true then
  834.                     player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255)
  835.                     break
  836.                 end
  837.             end
  838.         end
  839.     end
  840. end
  841.  
  842. function check()
  843.     if equiped==true then
  844.         if clips.Value>0 then
  845.             player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value..""
  846.             if clips.Value>MAXclips/2 then
  847.                 player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 1)
  848.             elseif clips.Value>MAXclips/4 and clips.Value<=MAXclips/2 then
  849.                 player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 0)
  850.             elseif clips.Value<=MAXclips/4 then
  851.                 player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 0, 0)
  852.             end
  853.         elseif clips.Value<=0 then
  854.             clips.Value=0
  855.             player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value..""
  856.             player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 0, 0)
  857.         end
  858.         if ammo.Value>0 then
  859.             player.PlayerGui.GunGui.Ammo.TextLabel.Text="Ammo: "..ammo.Value..""
  860.             if ammo.Value>MAXammo/2 then
  861.                 player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 1)
  862.             elseif ammo.Value<=MAXammo/2 and ammo.Value>MAXammo/4 then
  863.                 player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 0)
  864.             elseif ammo.Value<=MAXammo/4 then
  865.                 player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 0, 0)
  866.             end
  867.         elseif ammo.Value<=0 then
  868.             ammo.Value=0
  869.             player.PlayerGui.GunGui.Ammo.TextLabel.Text="Ammo: "..ammo.Value..""
  870.             player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 0, 0)
  871.         end
  872.     end
  873. end
  874.  
  875. function onClipsChanged()
  876.     if clips.Value>0 and equiped==true and reloading==true then
  877.         player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value..""
  878.         player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255)
  879.     elseif clips.Value>0 and equiped==true then
  880.         player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value..""
  881.         if clips.Value>MAXclips/2 then
  882.             player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 1)
  883.         elseif clips.Value>MAXclips/4 and clips.Value<=MAXclips/2 then
  884.             player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 1, 0)
  885.         elseif clips.Value<MAXclips/4 then
  886.             player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(1, 0, 0)
  887.         end
  888.     elseif clips.Value<=0 and equiped==true then
  889.         clips.Value=0
  890.         player.PlayerGui.GunGui.Clips.TextLabel.Text="Clips: "..clips.Value..""
  891.         player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 0, 0)
  892.     end
  893. end
  894. thetool.Clips.Changed:connect(onClipsChanged)
  895.  
  896. function reload(mouse)
  897.     if ammo.Value<MAXammo and clips.Value>0 then
  898.         mouse.Icon=ReloadCursor
  899.         reloading=true
  900.         player.PlayerGui.GunGui.Clips.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255)
  901.         player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 128/255, 128/255)
  902.         player.PlayerGui.GunGui.Ammo.TextLabel.Text="Reloading"
  903.         for i=1,100 do
  904.             wait(0.07)
  905.             if equiped==false then
  906.                 break
  907.             end
  908.         end
  909.         if equiped~=false then
  910.             clips.Value=clips.Value-1
  911.             ammo.Value=MAXammo
  912.             check()
  913.         end
  914.         reloading=false
  915.         if clips.Value<=0 then
  916.             clips.Value=0
  917.         end
  918.         mouse.Icon=Cursor
  919.     elseif clips.Value==0 then
  920.         flash()
  921.     end
  922. end
  923.  
  924. function onAmmoChanged()
  925.     if ammo.Value>0 and equiped==true then
  926.         player.PlayerGui.GunGui.Ammo.TextLabel.Text="Ammo: "..ammo.Value..""
  927.         if ammo.Value>MAXammo/2 then
  928.             player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 1)
  929.         elseif ammo.Value<=MAXammo/2 and ammo.Value>MAXammo/4 then
  930.             player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 1, 0)
  931.         elseif ammo.Value<=MAXammo/4 then
  932.             player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(1, 0, 0)
  933.         end
  934.     elseif ammo.Value<=0 then
  935.         ammo.Value=0
  936.         player.PlayerGui.GunGui.Ammo.TextLabel.Text="Ammo: "..ammo.Value..""
  937.         player.PlayerGui.GunGui.Ammo.TextLabel.TextColor3=Color3.new(128/255, 0, 0)
  938.     end
  939. end
  940. thetool.Ammo.Changed:connect(onAmmoChanged)
  941.  
  942.  function raycast(startp, endp, ign)
  943.     local vec=(endp-startp)
  944.     if vec.magnitude<1000 then
  945.         local hit,pos=game.Workspace:FindPartOnRay(Ray.new(startp,vec),ign)
  946.         if hit and pos then
  947.             if hit.Parent.className=="Tool" or hit.Parent.className=="Hat" then
  948.                 if hit.Parent.Parent ~= nil then
  949.                     if hit.Parent.Parent:findFirstChild("Humanoid")~=nil then
  950.                         return hit.Parent, pos
  951.                     end
  952.                 end
  953.             elseif string.lower(hit.Name)=="glass" then
  954.                 local vec=(endp-pos)
  955.                 hit,pos=raycast(pos,vec,ign)
  956.             elseif string.lower(hit.Name)=="water" then
  957.                 local vec=(endp-pos)
  958.                 hit,pos=raycast(pos,vec,ign)
  959.             elseif hit.Transparency==1 or hit.Name=="Bullet" or hit.Name=="BulletTexture" then
  960.                 local vec=(endp-pos)
  961.                 hit,pos=raycast(pos,vec,hit)
  962.             end
  963.         end
  964.         return hit,pos
  965.     end
  966.     return nil
  967. end
  968.  
  969. function tagHumanoid(humanoid)
  970.     local plr=game.Players:playerFromCharacter(thetool.Parent)
  971.     local enplr = game.Players:GetPlayerFromCharacter(humanoid.Parent)
  972.     if enplr == nil then
  973.         humanoid.Health = humanoid.Health - BaseDamage
  974.     end
  975.     if plr~=nil then
  976.         local tag=Instance.new("ObjectValue")
  977.         tag.Value=plr
  978.         tag.Name="creator"
  979.         tag.Parent=humanoid
  980.         delay(0.2,function()
  981.             if tag~=nil then
  982.                 tag.Parent=nil
  983.             end
  984.         end)
  985.     end
  986. end
  987.  
  988. function onKeyDown(key,mouse)
  989.     key=key:lower()
  990.     if key=="r" and not reloading then
  991.         reload(mouse)
  992.     elseif key=="t" then
  993.         stopper=false
  994.         reloading=false
  995.         thetool=FindPlane()
  996.     end
  997. end
  998.  
  999. function movecframe(p,pos)
  1000.     p.Parent=game.Lighting
  1001.     p.Position=pos
  1002.     p.Parent=game.Workspace
  1003. end
  1004.  
  1005. function SameTeam(killer, victim)
  1006.     if game:findFirstChild("Teams")~=nil then
  1007.         if killer ~= victim then
  1008.             if killer.Neutral==true or victim.Neutral then
  1009.                 return false
  1010.             elseif killer.TeamColor==Team and victim.TeamColor==TeamsAliies then
  1011.                 return true
  1012.             elseif killer.TeamColor==TeamsAliies and victim.TeamColor==Team then
  1013.                 return true
  1014.             elseif killer.TeamColor == victim.TeamColor then
  1015.                 return true
  1016.             else
  1017.                 return false
  1018.             end
  1019.             return false
  1020.         else
  1021.             return true
  1022.         end
  1023.         return false
  1024.     else
  1025.         return false
  1026.     end
  1027. end
  1028.  
  1029. function takeDamage(dm, pl)
  1030.     if pl:findFirstChild("Armor")~=nil then
  1031.         sh=pl:findFirstChild("Armor")
  1032.         if sh.Value==0 then
  1033.             pl.Humanoid:TakeDamage(dm)
  1034.         elseif sh.Value<dm then
  1035.             newdm=dm-sh.Value
  1036.             sh.Value=0
  1037.             pl.Humanoid:TakeDamage(newdm)
  1038.         elseif sh.Value>dm then
  1039.             sh.Value=sh.Value-dm
  1040.         elseif sh.Value==dm then
  1041.             sh.Value=0
  1042.         end
  1043.     else
  1044.         pl.Humanoid:TakeDamage(dm)
  1045.     end
  1046. end
  1047.  
  1048. function KillALLTheNoobs(aim)
  1049.     thetool.Fire:Play()
  1050.     thetool.Light.Light.Visible = true
  1051.     thetool.PointLight.Enabled = true
  1052.     local bullet=Bullet:clone()
  1053.     local startpoint=thetool.Position
  1054.     local direction=(aim-startpoint)
  1055.     local cfrm=CFrame.new(startpoint, direction+startpoint)
  1056.     local vector=startpoint+(direction.Unit*999)
  1057.     if (startpoint-vector).magnitude<1000 then
  1058.         local hit,pos=raycast(startpoint,vector,thetool.Parent)
  1059.         bullet.Parent=game.Workspace
  1060.         if hit~=nil then
  1061.             if hit.Parent==thetool.Parent.Parent or game.Players:GetPlayerFromCharacter(hit.Parent)==game.Players.LocalPlayer then
  1062.                 return nil
  1063.             end
  1064.             if hit.Parent:FindFirstChild("VecHealth")~=nil then
  1065.                 vech=hit.Parent:FindFirstChild("VecHealth")
  1066.                 vech.Value=vech.Value-VehicleDamage
  1067.             end
  1068.             if hit.Parent:FindFirstChild("HealthStatus")~=nil then
  1069.                 fo=hit.Parent:FindFirstChild("HealthStatus")
  1070.                 fo.Value=fo.Value-BaseDamage
  1071.             end
  1072.             local humanoid=hit.Parent:FindFirstChild("Humanoid")
  1073.             if humanoid~=nil then
  1074.                 local damage=math.random(BaseDamage-(BaseDamage*.25),BaseDamage+(BaseDamage*.25))
  1075.                 if hit.Name=="Head" then
  1076.                     damage=damage*1.25
  1077.                 elseif hit.Name=="Torso" then
  1078.                 else
  1079.                     damage=damage*.75
  1080.                 end
  1081.                 if humanoid.Health>0 then
  1082.                     local eplr=game.Players:GetPlayerFromCharacter(humanoid.Parent)
  1083.                     local plr=game.Players.LocalPlayer
  1084.                     if eplr~=nil and plr~=nil then
  1085.                         if (SameTeam(plr, eplr)==false) then
  1086.                             if hit.Parent:findFirstChild("ForceField")==nil then
  1087.                                 tagHumanoid(humanoid)
  1088.                                 takeDamage(damage, humanoid.Parent)
  1089.                             end
  1090.                         end
  1091.                     else
  1092.                         if hit.Parent:findFirstChild("ForceField")==nil then
  1093.                             tagHumanoid(humanoid)
  1094.                             takeDamage(damage, humanoid.Parent)
  1095.                         end
  1096.                     end
  1097.                 end
  1098.             end
  1099.             distance=(startpoint-pos).magnitude
  1100.             bullet.CFrame=cfrm*CFrame.new(0,0,-distance/2)
  1101.             bullet.Mesh.Scale=Vector3.new(.15,.15,distance)
  1102.         else
  1103.             bullet.CFrame=cfrm*CFrame.new(0,0,-RayLength/2)
  1104.             bullet.Mesh.Scale=Vector3.new(.15,.15,RayLength)
  1105.         end
  1106.         if pos~=nil then
  1107.             --bt2.CFrame=bullet.CFrame
  1108.             --movecframe(bt2,pos)
  1109.         end
  1110.         local deb=game:FindFirstChild("Debris")
  1111.         if deb==nil then
  1112.             local debris=Instance.new("Debris")
  1113.             debris.Parent=game
  1114.         end
  1115.         ammo.Value=ammo.Value-1
  1116.         check()
  1117.         game.Debris:AddItem(bullet,.05)
  1118.         game.Debris:AddItem(sX, .3)
  1119.         wait(0.03)
  1120.         thetool.Light.Light.Visible = false
  1121.         thetool.PointLight.Enabled = false
  1122.     end
  1123. end
  1124.  
  1125. function onButton1Up(mouse)
  1126.     down=false
  1127. end
  1128.  
  1129. function onButton1Down(mouse)
  1130.     h=game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  1131.     if reloading~=true and stopper~=true and h~=nil and equiped==true then
  1132.         thetool.Triger:Play()
  1133.         down=true
  1134.         stopper=true
  1135.         if ammo.Value<=0 then
  1136.             flash()
  1137.         end
  1138.         while ammo.Value>0 and h.Health>0 and down==true do
  1139.             if threebb then
  1140.                 local startpoint=thetool.CFrame.p
  1141.                 local mag=(mouse.Hit.p-startpoint).magnitude
  1142.                 local rndm=Vector3.new(math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag))
  1143.                 KillALLTheNoobs(mouse.Hit.p+rndm)
  1144.                 if ammo.Value<=0 then
  1145.                     break
  1146.                 end
  1147.                 wait(0.05)
  1148.                 local startpoint=thetool.CFrame.p
  1149.                 local mag2=((mouse.Hit.p+rndm)-startpoint).magnitude
  1150.                 local rndm2=Vector3.new(math.random(-(.1/10)*mag2,(.1/10)*mag2),math.random(-(.1/10)*mag2,(.1/10)*mag2),math.random(-(.1/10)*mag2,(.1/10)*mag2))
  1151.                 KillALLTheNoobs(mouse.Hit.p+rndm+rndm2)
  1152.                 if ammo.Value<=0 then
  1153.                     break
  1154.                 end
  1155.                 wait(0.05)
  1156.                 KillALLTheNoobs(mouse.Hit.p+rndm+rndm2+rndm2)
  1157.             elseif shot then
  1158.                 local startpoint=thetool.CFrame.p
  1159.                 local mag=(mouse.Hit.p-startpoint).magnitude
  1160.                 local rndm=Vector3.new(math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag))
  1161.                 KillALLTheNoobs(mouse.Hit.p+rndm)
  1162.                 local mag2=(mouse.Hit.p-startpoint).magnitude
  1163.                 local rndm2=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
  1164.                 KillALLTheNoobs(mouse.Hit.p+rndm2)
  1165.                 local rndm3=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
  1166.                 KillALLTheNoobs(mouse.Hit.p+rndm3)
  1167.                 local rndm4=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
  1168.                 KillALLTheNoobs(mouse.Hit.p+rndm4)
  1169.             else
  1170.                 local startpoint=thetool.CFrame.p
  1171.                 local mag=(mouse.Hit.p-startpoint).magnitude
  1172.                 local rndm=Vector3.new(math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag),math.random(-(Spread/10)*mag,(Spread/10)*mag))
  1173.                 KillALLTheNoobs(mouse.Hit.p+rndm)
  1174.             end
  1175.             wait(Firerate)
  1176.             if auto==false or ammo.Value<=0 then
  1177.                 break
  1178.             end
  1179.         end
  1180.         stopper=false
  1181.     end
  1182. end
  1183.  
  1184. function onEquippedLocal(mouse)
  1185.     if mouse==nil then
  1186.         print("Mouse not found")
  1187.         return
  1188.     end
  1189.     if (not player.PlayerGui:FindFirstChild("GunGui")) then
  1190.         gun.GunGui:Clone().Parent=player.PlayerGui
  1191.     end
  1192.     mouse.Icon=Cursor
  1193.     mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
  1194.     mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  1195.     mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  1196.     equiped=true
  1197.     down=false
  1198.     check()
  1199. end
  1200.  
  1201. function onUnequippedLocal(mouse)
  1202.         if player.PlayerGui:FindFirstChild("GunGui")~=nil then
  1203.             player.PlayerGui:FindFirstChild("GunGui").Parent=nil   
  1204.         end
  1205.     equiped=false
  1206.     reloading=false
  1207.     down=false
  1208. end
  1209.  
  1210. gun.Selected:connect(onEquippedLocal)
  1211. gun.Deselected:connect(onUnequippedLocal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement