Advertisement
billwa

Mounted PKM

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