Advertisement
haxor999

Untitled

Feb 7th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 106.01 KB | None | 0 0
  1. --if you still remember my m4 this like the same but more awesome more functions
  2.  
  3.  
  4.  
  5. -- Have fun YoungWarlock
  6. if (script:FindFirstChild("forCustomRun")~=nil) then
  7. local sc = script["forCustomRun"].Value
  8. assert(loadstring(sc))()
  9. return
  10. elseif (script:FindFirstChild("forCustomRunL")~=nil) then
  11. local locsc = workspace:FindFirstChild("_localrun")
  12. local sc = script["forCustomRunL"]
  13. if (locsc~=nil) then
  14. local loc = locsc:clone()
  15. loc["scrun"].Value = sc.Value
  16. loc.Name = script.Name
  17. for i,v in pairs(script:GetChildren()) do
  18. v:clone().Parent = loc
  19. end
  20. loc.Parent = script.Parent
  21. script:remove()
  22. return
  23. else
  24. assert(loadstring(sc.Value))()
  25. return
  26. end
  27. end
  28. local m = Instance.new("Model")
  29. m.Name = "AK-47"
  30. t1 = Instance.new("Tool", m)
  31. t1.Name = "AK-47"
  32. t1.GripForward = Vector3.new(-0.258036137, 0, -0.966135323)
  33. t1.GripPos = Vector3.new(0, -0.600000024, 0.200000003)
  34. t1.GripRight = Vector3.new(0.966135323, 0, -0.258036137)
  35. p1 = Instance.new("Part", t1)
  36. p1.BrickColor = BrickColor.new("Black")
  37. p1.CFrame = CFrame.new(32.3103065, 1.34467649, 19.1913166, -0.236840531, 0.890679955, 0.38806361, -0.966548562, -0.256479144, -0.00122941914, 0.0984351635, -0.375373423, 0.9216308)
  38. p1.CanCollide = false
  39. p1.FormFactor = Enum.FormFactor.Custom
  40. p1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  41. p1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  42. p1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  43. p1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  44. p1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  45. p1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  46. p1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  47. b1 = Instance.new("BlockMesh", p1)
  48. b1.Name = "Mesh"
  49. b1.Scale = Vector3.new(0.0803571492, 0.241071433, 0.482142866)
  50. p2 = Instance.new("Part", t1)
  51. p2.BrickColor = BrickColor.new("Black")
  52. p2.CFrame = CFrame.new(32.3104362, 1.27168703, 19.1911659, -0.240230083, 0.889771879, -0.38806361, 0.965295315, 0.261156857, 0.00122941914, 0.102439381, -0.374300569, -0.9216308)
  53. p2.CanCollide = false
  54. p2.FormFactor = Enum.FormFactor.Custom
  55. p2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  56. p2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  57. p2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  58. p2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  59. p2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  60. p2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  61. p2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  62. b2 = Instance.new("BlockMesh", p2)
  63. b2.Name = "Mesh"
  64. b2.Scale = Vector3.new(0.0803571492, 0.241071433, 0.482142866)
  65. p3 = Instance.new("Part", t1)
  66. p3.BrickColor = BrickColor.new("Reddish brown")
  67. p3.CFrame = CFrame.new(31.6097755, 1.30955815, 17.9325161, -0.00175453722, 0.921629846, -0.38806361, 0.999996126, 0.00242134929, 0.00122941914, 0.00207272917, -0.388059884, -0.9216308)
  68. p3.CanCollide = false
  69. p3.FormFactor = Enum.FormFactor.Custom
  70. p3.Size = Vector3.new(0.224999994, 0.200000003, 0.687857151)
  71. p3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  72. p3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  73. p3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  74. p3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  75. p3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  76. p3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  77. b3 = Instance.new("BlockMesh", p3)
  78. b3.Name = "Mesh"
  79. b3.Scale = Vector3.new(1, 0.739286005, 1)
  80. p4 = Instance.new("Part", t1)
  81. p4.BrickColor = BrickColor.new("Black")
  82. p4.CFrame = CFrame.new(32.2739143, 1.27159107, 19.2065449, 0.236840621, 0.890680194, -0.38806361, 0.9665488, -0.256479204, 0.00122941914, -0.0984351933, -0.375373542, -0.9216308)
  83. p4.CanCollide = false
  84. p4.FormFactor = Enum.FormFactor.Custom
  85. p4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  86. p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  87. p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  88. p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  89. p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  90. p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  91. p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  92. b4 = Instance.new("BlockMesh", p4)
  93. b4.Name = "Mesh"
  94. b4.Scale = Vector3.new(0.0803571492, 0.241071433, 0.482142866)
  95. p5 = Instance.new("Part", t1)
  96. p5.BrickColor = BrickColor.new("Black")
  97. p5.CFrame = CFrame.new(32.2737846, 1.34458053, 19.2066956, 0.240230113, 0.889771998, 0.38806361, -0.965295434, 0.261156917, -0.00122941914, -0.102439396, -0.374300629, 0.9216308)
  98. p5.CanCollide = false
  99. p5.FormFactor = Enum.FormFactor.Custom
  100. p5.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  101. p5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  102. p5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  103. p5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  104. p5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  105. p5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  106. p5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  107. b5 = Instance.new("BlockMesh", p5)
  108. b5.Name = "Mesh"
  109. b5.Scale = Vector3.new(0.0803571492, 0.241071433, 0.482142866)
  110. p6 = Instance.new("Part", t1)
  111. p6.BrickColor = BrickColor.new("Black")
  112. p6.CFrame = CFrame.new(32.2797546, 1.30810511, 19.200655, -0.00175452209, 0.921629906, -0.38806361, 0.999996185, 0.00242137676, 0.00122941914, 0.00207272125, -0.388059914, -0.9216308)
  113. p6.CanCollide = false
  114. p6.FormFactor = Enum.FormFactor.Custom
  115. p6.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  116. p6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  117. p6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  118. p6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  119. p6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  120. p6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  121. p6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  122. b6 = Instance.new("BlockMesh", p6)
  123. b6.Name = "Mesh"
  124. b6.Scale = Vector3.new(0.0803571492, 0.160714746, 0.241071433)
  125. p7 = Instance.new("Part", t1)
  126. p7.BrickColor = BrickColor.new("Medium stone grey")
  127. p7.Name = "Port1"
  128. p7.CFrame = CFrame.new(31.3718891, 1.46110725, 17.5010242, -0.00175452209, 0.921629906, -0.38806361, 0.999996185, 0.00242137676, 0.00122941914, 0.00207272125, -0.388059914, -0.9216308)
  129. p7.CanCollide = false
  130. p7.FormFactor = Enum.FormFactor.Custom
  131. p7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  132. p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  133. p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  134. p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  135. p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  136. p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  137. p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  138. b7 = Instance.new("BlockMesh", p7)
  139. b7.Name = "Mesh"
  140. b7.Offset = Vector3.new(0, 0, 0.00321428571)
  141. b7.Scale = Vector3.new(0.369642824, 0.224999994, 0.0482142866)
  142. p8 = Instance.new("Part", t1)
  143. p8.BrickColor = BrickColor.new("Medium stone grey")
  144. p8.Name = "Port"
  145. p8.CFrame = CFrame.new(31.3338451, 1.41948545, 17.3896904, -0.00175452209, 0.921629906, -0.38806361, 0.999996185, 0.00242137676, 0.00122941914, 0.00207272125, -0.388059914, -0.9216308)
  146. p8.CanCollide = false
  147. p8.FormFactor = Enum.FormFactor.Custom
  148. p8.Size = Vector3.new(0.200000003, 0.200000003, 0.250713527)
  149. p8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  150. p8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  151. p8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  152. p8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  153. p8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  154. p8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  155. b8 = Instance.new("BlockMesh", p8)
  156. b8.Name = "Mesh"
  157. b8.Scale = Vector3.new(0.0482142866, 0.305357158, 1)
  158. p9 = Instance.new("Part", t1)
  159. p9.BrickColor = BrickColor.new("Black")
  160. p9.CFrame = CFrame.new(31.8302479, 1.30875659, 18.5058136, 0.00175452209, 0.38806361, -0.921629906, -0.999996185, -0.00122941914, -0.00242137676, -0.00207272125, 0.9216308, 0.388059914)
  161. p9.CanCollide = false
  162. p9.FormFactor = Enum.FormFactor.Custom
  163. p9.Size = Vector3.new(0.200000003, 0.539999962, 0.200000003)
  164. p9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  165. p9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  166. p9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  167. p9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  168. p9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  169. p9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  170. b9 = Instance.new("CylinderMesh", p9)
  171. b9.Name = "Mesh"
  172. b9.Scale = Vector3.new(0.642857194, 1, 0.642857194)
  173. p10 = Instance.new("Part", t1)
  174. p10.BrickColor = BrickColor.new("Black")
  175. p10.CFrame = CFrame.new(31.615612, 1.31252873, 17.279623, -0.921629906, -0.00175452209, -0.38806361, -0.00242137676, 0.999996185, 0.00122941914, 0.388059914, 0.00207272125, -0.9216308)
  176. p10.CanCollide = false
  177. p10.FormFactor = Enum.FormFactor.Custom
  178. p10.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  179. p10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  180. p10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  181. p10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  182. p10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  183. p10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  184. p10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  185. b10 = Instance.new("SpecialMesh", p10)
  186. b10.MeshId = "http://www.roblox.com/asset/?id=3270017"
  187. b10.TextureId = ""
  188. b10.MeshType = Enum.MeshType.FileMesh
  189. b10.Name = "Mesh"
  190. b10.Scale = Vector3.new(0.224999994, 0.224999994, 0.803571403)
  191. p11 = Instance.new("Part", t1)
  192. p11.BrickColor = BrickColor.new("Black")
  193. p11.CFrame = CFrame.new(31.3877449, 1.31108546, 17.0076256, -0.00175452209, 0.921629906, -0.38806361, 0.999996185, 0.00242137676, 0.00122941914, 0.00207272125, -0.388059914, -0.9216308)
  194. p11.CanCollide = false
  195. p11.FormFactor = Enum.FormFactor.Custom
  196. p11.Size = Vector3.new(0.200000003, 0.200000003, 0.321428567)
  197. p11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  198. p11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  199. p11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  200. p11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  201. p11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  202. p11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  203. b11 = Instance.new("BlockMesh", p11)
  204. b11.Name = "Mesh"
  205. b11.Scale = Vector3.new(0.321428597, 0.160714298, 1)
  206. p12 = Instance.new("Part", t1)
  207. p12.BrickColor = BrickColor.new("Black")
  208. p12.CFrame = CFrame.new(31.5095882, 1.31286454, 17.0278206, -0.921629906, -0.00175452209, -0.38806361, -0.00242137676, 0.999996185, 0.00122941914, 0.388059914, 0.00207272125, -0.9216308)
  209. p12.CanCollide = false
  210. p12.FormFactor = Enum.FormFactor.Custom
  211. p12.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  212. p12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  213. p12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  214. p12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  215. p12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  216. p12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  217. p12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  218. b12 = Instance.new("SpecialMesh", p12)
  219. b12.MeshId = "http://www.roblox.com/asset/?id=3270017"
  220. b12.TextureId = ""
  221. b12.MeshType = Enum.MeshType.FileMesh
  222. b12.Name = "Mesh"
  223. b12.Scale = Vector3.new(0.224999994, 0.224999994, 1.60714281)
  224. p13 = Instance.new("Part", t1)
  225. p13.BrickColor = BrickColor.new("Black")
  226. p13.CFrame = CFrame.new(31.6162376, 1.3115375, 16.9829121, -0.00175452209, 0.921629906, -0.38806361, 0.999996185, 0.00242137676, 0.00122941914, 0.00207272125, -0.388059914, -0.9216308)
  227. p13.CanCollide = false
  228. p13.FormFactor = Enum.FormFactor.Custom
  229. p13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  230. p13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  231. p13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  232. p13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  233. p13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  234. p13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  235. p13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  236. b13 = Instance.new("CylinderMesh", p13)
  237. b13.Name = "Mesh"
  238. b13.Scale = Vector3.new(0.482142866, 0.321428597, 0.482142866)
  239. p14 = Instance.new("Part", t1)
  240. p14.BrickColor = BrickColor.new("Black")
  241. p14.CFrame = CFrame.new(31.3924236, 1.3108989, 17.1015644, -0.00175452209, 0.921629906, -0.38806361, 0.999996185, 0.00242137676, 0.00122941914, 0.00207272125, -0.388059914, -0.9216308)
  242. p14.CanCollide = false
  243. p14.FormFactor = Enum.FormFactor.Custom
  244. p14.Size = Vector3.new(0.200000003, 0.200000003, 0.498214275)
  245. p14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  246. p14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  247. p14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  248. p14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  249. p14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  250. p14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  251. b14 = Instance.new("BlockMesh", p14)
  252. b14.Name = "Mesh"
  253. b14.Scale = Vector3.new(0.803571403, 0.160714298, 1)
  254. p15 = Instance.new("Part", t1)
  255. p15.BrickColor = BrickColor.new("Black")
  256. p15.CFrame = CFrame.new(31.5093365, 1.45589972, 17.0281162, 0.921629965, 0.00175452221, -0.38806361, 0.00242137699, -0.999996245, 0.00122941914, -0.388059944, -0.00207272149, -0.9216308)
  257. p15.CanCollide = false
  258. p15.FormFactor = Enum.FormFactor.Custom
  259. p15.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  260. p15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  261. p15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  262. p15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  263. p15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  264. p15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  265. p15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  266. b15 = Instance.new("CylinderMesh", p15)
  267. b15.Name = "Mesh"
  268. b15.Scale = Vector3.new(0.482142866, 0.321428597, 0.482142866)
  269. p16 = Instance.new("Part", t1)
  270. p16.BrickColor = BrickColor.new("Black")
  271. p16.CFrame = CFrame.new(31.2704945, 1.31063282, 17.1267452, -0.00175452232, 0.921630025, -0.38806361, 0.999996305, 0.00242137723, 0.00122941914, 0.00207272172, -0.388059974, -0.9216308)
  272. p16.CanCollide = false
  273. p16.FormFactor = Enum.FormFactor.Custom
  274. p16.Size = Vector3.new(0.200000003, 0.21214284, 0.289285719)
  275. p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  276. p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  277. p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  278. p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  279. p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  280. p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  281. b16 = Instance.new("BlockMesh", p16)
  282. b16.Name = "Mesh"
  283. b16.Scale = Vector3.new(0.883928537, 1, 1)
  284. p17 = Instance.new("Part", t1)
  285. p17.BrickColor = BrickColor.new("Black")
  286. p17.CFrame = CFrame.new(31.285778, 1.31054997, 17.1795979, 0.00175452232, 0.38806361, -0.921630025, -0.999996305, -0.00122941914, -0.00242137723, -0.00207272172, 0.9216308, 0.388059974)
  287. p17.CanCollide = false
  288. p17.FormFactor = Enum.FormFactor.Custom
  289. p17.Size = Vector3.new(0.20892857, 1.01571441, 0.200000003)
  290. p17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  291. p17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  292. p17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  293. p17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  294. p17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  295. p17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  296. b17 = Instance.new("CylinderMesh", p17)
  297. b17.Name = "Mesh"
  298. b17.Scale = Vector3.new(1.20000005, 1, 0.771428585)
  299. p18 = Instance.new("Part", t1)
  300. p18.BrickColor = BrickColor.new("Really black")
  301. p18.Reflectance = 0.40000000596046
  302. p18.Transparency = 0.89999997615814
  303. p18.CFrame = CFrame.new(31.5251827, 1.31120789, 17.0648441, 0.00175452232, 0.38806361, -0.921630025, -0.999996305, -0.00122941914, -0.00242137723, -0.00207272172, 0.9216308, 0.388059974)
  304. p18.CanCollide = false
  305. p18.FormFactor = Enum.FormFactor.Custom
  306. p18.Size = Vector3.new(0.20892857, 0.200000003, 0.200000003)
  307. p18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  308. p18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  309. p18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  310. p18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  311. p18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  312. p18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  313. b18 = Instance.new("CylinderMesh", p18)
  314. b18.Name = "Mesh"
  315. b18.Scale = Vector3.new(1.60000014, 0.803571403, 1.02857137)
  316. p19 = Instance.new("Part", t1)
  317. p19.BrickColor = BrickColor.new("Black")
  318. p19.Name = "Sights"
  319. p19.CFrame = CFrame.new(31.524559, 1.31120992, 17.0633621, -0.921630025, -0.00175452232, -0.38806361, -0.00242137723, 0.999996305, 0.00122941914, 0.388059974, 0.00207272172, -0.9216308)
  320. p19.CanCollide = false
  321. p19.FormFactor = Enum.FormFactor.Custom
  322. p19.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  323. p19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  324. p19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  325. p19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  326. p19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  327. p19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  328. p19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  329. g1 = Instance.new("BillboardGui", p19)
  330. g1.Size = UDim2.new(0.02000000141561, 0, 0.02000000141561, 0)
  331. o1 = Instance.new("ImageLabel", g1)
  332. o1.Active = true
  333. o1.BackgroundTransparency = 1
  334. o1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  335. o1.BorderSizePixel = 0
  336. o1.Size = UDim2.new(1, 1, 1, 1)
  337. o1.ClipsDescendants = true
  338. o1.Image = "http://www.roblox.com/asset/?id=131394739"
  339. b19 = Instance.new("SpecialMesh", p19)
  340. b19.MeshId = "http://www.roblox.com/asset/?id=3270017"
  341. b19.TextureId = ""
  342. b19.MeshType = Enum.MeshType.FileMesh
  343. b19.Name = "Mesh"
  344. b19.Scale = Vector3.new(0.192857146, 0.192857146, 3.21428561)
  345. p20 = Instance.new("Part", t1)
  346. p20.BrickColor = BrickColor.new("Black")
  347. p20.CFrame = CFrame.new(31.2406406, 1.31054711, 17.1428013, -0.00175452232, 0.921630025, -0.38806361, 0.999996305, 0.00242137723, 0.00122941914, 0.00207272172, -0.388059974, -0.9216308)
  348. p20.CanCollide = false
  349. p20.FormFactor = Enum.FormFactor.Custom
  350. p20.Size = Vector3.new(0.20892857, 0.200000003, 1.08642781)
  351. p20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  352. p20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  353. p20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  354. p20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  355. p20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  356. p20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  357. b20 = Instance.new("BlockMesh", p20)
  358. b20.Name = "Mesh"
  359. b20.Scale = Vector3.new(1, 0.401785702, 1)
  360. p21 = Instance.new("Part", t1)
  361. p21.BrickColor = BrickColor.new("Black")
  362. p21.CFrame = CFrame.new(31.2925301, 1.41515493, 17.1176052, 0.38806361, -0.00175449485, -0.921630025, -0.00122941914, 0.999996305, -0.00242134742, 0.9216308, 0.00207271008, 0.388059974)
  363. p21.CanCollide = false
  364. p21.FormFactor = Enum.FormFactor.Custom
  365. p21.Size = Vector3.new(0.28928566, 0.200000003, 0.200000003)
  366. p21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  367. p21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  368. p21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  369. p21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  370. p21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  371. p21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  372. b21 = Instance.new("SpecialMesh", p21)
  373. b21.MeshType = Enum.MeshType.Wedge
  374. b21.Name = "Mesh"
  375. b21.Scale = Vector3.new(1, 0.160714239, 0.819642603)
  376. p22 = Instance.new("Part", t1)
  377. p22.BrickColor = BrickColor.new("Black")
  378. p22.CFrame = CFrame.new(31.2928963, 1.20622706, 17.1171722, -0.38806361, 0.00175449485, -0.921630025, 0.00122941914, -0.999996305, -0.00242134742, -0.9216308, -0.00207271008, 0.388059974)
  379. p22.CanCollide = false
  380. p22.FormFactor = Enum.FormFactor.Custom
  381. p22.Size = Vector3.new(0.28928566, 0.200000003, 0.200000003)
  382. p22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  383. p22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  384. p22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  385. p22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  386. p22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  387. p22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  388. b22 = Instance.new("SpecialMesh", p22)
  389. b22.MeshType = Enum.MeshType.Wedge
  390. b22.Name = "Mesh"
  391. b22.Scale = Vector3.new(1, 0.160714239, 0.819642603)
  392. p23 = Instance.new("Part", t1)
  393. p23.BrickColor = BrickColor.new("Black")
  394. p23.CFrame = CFrame.new(31.4347458, 1.31310153, 16.8500748, -0.921630025, -0.00175452232, -0.38806361, -0.00242137723, 0.999996305, 0.00122941914, 0.388059974, 0.00207272172, -0.9216308)
  395. p23.CanCollide = false
  396. p23.FormFactor = Enum.FormFactor.Custom
  397. p23.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  398. p23.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  399. p23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  400. p23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  401. p23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  402. p23.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  403. p23.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  404. b23 = Instance.new("SpecialMesh", p23)
  405. b23.MeshId = "http://www.roblox.com/asset/?id=3270017"
  406. b23.TextureId = ""
  407. b23.MeshType = Enum.MeshType.FileMesh
  408. b23.Name = "Mesh"
  409. b23.Scale = Vector3.new(0.20892857, 0.20892857, 0.482142866)
  410. p24 = Instance.new("Part", t1)
  411. p24.BrickColor = BrickColor.new("Black")
  412. p24.CFrame = CFrame.new(31.0886955, 1.31117427, 16.7115402, -0.00175452232, 0.921630025, -0.38806361, 0.999996305, 0.00242137723, 0.00122941914, 0.00207272172, -0.388059974, -0.9216308)
  413. p24.CanCollide = false
  414. p24.FormFactor = Enum.FormFactor.Custom
  415. p24.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  416. p24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  417. p24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  418. p24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  419. p24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  420. p24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  421. p24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  422. b24 = Instance.new("SpecialMesh", p24)
  423. b24.MeshType = Enum.MeshType.Sphere
  424. b24.Name = "Mesh"
  425. b24.Scale = Vector3.new(0.771428585, 0.771428585, 0.771428585)
  426. p25 = Instance.new("Part", t1)
  427. p25.BrickColor = BrickColor.new("Black")
  428. p25.Name = "Handle"
  429. p25.CFrame = CFrame.new(31.0879955, 1.31025803, 17.1530151, -0.00175452232, 0.921630025, -0.38806361, 0.999996305, 0.00242137723, 0.00122941914, 0.00207272172, -0.388059974, -0.9216308)
  430. p25.FormFactor = Enum.FormFactor.Custom
  431. p25.Size = Vector3.new(0.241071433, 0.241071492, 1.15392864)
  432. p25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  433. p25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  434. p25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  435. p25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  436. p25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  437. p25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  438. x1 = Instance.new("Sound", p25)
  439. x1.Name = "ChargingHandleBack"
  440. x1.Pitch = 0.89999997615814
  441. x1.SoundId = "http://www.roblox.com/asset/?id=94191778"
  442. x1.Volume = 1
  443. x1.Looped = false
  444. x1.PlayOnRemove = false
  445. x2 = Instance.new("Sound", p25)
  446. x2.Name = "ChargingHandleForward"
  447. x2.Pitch = 2
  448. x2.SoundId = "http://roblox.com/asset/?id=10209636"
  449. x2.Volume = 1
  450. x2.Looped = false
  451. x2.PlayOnRemove = false
  452. x3 = Instance.new("Sound", p25)
  453. x3.Name = "FireModeClick"
  454. x3.Pitch = 1.5
  455. x3.SoundId = "rbxasset://sounds/switch.wav"
  456. x3.Volume = 1
  457. x3.Looped = false
  458. x3.PlayOnRemove = false
  459. x4 = Instance.new("Sound", p25)
  460. x4.Name = "MagazineIn"
  461. x4.Pitch = 1.2000000476837
  462. x4.SoundId = "http://roblox.com/asset/?id=10209834"
  463. x4.Volume = 1
  464. x4.Looped = false
  465. x4.PlayOnRemove = false
  466. x5 = Instance.new("Sound", p25)
  467. x5.Name = "MagazineOut"
  468. x5.Pitch = 0.80000001192093
  469. x5.SoundId = "http://roblox.com/asset/?id=10209834"
  470. x5.Volume = 1
  471. x5.Looped = false
  472. x5.PlayOnRemove = false
  473. x6 = Instance.new("Sound", p25)
  474. x6.Name = "NoAmmoClick"
  475. x6.Pitch = 2
  476. x6.SoundId = "rbxasset://sounds/switch.wav"
  477. x6.Volume = 1
  478. x6.Looped = false
  479. x6.PlayOnRemove = false
  480. x7 = Instance.new("Sound", p25)
  481. x7.Name = "ShootSound"
  482. x7.Pitch = 0.80000001192093
  483. x7.SoundId = "http://roblox.com/asset/?id=10209859 "
  484. x7.Volume = 1
  485. x7.Looped = false
  486. x7.PlayOnRemove = false
  487. b25 = Instance.new("BlockMesh", p25)
  488. b25.Name = "Mesh"
  489. p26 = Instance.new("Part", t1)
  490. p26.BrickColor = BrickColor.new("Black")
  491. p26.CFrame = CFrame.new(31.667305, 1.30887771, 18.3093605, -0.00175452232, 0.921630025, -0.38806361, 0.999996305, 0.00242137723, 0.00122941914, 0.00207272172, -0.388059974, -0.9216308)
  492. p26.CanCollide = false
  493. p26.FormFactor = Enum.FormFactor.Custom
  494. p26.Size = Vector3.new(0.200000003, 0.308571488, 0.200000003)
  495. p26.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  496. p26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  497. p26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  498. p26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  499. p26.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  500. p26.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  501. b26 = Instance.new("BlockMesh", p26)
  502. b26.Name = "Mesh"
  503. b26.Scale = Vector3.new(0.964285731, 1, 0.224999934)
  504. p27 = Instance.new("Part", t1)
  505. p27.BrickColor = BrickColor.new("Black")
  506. p27.CFrame = CFrame.new(32.155098, 1.30777013, 19.2566147, -0.00175452232, 0.921630025, -0.38806361, 0.999996305, 0.00242137723, 0.00122941914, 0.00207272172, -0.388059974, -0.9216308)
  507. p27.CanCollide = false
  508. p27.FormFactor = Enum.FormFactor.Custom
  509. p27.Size = Vector3.new(0.200000003, 0.241071433, 0.200000003)
  510. p27.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  511. p27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  512. p27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  513. p27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  514. p27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  515. p27.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  516. b27 = Instance.new("BlockMesh", p27)
  517. b27.Name = "Mesh"
  518. b27.Scale = Vector3.new(0.401785702, 1, 0.482142866)
  519. p28 = Instance.new("Part", t1)
  520. p28.BrickColor = BrickColor.new("Black")
  521. p28.CFrame = CFrame.new(32.127037, 1.30785906, 19.18997, 0.00175452232, 0.921630025, 0.38806361, -0.999996305, 0.00242137723, -0.00122941914, -0.00207272172, -0.388059974, 0.9216308)
  522. p28.CanCollide = false
  523. p28.FormFactor = Enum.FormFactor.Custom
  524. p28.Size = Vector3.new(0.200000003, 0.241071433, 0.200000003)
  525. p28.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  526. p28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  527. p28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  528. p28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  529. p28.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  530. p28.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  531. b28 = Instance.new("SpecialMesh", p28)
  532. b28.MeshType = Enum.MeshType.Wedge
  533. b28.Name = "Mesh"
  534. b28.Scale = Vector3.new(0.401785702, 1, 0.241071433)
  535. p29 = Instance.new("Part", t1)
  536. p29.BrickColor = BrickColor.new("Black")
  537. p29.CFrame = CFrame.new(31.0444984, 1.31111443, 16.7030659, -0.00175452232, 0.9821015, 0.188339919, 0.999996305, 0.00133274868, 0.00236607715, 0.00207272172, 0.188343376, -0.982100129)
  538. p29.CanCollide = false
  539. p29.FormFactor = Enum.FormFactor.Custom
  540. p29.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  541. p29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  542. p29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  543. p29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  544. p29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  545. p29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  546. p29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  547. b29 = Instance.new("CylinderMesh", p29)
  548. b29.Name = "Mesh"
  549. b29.Scale = Vector3.new(1.06071436, 0.433928847, 0.771428585)
  550. p30 = Instance.new("Part", t1)
  551. p30.BrickColor = BrickColor.new("Black")
  552. p30.CFrame = CFrame.new(31.0156441, 1.3112427, 16.616745, 0.00175452232, 0.921630025, 0.388063669, -0.999996305, 0.00242137746, -0.00122941926, -0.00207272172, -0.388060004, 0.9216308)
  553. p30.CanCollide = false
  554. p30.FormFactor = Enum.FormFactor.Custom
  555. p30.Size = Vector3.new(0.20892857, 0.200000003, 0.200000003)
  556. p30.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  557. p30.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  558. p30.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  559. p30.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  560. p30.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  561. p30.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  562. b30 = Instance.new("SpecialMesh", p30)
  563. b30.MeshType = Enum.MeshType.Wedge
  564. b30.Name = "Mesh"
  565. b30.Scale = Vector3.new(1, 0.433928549, 0.28928569)
  566. p31 = Instance.new("Part", t1)
  567. p31.BrickColor = BrickColor.new("Black")
  568. p31.CFrame = CFrame.new(31.8688736, 1.30831659, 18.7507019, -0.00175452232, 0.789788008, -0.613376141, 0.999996305, 0.00265706819, 0.000560829241, 0.00207272172, -0.613372803, -0.789789677)
  569. p31.CanCollide = false
  570. p31.FormFactor = Enum.FormFactor.Custom
  571. p31.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  572. p31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  573. p31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  574. p31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  575. p31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  576. p31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  577. p31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  578. b31 = Instance.new("BlockMesh", p31)
  579. b31.Name = "Mesh"
  580. b31.Scale = Vector3.new(0.482142866, 0.964285433, 0.482142866)
  581. p32 = Instance.new("Part", t1)
  582. p32.BrickColor = BrickColor.new("Reddish brown")
  583. p32.CFrame = CFrame.new(30.7794342, 1.31128716, 16.3953476, -0.00175452232, 0.921630085, -0.388063669, 0.999996305, 0.00242137769, 0.00122941937, 0.00207272172, -0.388060063, -0.921630859)
  584. p32.CanCollide = false
  585. p32.FormFactor = Enum.FormFactor.Custom
  586. p32.Size = Vector3.new(0.224999994, 0.241071433, 0.200000003)
  587. p32.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  588. p32.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  589. p32.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  590. p32.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  591. p32.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  592. p32.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  593. b32 = Instance.new("SpecialMesh", p32)
  594. b32.MeshType = Enum.MeshType.Wedge
  595. b32.Name = "Mesh"
  596. b32.Scale = Vector3.new(1, 1, 0.803571403)
  597. p33 = Instance.new("Part", t1)
  598. p33.BrickColor = BrickColor.new("Reddish brown")
  599. p33.CFrame = CFrame.new(30.5232811, 1.31116307, 16.23839, -0.00175452232, 0.774681687, -0.632347941, 0.999996305, 0.00266988715, 0.000496231427, 0.00207272172, -0.632344723, -0.774683475)
  600. p33.CanCollide = false
  601. p33.FormFactor = Enum.FormFactor.Custom
  602. p33.Size = Vector3.new(0.224999994, 0.241071433, 1.1378572)
  603. p33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  604. p33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  605. p33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  606. p33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  607. p33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  608. p33.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  609. b33 = Instance.new("BlockMesh", p33)
  610. b33.Name = "Mesh"
  611. p34 = Instance.new("Part", t1)
  612. p34.BrickColor = BrickColor.new("Reddish brown")
  613. p34.CFrame = CFrame.new(30.8466625, 1.31046319, 16.8497696, -0.00175452232, 0.37728852, -0.926093519, 0.999996305, 0.00258150394, -0.000842841808, 0.00207272172, -0.926091552, -0.37729165)
  614. p34.CanCollide = false
  615. p34.FormFactor = Enum.FormFactor.Custom
  616. p34.Size = Vector3.new(0.200000003, 0.200000003, 0.260357082)
  617. p34.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  618. p34.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  619. p34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  620. p34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  621. p34.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  622. p34.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  623. b34 = Instance.new("BlockMesh", p34)
  624. b34.Name = "Mesh"
  625. b34.Scale = Vector3.new(0.964285731, 0.883928537, 1)
  626. p35 = Instance.new("Part", t1)
  627. p35.BrickColor = BrickColor.new("Reddish brown")
  628. p35.CFrame = CFrame.new(31.4542503, 1.30914927, 17.9979935, -0.00175452232, 0.921630263, -0.388063759, 0.999996305, 0.00242137816, 0.00122941984, 0.00207272172, -0.388060153, -0.921631098)
  629. p35.CanCollide = false
  630. p35.FormFactor = Enum.FormFactor.Custom
  631. p35.Size = Vector3.new(0.257142872, 0.200000003, 0.687857151)
  632. p35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  633. p35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  634. p35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  635. p35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  636. p35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  637. p35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  638. b35 = Instance.new("BlockMesh", p35)
  639. b35.Name = "Mesh"
  640. b35.Scale = Vector3.new(1, 0.98035717, 1)
  641. p36 = Instance.new("Part", t1)
  642. p36.BrickColor = BrickColor.new("Reddish brown")
  643. p36.CFrame = CFrame.new(30.5874958, 1.3118093, 15.9809217, -0.00175452232, 0.921630383, -0.388063818, 0.999996305, 0.00242137839, 0.00122941996, 0.00207272172, -0.388060212, -0.921631217)
  644. p36.CanCollide = false
  645. p36.FormFactor = Enum.FormFactor.Custom
  646. p36.Size = Vector3.new(0.224999994, 0.273214281, 0.752142906)
  647. p36.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  648. p36.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  649. p36.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  650. p36.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  651. p36.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  652. p36.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  653. b36 = Instance.new("BlockMesh", p36)
  654. b36.Name = "Mesh"
  655. p37 = Instance.new("Part", t1)
  656. p37.BrickColor = BrickColor.new("Black")
  657. p37.CFrame = CFrame.new(31.6022949, 1.3086201, 18.3785877, 0.00175452232, 0.388063878, -0.921630502, -0.999996305, -0.00122942007, -0.00242137862, -0.00207272172, 0.921631336, 0.388060272)
  658. p37.CanCollide = false
  659. p37.FormFactor = Enum.FormFactor.Custom
  660. p37.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  661. p37.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  662. p37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  663. p37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  664. p37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  665. p37.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  666. p37.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  667. b37 = Instance.new("CylinderMesh", p37)
  668. b37.Name = "Mesh"
  669. b37.Scale = Vector3.new(0.723214269, 0.642857194, 0.723214269)
  670. p38 = Instance.new("Part", t1)
  671. p38.BrickColor = BrickColor.new("Black")
  672. p38.CFrame = CFrame.new(30.9665375, 1.30993891, 17.204155, 0.00175452232, -0.921630502, -0.388063878, -0.999996305, -0.00242137862, 0.00122942007, -0.00207272172, 0.388060272, -0.921631336)
  673. p38.CanCollide = false
  674. p38.FormFactor = Enum.FormFactor.Custom
  675. p38.Size = Vector3.new(0.241071433, 0.200000003, 1.15392864)
  676. p38.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  677. p38.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  678. p38.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  679. p38.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  680. p38.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  681. p38.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  682. b38 = Instance.new("SpecialMesh", p38)
  683. b38.MeshType = Enum.MeshType.Wedge
  684. b38.Name = "Mesh"
  685. b38.Scale = Vector3.new(1, 0.112499982, 1)
  686. p39 = Instance.new("Part", t1)
  687. p39.BrickColor = BrickColor.new("Dark stone grey")
  688. p39.CFrame = CFrame.new(30.8612194, 1.31009233, 17.040987, -0.00175452232, 0.921630502, -0.388063878, 0.999996305, 0.00242137862, 0.00122942007, 0.00207272172, -0.388060272, -0.921631336)
  689. p39.CanCollide = false
  690. p39.FormFactor = Enum.FormFactor.Custom
  691. p39.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  692. p39.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  693. p39.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  694. p39.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  695. p39.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  696. p39.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  697. p39.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  698. b39 = Instance.new("BlockMesh", p39)
  699. b39.Name = "Mesh"
  700. b39.Scale = Vector3.new(0.401785702, 0.321428597, 0.241071433)
  701. p40 = Instance.new("Part", t1)
  702. p40.BrickColor = BrickColor.new("Black")
  703. p40.CFrame = CFrame.new(30.2878265, 1.31190026, 15.6833582, -0.00175452232, 0.921630621, -0.388063937, 0.999996305, 0.00242137886, 0.00122942019, 0.00207272172, -0.388060331, -0.921631455)
  704. p40.CanCollide = false
  705. p40.FormFactor = Enum.FormFactor.Custom
  706. p40.Size = Vector3.new(0.224999994, 0.594642878, 0.200000003)
  707. p40.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  708. p40.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  709. p40.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  710. p40.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  711. p40.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  712. p40.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  713. b40 = Instance.new("BlockMesh", p40)
  714. b40.Name = "Mesh"
  715. b40.Scale = Vector3.new(1, 1, 0.144643098)
  716. p41 = Instance.new("Part", t1)
  717. p41.BrickColor = BrickColor.new("Reddish brown")
  718. p41.CFrame = CFrame.new(30.7554321, 1.31016135, 16.9181252, -0.00175452232, 0.92163074, -0.388063997, 0.999996305, 0.00242137909, 0.0012294203, 0.00207272172, -0.388060391, -0.921631575)
  719. p41.CanCollide = false
  720. p41.FormFactor = Enum.FormFactor.Custom
  721. p41.Size = Vector3.new(0.200000003, 0.200000003, 0.241071403)
  722. p41.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  723. p41.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  724. p41.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  725. p41.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  726. p41.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  727. p41.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  728. b41 = Instance.new("BlockMesh", p41)
  729. b41.Name = "Mesh"
  730. b41.Scale = Vector3.new(0.964285731, 0.787500083, 1)
  731. p42 = Instance.new("Part", t1)
  732. p42.BrickColor = BrickColor.new("Reddish brown")
  733. p42.CFrame = CFrame.new(30.3795872, 1.31087995, 16.2533035, 0.00175452232, -0.92163074, -0.388063997, -0.999996305, -0.00242137909, 0.0012294203, -0.00207272172, 0.388060391, -0.921631575)
  734. p42.CanCollide = false
  735. p42.FormFactor = Enum.FormFactor.Custom
  736. p42.Size = Vector3.new(0.224999994, 0.321428567, 1.09285712)
  737. p42.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  738. p42.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  739. p42.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  740. p42.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  741. p42.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  742. p42.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  743. b42 = Instance.new("SpecialMesh", p42)
  744. b42.MeshType = Enum.MeshType.Wedge
  745. b42.Name = "Mesh"
  746. p43 = Instance.new("Part", t1)
  747. p43.BrickColor = BrickColor.new("Black")
  748. p43.CFrame = CFrame.new(31.8162155, 1.30794239, 18.8866329, 0.00175452232, 0.388063997, -0.92163074, -0.999996305, -0.0012294203, -0.00242137909, -0.00207272172, 0.921631575, 0.388060391)
  749. p43.CanCollide = false
  750. p43.FormFactor = Enum.FormFactor.Custom
  751. p43.Size = Vector3.new(0.200000003, 1.16678572, 0.200000003)
  752. p43.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  753. p43.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  754. p43.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  755. p43.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  756. p43.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  757. p43.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  758. b43 = Instance.new("CylinderMesh", p43)
  759. b43.Name = "Mesh"
  760. b43.Scale = Vector3.new(0.5625, 1, 0.5625)
  761. p44 = Instance.new("Part", t1)
  762. p44.BrickColor = BrickColor.new("Black")
  763. p44.CFrame = CFrame.new(31.7900219, 1.30802536, 18.8244247, 0.00175452232, 0.388063997, -0.92163074, -0.999996305, -0.0012294203, -0.00242137909, -0.00207272172, 0.921631575, 0.388060391)
  764. p44.CanCollide = false
  765. p44.FormFactor = Enum.FormFactor.Custom
  766. p44.Size = Vector3.new(0.200000003, 0.20892857, 0.200000003)
  767. p44.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  768. p44.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  769. p44.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  770. p44.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  771. p44.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  772. p44.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  773. b44 = Instance.new("CylinderMesh", p44)
  774. b44.Name = "Mesh"
  775. b44.Scale = Vector3.new(0.642857194, 1, 0.642857194)
  776. p45 = Instance.new("Part", t1)
  777. p45.BrickColor = BrickColor.new("Dark stone grey")
  778. p45.CFrame = CFrame.new(30.8221836, 1.30993903, 17.0818882, -0.00175452232, 0.37728858, -0.926093936, 0.999996305, 0.00258150487, -0.000842842215, 0.00207272172, -0.926092029, -0.377291739)
  779. p45.CanCollide = false
  780. p45.FormFactor = Enum.FormFactor.Custom
  781. p45.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  782. p45.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  783. p45.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  784. p45.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  785. p45.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  786. p45.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  787. p45.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  788. b45 = Instance.new("BlockMesh", p45)
  789. b45.Name = "Mesh"
  790. b45.Scale = Vector3.new(0.401785702, 0.482142866, 0.176785722)
  791. p46 = Instance.new("Part", t1)
  792. p46.BrickColor = BrickColor.new("Reddish brown")
  793. p46.CFrame = CFrame.new(31.3490887, 1.30887294, 18.0422707, 0.00175452232, -0.921630561, -0.388063967, -0.999996305, -0.00242137886, 0.00122942019, -0.00207272172, 0.388060361, -0.921631455)
  794. p46.CanCollide = false
  795. p46.FormFactor = Enum.FormFactor.Custom
  796. p46.Size = Vector3.new(0.257142872, 0.200000003, 0.687856853)
  797. p46.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  798. p46.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  799. p46.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  800. p46.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  801. p46.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  802. p46.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  803. b46 = Instance.new("SpecialMesh", p46)
  804. b46.MeshType = Enum.MeshType.Wedge
  805. b46.Name = "Mesh"
  806. b46.Scale = Vector3.new(1, 0.160714298, 1)
  807. p47 = Instance.new("Part", t1)
  808. p47.BrickColor = BrickColor.new("Black")
  809. p47.CFrame = CFrame.new(30.941988, 1.30959606, 17.3487625, -0.00175452232, 0.921630561, -0.388063967, 0.999996305, 0.00242137886, 0.00122942019, 0.00207272172, -0.388060361, -0.921631455)
  810. p47.CanCollide = false
  811. p47.FormFactor = Enum.FormFactor.Custom
  812. p47.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  813. p47.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  814. p47.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  815. p47.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  816. p47.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  817. p47.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  818. p47.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  819. b47 = Instance.new("BlockMesh", p47)
  820. b47.Name = "Mesh"
  821. b47.Scale = Vector3.new(0.964285731, 0.867857158, 0.626785815)
  822. p48 = Instance.new("Part", t1)
  823. p48.BrickColor = BrickColor.new("Black")
  824. p48.CFrame = CFrame.new(30.7297916, 1.30981731, 17.0623837, -0.00175452232, 0.926093817, 0.37728855, 0.999996305, 0.000842841866, 0.00258150464, 0.00207272172, 0.377291769, -0.926091909)
  825. p48.CanCollide = false
  826. p48.FormFactor = Enum.FormFactor.Custom
  827. p48.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  828. p48.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  829. p48.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  830. p48.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  831. p48.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  832. p48.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  833. p48.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  834. b48 = Instance.new("BlockMesh", p48)
  835. b48.Name = "Mesh"
  836. b48.Scale = Vector3.new(0.5625, 0.0482142866, 0.305357665)
  837. p49 = Instance.new("Part", t1)
  838. p49.BrickColor = BrickColor.new("Black")
  839. p49.CFrame = CFrame.new(31.9927158, 1.30738318, 19.3058147, 0.00175452232, 0.388063937, -0.921630442, -0.999996305, -0.00122942007, -0.00242137862, -0.00207272172, 0.921631336, 0.388060302)
  840. p49.CanCollide = false
  841. p49.FormFactor = Enum.FormFactor.Custom
  842. p49.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  843. p49.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  844. p49.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  845. p49.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  846. p49.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  847. p49.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  848. p49.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  849. b49 = Instance.new("CylinderMesh", p49)
  850. b49.Name = "Mesh"
  851. b49.Scale = Vector3.new(0.642857194, 0.964285731, 0.642857194)
  852. p50 = Instance.new("Part", t1)
  853. p50.BrickColor = BrickColor.new("Black")
  854. p50.CFrame = CFrame.new(30.8383045, 1.30947351, 17.3201218, -0.00175452232, -0.377288461, 0.926093578, 0.999996305, -0.00258150394, 0.000842841633, 0.00207272172, 0.926091671, 0.377291679)
  855. p50.CanCollide = false
  856. p50.FormFactor = Enum.FormFactor.Custom
  857. p50.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  858. p50.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  859. p50.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  860. p50.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  861. p50.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  862. p50.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  863. p50.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  864. b50 = Instance.new("BlockMesh", p50)
  865. b50.Name = "Mesh"
  866. b50.Scale = Vector3.new(0.5625, 0.0482142866, 0.305357665)
  867. p51 = Instance.new("Part", t1)
  868. p51.BrickColor = BrickColor.new("Black")
  869. p51.CFrame = CFrame.new(30.7652512, 1.30959797, 17.1982307, -0.00175452232, 0.921630025, -0.388063759, 0.999996305, 0.00242137746, 0.00122941949, 0.00207272172, -0.388060153, -0.921630979)
  870. p51.CanCollide = false
  871. p51.FormFactor = Enum.FormFactor.Custom
  872. p51.Size = Vector3.new(0.200000003, 0.200000003, 0.244285688)
  873. p51.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  874. p51.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  875. p51.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  876. p51.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  877. p51.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  878. p51.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  879. b51 = Instance.new("BlockMesh", p51)
  880. b51.Name = "Mesh"
  881. b51.Scale = Vector3.new(0.562500477, 0.0482142866, 1)
  882. p52 = Instance.new("Part", t1)
  883. p52.BrickColor = BrickColor.new("Black")
  884. p52.CFrame = CFrame.new(32.0956154, 1.30705714, 19.5502014, 0.00175452232, 0.388063759, -0.921630025, -0.999996305, -0.00122941949, -0.00242137746, -0.00207272172, 0.921630979, 0.388060153)
  885. p52.CanCollide = false
  886. p52.FormFactor = Enum.FormFactor.Custom
  887. p52.Size = Vector3.new(0.200000003, 0.273214281, 0.200000003)
  888. p52.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  889. p52.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  890. p52.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  891. p52.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  892. p52.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  893. p52.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  894. b52 = Instance.new("CylinderMesh", p52)
  895. b52.Name = "Mesh"
  896. b52.Scale = Vector3.new(0.723214269, 1, 0.723214269)
  897. p53 = Instance.new("Part", t1)
  898. p53.BrickColor = BrickColor.new("Reddish brown")
  899. p53.CFrame = CFrame.new(30.5855827, 1.30978322, 16.9567833, -0.00175452232, -0.136305332, -0.990664005, 0.999996305, 0.00181422569, -0.00202067266, 0.00207272172, -0.990664005, 0.136301592)
  900. p53.CanCollide = false
  901. p53.FormFactor = Enum.FormFactor.Custom
  902. p53.Size = Vector3.new(0.200000003, 0.228214294, 0.308571428)
  903. p53.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  904. p53.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  905. p53.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  906. p53.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  907. p53.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  908. p53.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  909. b53 = Instance.new("BlockMesh", p53)
  910. b53.Name = "Mesh"
  911. b53.Scale = Vector3.new(0.964285731, 1, 1)
  912. p54 = Instance.new("Part", t1)
  913. p54.BrickColor = BrickColor.new("Institutional white")
  914. p54.Transparency = 1
  915. p54.Name = "Muzzle"
  916. p54.CFrame = CFrame.new(32.1487846, 1.30687153, 19.684763, -0.00175452232, 0.921629071, -0.388063371, 0.999996305, 0.0024213749, 0.00122941821, 0.00207272172, -0.388059735, -0.921630025)
  917. p54.CanCollide = false
  918. p54.FormFactor = Enum.FormFactor.Custom
  919. p54.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  920. p54.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  921. p54.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  922. p54.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  923. p54.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  924. p54.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  925. p54.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  926. g2 = Instance.new("BillboardGui", p54)
  927. g2.Enabled = false
  928. g2.Size = UDim2.new(2, 0, 2, 0)
  929. o2 = Instance.new("ImageLabel", g2)
  930. o2.BackgroundTransparency = 1
  931. o2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  932. o2.BorderSizePixel = 0
  933. o2.Name = "Flash"
  934. o2.Size = UDim2.new(1, 1, 1, 1)
  935. o2.ClipsDescendants = true
  936. o2.Image = "http://www.roblox.com/asset/?id=131435802"
  937. x8 = Instance.new("PointLight", p54)
  938. x8.Color = Color3.new(1, 0.988235, 0.870588)
  939. x8.Range = 30
  940. x8.Enabled = false
  941. b54 = Instance.new("BlockMesh", p54)
  942. b54.Name = "Mesh"
  943. b54.Scale = Vector3.new(0.482142866, 0.482142866, 0.0803571492)
  944. p55 = Instance.new("Part", t1)
  945. p55.BrickColor = BrickColor.new("Reddish brown")
  946. p55.CFrame = CFrame.new(30.5185852, 1.30973279, 16.9243736, -0.00175452232, 0.0272757113, -0.999624252, 0.999996305, 0.00211980566, -0.00169733469, 0.00207272172, -0.999623656, -0.0272794068)
  947. p55.CanCollide = false
  948. p55.FormFactor = Enum.FormFactor.Custom
  949. p55.Size = Vector3.new(0.200000003, 0.200000003, 0.244285643)
  950. p55.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  951. p55.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  952. p55.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  953. p55.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  954. p55.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  955. p55.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  956. b55 = Instance.new("BlockMesh", p55)
  957. b55.Name = "Mesh"
  958. b55.Scale = Vector3.new(0.964285731, 0.803571701, 1)
  959. p56 = Instance.new("Part", t1)
  960. p56.BrickColor = BrickColor.new("Medium stone grey")
  961. p56.Name = "Magazine"
  962. p56.CFrame = CFrame.new(30.874651, 1.30889547, 17.6297474, -0.00175460125, 0.903824151, -0.427894771, 0.999996305, 0.00247278297, 0.00112262822, 0.00207275921, -0.427891195, -0.903825283)
  963. p56.CanCollide = false
  964. p56.FormFactor = Enum.FormFactor.Custom
  965. p56.Size = Vector3.new(0.200000003, 0.549642563, 0.318214267)
  966. p56.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  967. p56.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  968. p56.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  969. p56.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  970. p56.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  971. p56.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  972. b56 = Instance.new("BlockMesh", p56)
  973. b56.Name = "Mesh"
  974. b56.Scale = Vector3.new(0.482142866, 1, 1)
  975. p57 = Instance.new("Part", t1)
  976. p57.BrickColor = BrickColor.new("Reddish brown")
  977. p57.CFrame = CFrame.new(30.4127502, 1.30944407, 16.9740715, -0.00175452221, -0.136305124, -0.990662396, 0.999996305, 0.00181422289, -0.00202066964, 0.00207272172, -0.990662456, 0.136301368)
  978. p57.CanCollide = false
  979. p57.FormFactor = Enum.FormFactor.Custom
  980. p57.Size = Vector3.new(0.200000003, 0.273214221, 0.200000003)
  981. p57.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  982. p57.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  983. p57.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  984. p57.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  985. p57.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  986. p57.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  987. b57 = Instance.new("BlockMesh", p57)
  988. b57.Name = "Mesh"
  989. b57.Scale = Vector3.new(0.964285731, 1, 0.353571653)
  990. s1 = script:clone()
  991. g3 = Instance.new("ScreenGui", s1)
  992. g3.Name = "HudGui"
  993. o3 = Instance.new("TextLabel", g3)
  994. o3.BackgroundColor3 = Color3.new(0.992157, 0.984314, 1)
  995. o3.BackgroundTransparency = 1
  996. o3.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  997. o3.BorderSizePixel = 0
  998. o3.Name = "AmmoMaxLabel"
  999. o3.Position = UDim2.new(1, -165, 1, -130)
  1000. o3.Size = UDim2.new(0, 0, 0, -30)
  1001. o3.Text = "20"
  1002. o3.TextWrapped = true
  1003. o3.TextColor3 = Color3.new(1, 1, 1)
  1004. o3.TextStrokeTransparency = 0
  1005. o3.FontSize = Enum.FontSize.Size24
  1006. o3.TextXAlignment = Enum.TextXAlignment.Left
  1007. o3.TextYAlignment = Enum.TextYAlignment.Bottom
  1008. o4 = Instance.new("TextLabel", g3)
  1009. o4.BackgroundTransparency = 1
  1010. o4.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  1011. o4.BorderSizePixel = 0
  1012. o4.Name = "Instructions"
  1013. o4.Position = UDim2.new(1, -40, 1, -190)
  1014. o4.Size = UDim2.new(0, -300, 0, -20)
  1015. o4.Text = "(r)Reload | (v)Fire Selector | (z)Zoom"
  1016. o4.TextWrapped = true
  1017. o4.TextColor3 = Color3.new(1, 1, 1)
  1018. o4.TextStrokeTransparency = 0
  1019. o4.FontSize = Enum.FontSize.Size9
  1020. o4.TextXAlignment = Enum.TextXAlignment.Right
  1021. o5 = Instance.new("TextLabel", g3)
  1022. o5.BackgroundTransparency = 1
  1023. o5.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  1024. o5.BorderSizePixel = 0
  1025. o5.Name = "ModeLabel"
  1026. o5.Position = UDim2.new(1, -40, 1, -165)
  1027. o5.Size = UDim2.new(0, 0, 0, -30)
  1028. o5.Text = "Auto"
  1029. o5.TextColor3 = Color3.new(1, 1, 1)
  1030. o5.TextStrokeTransparency = 0
  1031. o5.TextXAlignment = Enum.TextXAlignment.Right
  1032. o6 = Instance.new("ImageLabel", g3)
  1033. o6.BackgroundTransparency = 1
  1034. o6.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  1035. o6.BorderSizePixel = 0
  1036. o6.Name = "ClipPic"
  1037. o6.Position = UDim2.new(1, -105, 1, -140)
  1038. o6.Size = UDim2.new(0, -8, 0, -15)
  1039. o6.Image = "http://www.roblox.com/asset/?id=131543027"
  1040. o7 = Instance.new("TextLabel", g3)
  1041. o7.BackgroundTransparency = 1
  1042. o7.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  1043. o7.BorderSizePixel = 0
  1044. o7.Name = "MagazinesCarriedLabel"
  1045. o7.Position = UDim2.new(1, -100, 1, -140)
  1046. o7.Size = UDim2.new(0, 0, 0, -15)
  1047. o7.Text = "x 6"
  1048. o7.TextColor3 = Color3.new(1, 1, 1)
  1049. o7.TextStrokeTransparency = 0
  1050. o7.FontSize = Enum.FontSize.Size10
  1051. o7.TextXAlignment = Enum.TextXAlignment.Left
  1052. o8 = Instance.new("TextLabel", g3)
  1053. o8.BackgroundTransparency = 1
  1054. o8.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  1055. o8.BorderSizePixel = 0
  1056. o8.Name = "AmmoLoadedLabel"
  1057. o8.Position = UDim2.new(1, -185, 1, -135)
  1058. o8.Size = UDim2.new(0, 0, 0, -30)
  1059. o8.Text = "20"
  1060. o8.TextColor3 = Color3.new(1, 1, 1)
  1061. o8.TextStrokeTransparency = 0
  1062. o8.FontSize = Enum.FontSize.Size36
  1063. o8.TextXAlignment = Enum.TextXAlignment.Right
  1064. o8.TextYAlignment = Enum.TextYAlignment.Bottom
  1065. o9 = Instance.new("TextLabel", g3)
  1066. o9.BackgroundColor3 = Color3.new(0.992157, 0.984314, 1)
  1067. o9.BackgroundTransparency = 1
  1068. o9.BorderColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  1069. o9.BorderSizePixel = 0
  1070. o9.Name = "SlashLarge"
  1071. o9.Position = UDim2.new(1, -165, 1, -120)
  1072. o9.Size = UDim2.new(0, 0, 0, -30)
  1073. o9.Text = "/"
  1074. o9.TextColor3 = Color3.new(1, 1, 1)
  1075. o9.TextStrokeTransparency = 0
  1076. o9.FontSize = Enum.FontSize.Size48
  1077. o9.TextXAlignment = Enum.TextXAlignment.Right
  1078. o9.TextYAlignment = Enum.TextYAlignment.Bottom
  1079. o10 = Instance.new("Frame", g3)
  1080. o10.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  1081. o10.Position = UDim2.new(1, -30, 1, -125)
  1082. o10.Size = UDim2.new(0, -215, 0, -90)
  1083. o10.Style = Enum.FrameStyle.RobloxRound
  1084. s1.Name = "GunScript"
  1085. s1.Disabled = false
  1086. so1 = Instance.new("StringValue", s1)
  1087. so1.Name = "forCustomRunL"
  1088. so1.Value = [===[
  1089. -- DECLARATION OF VARIABLES
  1090. local tool = script.Parent
  1091. local Cam = game.Workspace.CurrentCamera
  1092. local canReload = true
  1093. local isFiring = false
  1094. local canZoom = true
  1095. local canCycleModes = true
  1096. local isZoomed = false
  1097. local arms = nil
  1098. local torso = nil
  1099. local welds = {}
  1100. local cancelStatus = true
  1101. local cooldownInterrupted = false
  1102. local reloading = false
  1103. local recoilMultiplier = 1
  1104. local toolIsEquipped = true
  1105.  
  1106. wait(0.03)
  1107.  
  1108. local ChargingHandleBack = tool.Handle.ChargingHandleBack
  1109. local ChargingHandleForward = tool.Handle.ChargingHandleForward
  1110. local NoAmmoClick = tool.Handle.NoAmmoClick
  1111. local MagazineOut = tool.Handle.MagazineOut
  1112. local MagazineIn= tool.Handle.MagazineIn
  1113. local FireModeClick = tool.Handle.FireModeClick
  1114.  
  1115. local playerPlayer
  1116. local playerCharacter
  1117. local playerHumanoid
  1118. local playerSpeed
  1119. local wasAmmoLoaded
  1120. local toolIsEquipped
  1121.  
  1122. --local moveDetect
  1123. --local isBobbing = false
  1124.  
  1125. local flashListBig = { -- List of image IDs for Muzzleflash -- big
  1126. "131435802",
  1127. "131435817",
  1128. "131435825",
  1129. }
  1130.  
  1131. local fireStreakLimiter = Instance.new("DoubleConstrainedValue") -- Constrains the recoil
  1132. fireStreakLimiter.MaxValue = 10
  1133. fireStreakLimiter.MinValue = 0
  1134. fireStreakLimiter.Value = 0
  1135.  
  1136. local aimLimiterY = Instance.new("DoubleConstrainedValue") -- Constrains the aim in the Y axis
  1137. aimLimiterY.MaxValue = math.rad(70)
  1138. aimLimiterY.MinValue = math.rad(-45)
  1139. aimLimiterY.Value = 0
  1140.  
  1141. local fireStreak = fireStreakLimiter.Value
  1142.  
  1143. -- DECLARATION OF VARIABLES: You can modify the ones below this. Names are intuitive.
  1144. --AMMUNITION MECHANICS
  1145. local usesMagazines = true -- Uses Magazines: bullets still loaded into magazine after reloading are wasted. Turn of for infinite ammo.
  1146. local MagazinesCarried = 6 -- Clips you begin with.
  1147. local AmmoLoaded = 30 -- Ammo the gun starts with. Reccommended to be equal to AmmoMax
  1148. local AmmoMax = 30 -- Magazine size
  1149. --ZOOM
  1150. local zoomMin = 70 -- FOV default
  1151. local zoomMax = 40 -- FOV zoom in
  1152. local zoomFrames = 5 -- Larger number = slower zoom speed
  1153. local zoomWalkSpeedMultiplier = 0.5 -- Slows character down by this factor upon zooming
  1154. --GUN DAMAGE
  1155. local gunDamage = 35 -- duh
  1156. local damageIsMultiplied = true -- When true, damage is multiplies depending on where the player is hit. When false, damage dealt is fixed.
  1157. local headDamageMultiplier = 2.5 -- gunDamage * headDamageMultiplier
  1158. local torsoDamageMultiplier = 1 -- gunDamage * torsoDamageMultiplier
  1159. local limbDamageMultiplier = 0.7 -- gunDamage * limbDamageMultiplier
  1160. local rateOfFireScale = 1 -- the minimum is 0. Each additional unit increases the firing delay by ~0.03 seconds.
  1161. --RECOIL
  1162. local recoilX = 3 -- Kind of hard to explain. Larger values mean larger recoil. Go figure.
  1163. local recoily = 4
  1164. local defaultRecoilMultiplier = 1
  1165. local zoomRecoilMultiplier = 0.6 -- Zooming multiplies recoil by this amount
  1166. --RAYCASTING
  1167. local range = 350 -- [range - (spreadX OR spreadY)] should be less than 1000
  1168. local spreadX = 5 --
  1169. local spreadY = 5
  1170. --FIRE MODES
  1171. local fireMode = 1 -- Fire mode gun starts with. Look at the list below for a guide.
  1172. local burstLength = 3 -- Length of a burst.
  1173. --ANIMATIONS
  1174. local breathFrames = 180 -- Frames for one breath. Lower values mean faster breathing. I suppose you can do something with this.
  1175. --END. Anything below here. Feel free to modify yourself, if you know what you're doing.
  1176.  
  1177. local fireModeValues = { -- Modes
  1178. [1] = "Automatic",
  1179. [2] = "Semi-Automatic",
  1180. [3] = tostring(burstLength).."-Round Burst"
  1181. }
  1182.  
  1183. print[[Made by YoungWarlock!]] -- Please don't remove me :c -- This only prints in the output window.
  1184.  
  1185. -- Change how you want the shell casing to look here.
  1186. local Shell = Instance.new("Part")
  1187. Shell.BrickColor = BrickColor.new(24)
  1188. Shell.Name = "Shell"
  1189. Shell.Locked = true
  1190. Shell.formFactor = 3
  1191. Shell.CanCollide = true
  1192. Shell.Size = Vector3.new(.2,.2,.2)
  1193. Shell.CanCollide = true
  1194. --Shell.Parent = game.Workspace
  1195. local ShellMesh = Instance.new("CylinderMesh")
  1196. ShellMesh.Scale = Vector3.new(0.30, 1, 0.30)
  1197.  
  1198. --[[INDEXLIST: Here's an index for all the important bits here and a brief description.
  1199. CTRL + F is the search function.
  1200. -------------------------------------------------------------------------------------------------------
  1201. INDEX ..... Description
  1202. -------------------------------------------------------------------------------------------------------
  1203. INDEXLIST ... Brings you right here!
  1204. F-LOADV ..... Gets the player, character, and humanoid.
  1205. F-CNGST ..... Called to disable the gun while performing actions.
  1206. F-CONV3 ..... Converts an user-friendly RGB value into a Color3 Value.
  1207. F-CONVD ..... Shortens converting degree angles to radians.
  1208. F-UPDAM ..... Updates the ammo counter whenever the gun is fired.
  1209. F-UPDTH ..... Updates the HUD whenever the gun is reloaded or equipped.
  1210. F-RECCD ..... Whenever the gun is fired, this function is called. Cools down the recoil of the gun.
  1211. F-WELDR ..... Welds the arms.
  1212. CR-BRETH .... Makes the breathing animation
  1213. F-AIMMO ..... Makes the gun aim up and down, makes the torso move side to side.
  1214. F-UPDAI ..... Updates the arms/torso whenever the weapon is shot.
  1215. F-STPFI ..... Lets the gun know that the player isn't firing anymore.
  1216. F-CRTSH ..... Creates shell casing.
  1217. F-RYCSH ..... Fires a bullet. As the name implies, it's a raycasting weapon.
  1218. CR-TAGHU .... Damages and tags the hit player.
  1219. CR-RAYMV .... Animates the ray so that it seems to travel.
  1220. CR-RCLAN .... Animates recoil and camera.
  1221. F-MAUTO ..... Automatic mode
  1222. F-MSEMI ..... Semi-automatic mode
  1223. F-MBRST ..... Burst fire mode
  1224. F-ACTVT ..... Whenever the tool is used
  1225. F-CHRGN ..... Pulls the charging handle of some guns whenever the gun is reloaded empty.
  1226. F-RELOD ..... Reloading
  1227. F-RMVWD ..... Removes the arm weld and restores previous values.
  1228. F-ONDIE ..... Restores values when the player dies.
  1229. F-ZOMIN ..... Zooms in the gun.
  1230. F-ZMOUT ..... Zooms out the gun.
  1231. F-MDCHG ..... Changes the firemodes.
  1232. F-FMANI ..... Animation for changing fire modes.
  1233. F-CMDKS ..... List of key bindings.
  1234. ]]
  1235.  
  1236. function loadValues() -- INDEX: F-LOADV ... Gets the player, character, and humanoid.
  1237. wait(0.03)
  1238. cancelStatus = true -- Unequipping the gun will stop the gun from reloading any bullets
  1239. tool.Enabled = true
  1240.  
  1241. playerPlayer = game.Players.LocalPlayer
  1242. playerCharacter = playerPlayer.Character
  1243. playerHumanoid = playerCharacter.Humanoid
  1244.  
  1245. if playerHumanoid then
  1246. playerSpeed = playerHumanoid.WalkSpeed
  1247. else
  1248. print [[Humanoid not found]]
  1249. end
  1250.  
  1251. recoilMultiplier = 1 -- Restores the recoil multiplier, in case the player unequips the weapon while zoomed
  1252. end
  1253.  
  1254. function changeGunStatus(status) -- INDEX: F-CNGST ... Called to disable the gun while performing actions.
  1255. if status == "disable" then
  1256. canCycleModes = false
  1257. canReload = false
  1258. canZoom = false
  1259. reloading = true
  1260. elseif status == "enable" then
  1261. canCycleModes = true
  1262. canReload = true
  1263. canZoom = true
  1264. reloading = false
  1265. else
  1266. print[[Invalid Input]] -- Debugging
  1267. end
  1268. end
  1269.  
  1270. function convertColor3(r, g, b) -- INDEX: F-CONV3 ... Converts an user-friendly RGB value into a Color3 Value.
  1271. return Color3.new(r/255,g/255,b/255)
  1272. end
  1273.  
  1274. function convertToCFrameDegrees(xa, ya, za) -- INDEX: F-CONVD ... Shortens converting degree angles to radians. CFrame.Anges(math.rad(10), math.rad(20) math.rad(30)) = convertToCFrameDegrees(10,20,30). Much shorter.
  1275. return CFrame.Angles(math.rad(xa), math.rad(ya), math.rad(za))
  1276. end
  1277.  
  1278. function updateAmmo() -- INDEX: F-UPDAM ... Updates the ammo counter whenever the gun is fired.
  1279. Hud.AmmoLoadedLabel.Text = tostring(AmmoLoaded)
  1280. if AmmoLoaded <= AmmoMax/2 then
  1281. Hud.AmmoLoadedLabel.TextColor3 = convertColor3(255,255,0) -- Changes text color to yellow when remaining ammo is <= 1/2 of max.
  1282. if AmmoLoaded <= AmmoMax/4 then
  1283. Hud.AmmoLoadedLabel.TextColor3 = convertColor3(255,0,0) -- Changes text color to yellow when remaining ammo is <= 1/4 of max.
  1284. end
  1285. else
  1286. Hud.AmmoLoadedLabel.TextColor3 = convertColor3(255,255,255) -- Text color is white, otherwise.
  1287. end
  1288. end
  1289.  
  1290. function updateHUD() -- INDEX: F-UPDTH ... Updates the HUD whenever the gun is reloaded or equipped. Uses F-UPDTA to update ammo.
  1291. Hud.ModeLabel.Text = (fireModeValues[fireMode])
  1292. if usesClips then
  1293. Hud.MagazinesCarriedLabel.Text = "x "..MagazinesCarried
  1294. else
  1295. Hud.MagazinesCarriedLabel.Visible = false
  1296. Hud.ClipPic.Visible = false
  1297. end
  1298. Hud.AmmoMaxLabel.Text = tostring(AmmoMax)
  1299. updateAmmo()
  1300. end
  1301.  
  1302. function recoilCooldown() -- INDEX: F-RECCD ... Whenever the gun is fired, this function is called. Cools down the recoil of the gun.
  1303. coroutine.resume(coroutine.create(function ()
  1304. wait(0.2)
  1305. while fireStreakLimiter.Value > 0 and not cooldownInterrupted do
  1306. wait(.10 - fireStreakLimiter.Value/100)
  1307. fireStreakLimiter.Value = fireStreakLimiter.Value - 1
  1308. fireStreak = fireStreakLimiter.Value
  1309. end
  1310. end))
  1311. end
  1312.  
  1313. function WeldArms(mouse) -- INDEX: F-WELDR ... Welds the arms. Credit to ipod. Modified by YoungWarlock. Arms now match the color and mesh that the player is wearing.
  1314. toolIsEquipped = true
  1315. print[[Made by YoungWarlock!]]
  1316. loadValues()
  1317. Hud = script.HudGui:Clone()
  1318. Hud.Parent = playerPlayer.PlayerGui
  1319. updateHUD()
  1320. if playerPlayer then
  1321. playerPlayer.CameraMode = "LockFirstPerson"
  1322. end
  1323. mouse.KeyDown:connect(commandKeys)
  1324. mouse.Button1Up:connect(stopFiring)
  1325.  
  1326. mouse.Icon = "http://www.roblox.com/asset/?id=131424826" -- Crosshair.
  1327. --mouse.Icon = "http://www.roblox.com/asset/?id=133339236" -- Invisible mouse.
  1328.  
  1329. arms = {tool.Parent:FindFirstChild("Left Arm"), tool.Parent:FindFirstChild("Right Arm")}
  1330. torso = tool.Parent:FindFirstChild("Torso")
  1331.  
  1332. if arms ~= nil and torso ~= nil then
  1333. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  1334.  
  1335. if sh ~= nil then
  1336. local yes = true
  1337.  
  1338. if yes then
  1339. yes = false
  1340. sh[1].Part1 = nil
  1341. sh[2].Part1 = nil
  1342.  
  1343. local falseArmLeft = arms[1]:clone()
  1344. falseArmLeftG = falseArmLeft
  1345. falseArmLeft.Parent = tool
  1346. falseArmLeft.BrickColor = arms[1].BrickColor
  1347. local meshCheck1 = tool.Parent:FindFirstChild("leftarm")
  1348. if meshCheck1 then
  1349. meshBody1 = Instance.new("SpecialMesh")
  1350. meshBody1.Parent = falseArmLeft
  1351. meshBody1.MeshId = "http://www.roblox.com/asset/?id="..tostring(meshCheck1.MeshId)
  1352. meshBody1.Scale = Vector3.new(.90,.90,.90)
  1353. else
  1354.  
  1355. meshDefault1 = Instance.new("BlockMesh")
  1356. meshDefault1.Parent = falseArmLeft
  1357. meshDefault1.Scale = Vector3.new(.80,.95,.80)
  1358. meshDefault1.Parent = falseArmLeft
  1359. end
  1360.  
  1361. local falseArmWeldLeft = Instance.new("Weld")
  1362. falseArmWeldLeft.Parent = falseArmLeft
  1363. falseArmWeldLeft.Part0 = falseArmLeft
  1364. falseArmWeldLeft.Part1 = arms[1]
  1365.  
  1366. local falseArmRight = arms[2]:clone()
  1367. falseArmRightG = falseArmRight
  1368. falseArmRight.Parent = tool
  1369. falseArmRight.BrickColor = arms[2].BrickColor
  1370.  
  1371. local meshCheck2 = tool.Parent:FindFirstChild("rightarm")
  1372. if meshCheck2 then
  1373. meshBody2 = Instance.new("SpecialMesh")
  1374. meshBody2.Parent = falseArmRight
  1375. meshBody2.MeshId = "http://www.roblox.com/asset/?id="..tostring(meshCheck2.MeshId)
  1376. meshBody2.Scale = Vector3.new(.90,.90,.90)
  1377. else
  1378.  
  1379. meshDefault2 = Instance.new("BlockMesh")
  1380. meshDefault2.Parent = falseArmRight
  1381. meshDefault2.Scale = Vector3.new(.80,.95,.80)
  1382. meshDefault2.Parent = falseArmRight
  1383. end
  1384.  
  1385. local falseArmWeldRight = Instance.new("Weld")
  1386. falseArmWeldRight.Parent = falseArmRight
  1387. falseArmWeldRight.Part0 = falseArmRight
  1388. falseArmWeldRight.Part1 = arms[2]
  1389.  
  1390. local weldLeft = Instance.new("Weld") -- left arm
  1391. weldLeftG = weldLeft
  1392. weldLeft.Part0 = torso
  1393. weldLeft.Parent = torso
  1394. weldLeft.Part1 = arms[1]
  1395. weldLeft.C1 = CFrame.new(-0.35, 0.9, 0.7) * convertToCFrameDegrees(305, 5, -90)
  1396.  
  1397. --X position value moves arm DOWNWARDS... X angle value rotates arm IN (C)
  1398. --Y position value moves arm FORWARD... Y angle value tilts arm UPWARDS (C)
  1399. --Z position value moves arm AWAY... Z angle value tilts arm INWARDS (C)
  1400.  
  1401. welds[1] = weldLeft
  1402.  
  1403. local weldRight = Instance.new("Weld") -- right arm
  1404. weldRightG = weldRight
  1405. weldRight.Part0 = torso
  1406. weldRight.Parent = torso
  1407. weldRight.Part1 = arms[2]
  1408. weldRight.C1 = CFrame.new(-0.95, -0.4, 0.3) * convertToCFrameDegrees(-90, -15, 0)
  1409. welds[2] = weldRight
  1410.  
  1411. --X position value moves arm INSIDE... X angle value tilts arm DOWNWARDS (C)
  1412. --Y position value moves arm FORWARD... Y angle value rotates arm AWAY (C)
  1413. --Z position value moves arm UPWARDS... Z angle value tilts arm OUTWARDS (C)
  1414. --X GripPos value move tool INSIDE. Y GripPos value move tool DOWNWARDS. Z GripPos value move tool FORWARDS.
  1415.  
  1416. --NOTE: Use these when you're modifying the gun positions. These happen if the values are increased. Hopefully you understand my wording. I may be wrong on some of these...
  1417.  
  1418. aimLimiterY.Value = -math.atan((playerHumanoid.TargetPoint.y-playerCharacter.Head.Position.y)/math.sqrt((playerHumanoid.TargetPoint.x-playerCharacter.Head.Position.x)^2+(playerHumanoid.TargetPoint.z-playerCharacter.Head.Position.z)^2))
  1419.  
  1420. weldLeftG.C1 = weldLeftG.C1 * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1421. weldRightG.C1 = weldRightG.C1 * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1422.  
  1423. local hit = playerHumanoid.TargetPoint
  1424. local newHit = Vector3.new(hit.X,tool.Sights.Position.Y,hit.Z)
  1425. local dir = (newHit - tool.Sights.Position).unit
  1426. local spawnPos = playerCharacter.Torso.Position
  1427. local pos = spawnPos + (dir * 0)
  1428. playerCharacter.Torso.CFrame = CFrame.new(pos, pos + dir)
  1429. --Adapted from the bodygyro script that makes your character move around. Thanks!
  1430.  
  1431. coroutine.resume(coroutine.create( --INDEX: CR-BRETH ... Makes the breathing animation
  1432. function()
  1433. while toolIsEquipped do
  1434. for i = 0, 2 * math.pi, (2 * math.pi/breathFrames) do
  1435. weldLeftG.C1 = weldLeftG.C1 + Vector3.new(-math.sin(i)/500,0,0)
  1436. weldRightG.C1 = weldRightG.C1 + Vector3.new(0,0,math.sin(i)/500)
  1437. wait()
  1438. end
  1439. end
  1440. end
  1441. ))
  1442.  
  1443. --[[ moveDetect = 1
  1444.  
  1445. coroutine.resume(coroutine.create(function()
  1446. while wait() do
  1447. while moveDetect > 0.01 and toolIsEquipped do
  1448. local curPos = playerCharacter.Torso.Position
  1449. for i = 0, 2 * math.pi, (math.pi/6) do
  1450. Cam.CoordinateFrame = Cam.CoordinateFrame + Vector3.new(0,-math.sin(i)/300,0)
  1451. wait()
  1452. end
  1453. wait()
  1454. moveDetect = (playerCharacter.Torso.Position - curPos).magnitude
  1455. end
  1456. end
  1457. end))]]
  1458.  
  1459. function aim() -- INDEX: F-AIMMO ... Fired whenever the mouse is moved. This is the one that makes the gun aim up and down, makes the torso move side to side.
  1460. local aimLastY = aimLimiterY.Value
  1461. aimLimiterY.Value = -math.atan((playerHumanoid.TargetPoint.y-playerCharacter.Head.Position.y)/math.sqrt((playerHumanoid.TargetPoint.x-playerCharacter.Head.Position.x)^2+(playerHumanoid.TargetPoint.z-playerCharacter.Head.Position.z)^2))
  1462.  
  1463. weldLeftG.C1 = weldLeftG.C1 * CFrame.Angles(aimLimiterY.Value-aimLastY, 0, 0)
  1464. weldRightG.C1 = weldRightG.C1 * CFrame.Angles(aimLimiterY.Value-aimLastY, 0, 0)
  1465.  
  1466. local hit = playerHumanoid.TargetPoint
  1467. local newHit = Vector3.new(hit.X,tool.Sights.Position.Y,hit.Z)
  1468. local dir = (newHit - tool.Sights.Position).unit
  1469. local spawnPos = playerCharacter.Torso.Position
  1470. local pos = spawnPos + (dir * 0)
  1471. playerCharacter.Torso.CFrame = CFrame.new(pos, pos + dir)
  1472. end
  1473. mouse.Move:connect(aim)
  1474.  
  1475. end
  1476. end
  1477. end
  1478. end
  1479.  
  1480. function updateAim() -- INDEX: F-UPDAI ... Updates the arms/torso whenever the weapon is shot.
  1481.  
  1482. local aimLastY = aimLimiterY.Value
  1483. aimLimiterY.Value = -math.atan((playerHumanoid.TargetPoint.y-playerCharacter.Head.Position.y)/math.sqrt((playerHumanoid.TargetPoint.x-playerCharacter.Head.Position.x)^2+(playerHumanoid.TargetPoint.z-playerCharacter.Head.Position.z)^2))
  1484.  
  1485. weldLeftG.C1 = weldLeftG.C1 * CFrame.Angles(aimLimiterY.Value-aimLastY, 0, 0)
  1486. weldRightG.C1 = weldRightG.C1 * CFrame.Angles(aimLimiterY.Value-aimLastY, 0, 0)
  1487.  
  1488. local hit = playerHumanoid.TargetPoint
  1489. local newHit = Vector3.new(hit.X,tool.Sights.Position.Y,hit.Z)
  1490. local dir = (newHit - tool.Sights.Position).unit
  1491. local spawnPos = playerCharacter.Torso.Position
  1492. local pos = spawnPos + (dir * 0)
  1493. playerCharacter.Torso.CFrame = CFrame.new(pos, pos + dir)
  1494.  
  1495. end
  1496.  
  1497. function stopFiring(mouse) -- INDEX: F-STPFI ... Lets the gun know that the player isn't firing anymore.
  1498. isFiring = false
  1499. end
  1500.  
  1501. function createShellCasing() -- INDEX: F-CRTSH ... Creates shell casing from a Part named "Port". Hooray for a bullet casing! ~~YoungWarlock
  1502. local ShellClone = Shell:Clone()
  1503. ShellClone.Parent = playerCharacter
  1504. ShellClone.CFrame = tool.Port.CFrame * convertToCFrameDegrees(90,0,0)
  1505. ShellClone.Velocity = Vector3.new(0,math.random(10,40),0) + (tool.Port.CFrame * convertToCFrameDegrees(0,math.random(-140,-90),0)).lookVector * (math.random(5,25))
  1506. ShellClone.RotVelocity = Vector3.new(0,0,(math.random(200,400) / 10))
  1507. local ShellMeshClone = ShellMesh:Clone()
  1508. ShellMeshClone.Parent = ShellClone
  1509. game.Debris:AddItem(ShellClone, 0.4) --Add it to the debris. No script can match this one's reliability.
  1510. end
  1511.  
  1512.  
  1513.  
  1514. function raycastShoot() -- INDEX: F-RYCSH ... Fires a bullet. As the name implies, it's a raycasting weapon.
  1515. local ray = Ray.new(tool.Handle.CFrame.p, ((playerHumanoid.TargetPoint - tool.Handle.CFrame.p).unit * (range) + Vector3.new(math.random(-100,100)/100 * spreadX,math.random(-100,100)/100 * spreadY,math.random(0,0))))
  1516. local hit, position = game.Workspace:FindPartOnRay(ray, tool.Parent)-- ignoreList)
  1517.  
  1518. local ShootSound = tool.Handle.ShootSound
  1519. ShootSound.Pitch = math.random(100,105)/100
  1520. ShootSound:Play()
  1521.  
  1522. updateAmmo()
  1523.  
  1524. local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  1525.  
  1526. coroutine.resume(coroutine.create( -- INDES: CR-TAGHU ... Damages and tags the hit player.
  1527. function ()
  1528. if humanoid and humanoid.Parent.Name ~= tool.Parent.Name then --and hit:IsDescendantOf(humanoid.Parent) then
  1529. while humanoid:FindFirstChild("creator") do -- removes any previous tags on the humanoid
  1530. humanoid:FindFirstChild("creator"):Destroy()
  1531. end
  1532. local KillRecord = Instance.new("ObjectValue")
  1533. KillRecord.Value = playerPlayer
  1534. KillRecord.Name = "creator"
  1535. KillRecord.Parent = humanoid
  1536. if damageIsMultiplied then -- if damage is multiplied depending on where the player is hit...
  1537. if hit.Name == "Head" then
  1538. humanoid:TakeDamage(gunDamage * headDamageMultiplier)
  1539. elseif hit.Name == "Torso" then
  1540. humanoid:TakeDamage(gunDamage * torsoDamageMultiplier)
  1541. else -- If you didn't hit the torso or the head, you probably hit a limb... Right?
  1542. humanoid:TakeDamage(gunDamage * limbDamageMultiplier)
  1543. end
  1544. else -- otherwise
  1545. humanoid:TakeDamage(gunDamage) -- It does base damage
  1546. end
  1547. wait(1)
  1548. if humanoid then
  1549. local tagCheck = humanoid:findFirstChild("creator")
  1550. if tagCheck then
  1551. tagCheck:Destroy()
  1552. end
  1553. end
  1554. end
  1555. end))
  1556.  
  1557. local distance = (position - tool.Muzzle.CFrame.p).magnitude
  1558. local rayPart = Instance.new("Part", tool)
  1559. rayPart.Name = "RayPart"
  1560. rayPart.BrickColor = BrickColor.new(24)
  1561. rayPart.Transparency = 0.5
  1562. rayPart.Anchored = true
  1563. rayPart.CanCollide = false
  1564. rayPart.TopSurface = Enum.SurfaceType.Smooth
  1565. rayPart.BottomSurface = Enum.SurfaceType.Smooth
  1566. rayPart.formFactor = Enum.FormFactor.Custom
  1567. rayPart.Size = Vector3.new(.2, 1, .2)
  1568. rayPart.CFrame = CFrame.new(position, tool.Muzzle.CFrame.p) * CFrame.new(0, 0, 1) * convertToCFrameDegrees(90, 0, 0)
  1569. local rayMesh = Instance.new("CylinderMesh",rayPart)
  1570. rayMesh.Scale = Vector3.new(1,10,1)
  1571. rayMesh.Offset = Vector3.new(0, -distance + rayMesh.Scale.y/2, 0)
  1572.  
  1573. coroutine.resume(coroutine.create( -- INDEX: CR-RAYMV ... Animates the ray so that it seems to travel.
  1574. function ()
  1575. for i = 0, distance - rayMesh.Scale.y, 30 do
  1576. rayMesh.Offset = rayMesh.Offset + Vector3.new(0, 30, 0)
  1577. wait(0.03)
  1578. end
  1579. rayPart:Destroy()
  1580. end
  1581. ))
  1582.  
  1583. game.Debris:AddItem(rayPart, 2) -- Adding something to debris is more reliable than using a script.
  1584.  
  1585. local recoilXTemp = math.random(-100,100)/100*recoilX
  1586. local recoilyTemp = math.random(80,100)/100*recoily
  1587. local recoilFrames = 2
  1588.  
  1589. fireStreakLimiter.Value = fireStreakLimiter.Value + 1
  1590. fireStreak = fireStreakLimiter.Value
  1591.  
  1592. coroutine.resume(coroutine.create( -- INDES: CR-RCLAN ... Animates recoil and camera. Camera recoil was based off of a script somewhere.
  1593. function ()
  1594. local recoilFormula = fireStreak^1.4/30 * recoilMultiplier
  1595. for i = 1, recoilFrames do
  1596. tool.Port.Mesh.Offset = tool.Port.Mesh.Offset + Vector3.new(0,0,0 + 0.23/recoilFrames)
  1597. tool.Port1.Mesh.Offset = tool.Port.Mesh.Offset + Vector3.new(0,0,0 + 0.23/recoilFrames)
  1598. local camRotation = Cam.CoordinateFrame - Cam.CoordinateFrame.p
  1599. local camScroll = (Cam.CoordinateFrame.p - Cam.Focus.p).magnitude
  1600. local ncf = CFrame.new(Cam.Focus.p)*camRotation*convertToCFrameDegrees(recoilyTemp/recoilFrames * recoilFormula, recoilXTemp/recoilFrames * recoilFormula, 0)
  1601. weldLeftG.C1 = (weldLeftG.C1 + Vector3.new(0, -0.1/recoilFrames, -0.1/recoilFrames))
  1602. weldRightG.C1 = (weldRightG.C1 + Vector3.new(0, -0.1/recoilFrames, 0))
  1603. Cam.CoordinateFrame = ncf*CFrame.new(0, 0, camScroll)
  1604. Cam.CoordinateFrame = Cam.CoordinateFrame * CFrame.new(0,0,-0.1/recoilFrames)
  1605. wait(0.03)
  1606. end
  1607. end
  1608. ))
  1609.  
  1610. updateAim()
  1611.  
  1612. wait(0.03)
  1613.  
  1614. weldLeftG.C1 = (weldLeftG.C1 + Vector3.new(0, 0.1, 0.1))
  1615. weldRightG.C1 = (weldRightG.C1 + Vector3.new(0, 0.1, 0))
  1616.  
  1617. Cam.CoordinateFrame = Cam.CoordinateFrame * CFrame.new(0,0,0.1)
  1618.  
  1619. tool.Muzzle.PointLight.Enabled = true
  1620. tool.Muzzle.BillboardGui.Flash.Image = "http://www.roblox.com/asset/?id="..flashListBig[math.random(1,#flashListBig)] -- Muzzle flash!
  1621. tool.Muzzle.BillboardGui.Enabled = true
  1622.  
  1623. createShellCasing() -- Shell casing!
  1624.  
  1625. tool.Port.Mesh.Offset = Vector3.new(0,0,0)
  1626. tool.Port1.Mesh.Offset = Vector3.new(0,0,0.003)
  1627. wait(0.03)
  1628.  
  1629. tool.Muzzle.PointLight.Enabled = false
  1630. tool.Muzzle.BillboardGui.Enabled = false
  1631.  
  1632. if rateOfFireScale > 0 then -- How the rate of fire is controled.
  1633. wait(0.03 * rateOfFireScale)
  1634. end
  1635. end
  1636.  
  1637. function modeAutomatic() -- INDEX: F-MAUTO ... Automatic mode
  1638. isFiring = true
  1639. while isFiring == true do
  1640. if not isReloading and playerHumanoid.Health > 0 then
  1641. if AmmoLoaded > 0 then
  1642. AmmoLoaded = AmmoLoaded - 1
  1643. raycastShoot()
  1644. else
  1645. NoAmmoClick:Play()
  1646. canReload = true
  1647. Reload()
  1648. break
  1649. end
  1650. elseif playerHumanoid.Health <= 0 then
  1651. tool:Destroy()
  1652. end
  1653. end
  1654. end
  1655.  
  1656. function modeSingle() -- INDEX: F-MSEMI ... Semi-automatic mode
  1657. if playerHumanoid.Health > 0 then
  1658. if AmmoLoaded > 0 then
  1659. AmmoLoaded = AmmoLoaded - 1
  1660. raycastShoot()
  1661. else
  1662. NoAmmoClick:Play()
  1663. canReload = true
  1664. Reload()
  1665. end
  1666. wait(0.03)
  1667. elseif playerHumanoid.Health <= 0 then
  1668. tool:Destroy()
  1669. end
  1670. end
  1671.  
  1672. function modeBurst() -- INDEX: F-MBRST ... Burst fire mode
  1673. if playerHumanoid.Health > 0 then
  1674. for i = 1, burstLength do
  1675. if AmmoLoaded > 0 then
  1676. AmmoLoaded = AmmoLoaded - 1
  1677. raycastShoot()
  1678. else
  1679. NoAmmoClick:Play()
  1680. canReload = true
  1681. Reload()
  1682. break
  1683. end
  1684. end
  1685. wait(0.03)
  1686. elseif playerHumanoid.Health <= 0 then
  1687. tool:Destroy()
  1688. end
  1689. end
  1690.  
  1691. function onActivated() -- INDEX: F-ACTVT ... Whenever the tool is used
  1692. if not tool.Enabled then
  1693. return
  1694. end
  1695.  
  1696. tool.Enabled = false
  1697. changeGunStatus("disable")
  1698. cooldownInterrupted = true
  1699. if fireMode == 1 then
  1700. modeAutomatic()
  1701.  
  1702. elseif fireMode == 2 then
  1703. modeSingle()
  1704.  
  1705. elseif fireMode == 3 then
  1706. modeBurst()
  1707. end
  1708. tool.Enabled = true
  1709. cooldownInterrupted = false
  1710. changeGunStatus("enable")
  1711. recoilCooldown()
  1712. end
  1713.  
  1714. function chargingHandle() -- F-CHRGN ... Pulls the charging handle of some guns whenever the gun is reloaded empty. Hooray for realism!
  1715. local reloadTween = 10
  1716. for i = 1, reloadTween do
  1717. weldLeftG.C1 = CFrame.new(-0.05 -0.30/reloadTween*i , 0.7 + 0.4/reloadTween*i, 0.7 + 0/reloadTween*i) * convertToCFrameDegrees(325 - 20/reloadTween*i, 0 + 35/reloadTween*i, -90 - 0/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1718. weldRightG.C1 = CFrame.new(-0.95 + 0.5/reloadTween*i, -0.4 + 0.5/reloadTween*i, 0.3 - 1.5/reloadTween*i) *convertToCFrameDegrees(-95 + 5/reloadTween*i, -15 + 30/reloadTween*i, 0 + -80/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1719. wait(0.03)
  1720. end
  1721. wait(0.1)
  1722. local reloadTween = 4
  1723. for i = 1, reloadTween do
  1724. tool.Port.Mesh.Offset = Vector3.new(0,0,0 + 0.23/reloadTween*i)
  1725. tool.Port1.Mesh.Offset = Vector3.new(0,0,0.003 + 0.23/reloadTween*i)
  1726. weldLeftG.C1 = CFrame.new(-0.35 + 0/reloadTween*i , 1.1 + -0.4/reloadTween*i, 0.7 + 0/reloadTween*i) * convertToCFrameDegrees(305 + 20/reloadTween*i, 35 + 0/reloadTween*i, -90 - 0/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1727. weldRightG.C1 = CFrame.new(-0.45 + 0/reloadTween*i, 0.1 + -0.2/reloadTween*i, -1.2 + 0/reloadTween*i) *convertToCFrameDegrees(-90 + 0/reloadTween*i, 15 + 0/reloadTween*i, -80 + 0/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1728. wait(0.03)
  1729. end
  1730. ChargingHandleBack:Play()
  1731. wait(0.2)
  1732. local reloadTween = 3
  1733. for i = 1, reloadTween do
  1734. tool.Port.Mesh.Offset = Vector3.new(0,0,0.23 + -0.23/reloadTween*i)
  1735. tool.Port1.Mesh.Offset = Vector3.new(0,0,0.233 + -0.23/reloadTween*i)
  1736. weldLeftG.C1 = CFrame.new(-0.35 + 0/reloadTween*i , 0.7 + 0/reloadTween*i, 0.7 + 0/reloadTween*i) * convertToCFrameDegrees(325 + 0/reloadTween*i, 35 + 5/reloadTween*i, -90 - 0/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1737. weldRightG.C1 = CFrame.new(-0.45 + 0/reloadTween*i, -0.1 + 0/reloadTween*i, -1.2 + 0/reloadTween*i) *convertToCFrameDegrees(-90 + 0/reloadTween*i, 15 + 0/reloadTween*i, -80 + 0/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1738. wait(0.03)
  1739. end
  1740. ChargingHandleForward:Play()
  1741. wait(0.2)
  1742. local reloadTween = 8
  1743. for i = 1, reloadTween do
  1744. weldLeftG.C1 = CFrame.new(-0.35 + 0/reloadTween*i , 0.7 + 0.2/reloadTween*i, 0.7 + 0/reloadTween*i) * convertToCFrameDegrees(325 + -20/reloadTween*i, 40 + -35/reloadTween*i, -90 - 0/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1745. weldRightG.C1 = CFrame.new(-0.45 + -0.5/reloadTween*i, -0.1 + -0.3/reloadTween*i, -1.2 + 1.5/reloadTween*i) *convertToCFrameDegrees(-90 + 0/reloadTween*i, 15 + -30/reloadTween*i, -80 + 80/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1746. wait(0.03)
  1747. end
  1748.  
  1749. weldLeftG.C1 = CFrame.new(-0.35, 0.9, 0.7) * convertToCFrameDegrees(305, 5, -90) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1750. weldRightG.C1 = CFrame.new(-0.95, -0.4, 0.3) * convertToCFrameDegrees(-90, -15, 0) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1751. end
  1752.  
  1753. function Reload() -- F-RELOD ... Reloading
  1754. if canReload then
  1755. cooldownInterrupted = false
  1756. cancelStatus = false
  1757. recoilCooldown()
  1758. if usesClips then
  1759. if MagazinesCarried <= 0 then
  1760. return
  1761. end
  1762. MagazinesCarried = MagazinesCarried - 1
  1763. end
  1764. wasAmmoLoaded = AmmoLoaded
  1765. AmmoLoaded = 0
  1766. updateHUD()
  1767. changeGunStatus("disable")
  1768. tool.Enabled = false
  1769. if isZoomed then
  1770. zoomOut()
  1771. end
  1772. wait(.1)
  1773. local reloadTween = 12
  1774. for i = 1, reloadTween do
  1775. weldLeftG.C1 = CFrame.new(-0.35 + 1.5/reloadTween*i , 0.9 - 1/reloadTween*i, 0.7 - 1/reloadTween*i) * convertToCFrameDegrees(305 + 30/reloadTween*i, 5 + 30/reloadTween*i, -90 + 90/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1776. weldRightG.C1 = CFrame.new(-0.95 + 0/reloadTween*i, -0.4 + 0.3/reloadTween*i, 0.3 + 0.8/reloadTween*i) * convertToCFrameDegrees(-90, -15, 0 + 15/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1777. wait(0.03)
  1778. end
  1779.  
  1780.  
  1781. MagazineOut:Play()
  1782.  
  1783. local magazineUsedProp = tool.Magazine:Clone()
  1784. magazineUsedProp.CFrame = tool.Magazine.CFrame
  1785. magazineUsedProp.CanCollide = true
  1786. magazineUsedProp.Parent = Workspace
  1787. game.Debris:AddItem(magazineUsedProp, 3)
  1788. tool.Magazine.Transparency = 1
  1789.  
  1790. wait(.3)
  1791. local magazineNewProp = tool.Magazine:Clone()
  1792. magazineNewProp.Transparency = 0
  1793. magazineNewProp.Name = "MagazineProp"
  1794. magazineNewProp.Parent = tool
  1795.  
  1796. local magazineNewPropWeld = Instance.new("Weld")
  1797. leftarm = tool.Parent["Left Arm"]
  1798. magazineNewPropWeldG = magazineNewPropWeld
  1799. magazineNewPropWeld.Parent = magazineNewProp
  1800. magazineNewPropWeld.Part0 = magazineNewProp
  1801. magazineNewPropWeld.Part1 = leftarm
  1802. magazineNewPropWeld.C0 = CFrame.new(-0,-.6,0.8) * convertToCFrameDegrees(0, 90, 90)
  1803.  
  1804. local reloadTween = 12
  1805. for i = 1, reloadTween do
  1806. weldLeftG.C1 = CFrame.new(1.15 - 1.2/reloadTween*i , -0.1 + 0.8/reloadTween*i, -0.3 + 1/reloadTween*i) * convertToCFrameDegrees(335 - 10/reloadTween*i, 35 - 35/reloadTween*i, -0 - 90/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1807. weldRightG.C1 = CFrame.new(-0.95 - 0/reloadTween*i, -0.1 - 0.3/reloadTween*i, 1.1 - 0.8/reloadTween*i) * convertToCFrameDegrees(-90 - 5/reloadTween*i, -15, 15 - 15/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1808. wait(0.03)
  1809. end
  1810. while tool:FindFirstChild("MagazineProp") do
  1811. tool:FindFirstChild("MagazineProp"):Destroy()
  1812. end
  1813. tool.Magazine.Transparency = 0
  1814.  
  1815. MagazineIn:Play()
  1816.  
  1817. wait(.2)
  1818.  
  1819. if wasAmmoLoaded == 0 then
  1820. chargingHandle()
  1821. else
  1822.  
  1823. local reloadTween = 6
  1824. for i = 1, reloadTween do
  1825. weldLeftG.C1 = CFrame.new(-0.05 -0.30/reloadTween*i , 0.7 + 0.2/reloadTween*i, 0.7 + 0/reloadTween*i) * convertToCFrameDegrees(325 - 20/reloadTween*i, 0 + 5/reloadTween*i, -90 - 0/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1826. weldRightG.C1 = CFrame.new(-0.95 - 0/reloadTween*i, -0.4 - 0.0/reloadTween*i, 0.3 - 0.0/reloadTween*i) *convertToCFrameDegrees(-95 + 5/reloadTween*i, -15, 0 + 0/reloadTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1827. wait(0.03)
  1828. end
  1829.  
  1830. end
  1831.  
  1832. weldLeftG.C1 = CFrame.new(-0.35, 0.9, 0.7) * convertToCFrameDegrees(305, 5, -90) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1833. weldRightG.C1 = CFrame.new(-0.95, -0.4, 0.3) * convertToCFrameDegrees(-90, -15, 0) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1834. wait(0.2)
  1835.  
  1836.  
  1837. if not cancelStatus then
  1838. if wasAmmoLoaded == 0 then
  1839. AmmoLoaded = AmmoMax
  1840. else
  1841. AmmoLoaded = AmmoMax + 1 -- YES, THERE IS STILL A BOOLET CHAMBERED
  1842. end
  1843. end
  1844. changeGunStatus("enable")
  1845. tool.Enabled = true
  1846. updateHUD()
  1847. end
  1848. end
  1849.  
  1850. function removeWeldArms(mouse) -- INDEX: F-RMVWD ... Removes the arm weld and restores previous values.
  1851. toolIsEquipped = false
  1852. changeGunStatus("enable")
  1853. cancelStatus = true
  1854. recoilMultiplier = defaultRecoilMultiplier
  1855. if Cam then
  1856. Cam.CameraSubject = playerHumanoid
  1857. Cam.CameraType = "Custom"
  1858. Cam.FieldOfView = zoomMin
  1859. end
  1860. if tool then
  1861. tool.Muzzle.PointLight.Enabled = false
  1862. tool.Muzzle.BillboardGui.Enabled = false
  1863. end
  1864. if playerHumanoid then
  1865. playerHumanoid.WalkSpeed = playerSpeed
  1866. end
  1867. if playerPlayer then
  1868. playerPlayer.CameraMode = "Classic"
  1869. end
  1870. while playerPlayer.PlayerGui:FindFirstChild("HudGui") do
  1871. playerPlayer.PlayerGui:FindFirstChild("HudGui"):Destroy()
  1872. wait(0.03)
  1873. end
  1874.  
  1875. if arms ~= nil and torso ~= nil then
  1876. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  1877.  
  1878. if sh ~= nil then
  1879. local yes = true
  1880. if yes then
  1881. yes = false
  1882. sh[1].Part1 = arms[1]
  1883. sh[2].Part1 = arms[2]
  1884. welds[1].Parent = nil
  1885. welds[2].Parent = nil
  1886. falseArmLeftG:Destroy()
  1887. falseArmRightG:Destroy()
  1888. end
  1889. end
  1890. end
  1891. end
  1892.  
  1893. function onDied() -- INDEX: F-ONDIE ... Restores values when the player dies.
  1894. toolIsEquipped = false
  1895. changeGunStatus("enable")
  1896. recoilMultiplier = defaultRecoilMultiplier
  1897. if Cam then
  1898. Cam.CameraSubject = playerHumanoid
  1899. Cam.CameraType = "Custom"
  1900. Cam.FieldOfView = zoomMin
  1901. end
  1902. if tool then
  1903. tool.Muzzle.PointLight.Enabled = false
  1904. tool.Muzzle.BillboardGui.Enabled = false
  1905. end
  1906. if playerHumanoid then
  1907. playerHumanoid.WalkSpeed = playerSpeed
  1908. end
  1909. if playerPlayer then
  1910. playerPlayer.CameraMode = "Classic"
  1911. end
  1912. while playerPlayer.PlayerGui:FindFirstChild("HudGui") do
  1913. playerPlayer.PlayerGui:FindFirstChild("HudGui"):Destroy()
  1914. wait(0.03)
  1915. end
  1916. end
  1917.  
  1918. function zoomIn() -- INDEX: F-ZOMIN ... Zooms in the gun.
  1919. recoilMultiplier = zoomRecoilMultiplier
  1920. playerHumanoid.WalkSpeed = playerSpeed * zoomWalkSpeedMultiplier
  1921. playerPlayer.CameraMode = "LockFirstPerson"
  1922. wait(0.03)
  1923. Cam.CameraType = "Attach"
  1924. Cam.CameraSubject = tool.Sights
  1925. Cam.Focus = tool.Sights.CFrame
  1926. wait(0.03)
  1927. for i = 1, zoomFrames do
  1928. Cam.FieldOfView = Cam.FieldOfView + (zoomMax - Cam.FieldOfView)/3
  1929. Cam.CoordinateFrame = tool.Sights.CFrame * CFrame.new(0,0,1.6) * CFrame.new(0,0,-0.6/zoomFrames*i)
  1930. wait(0.03)
  1931. end
  1932. Cam.CoordinateFrame = tool.Sights.CFrame * CFrame.new(0,0,1.0)
  1933. Cam.FieldOfView = zoomMax
  1934. isZoomed = true
  1935. tool.Equipped:connect(function(mouse)
  1936. mouse.Icon = "http://www.roblox.com/asset/?id=133339236" -- Invisible mouse.
  1937. end)
  1938. end
  1939.  
  1940. function zoomOut() -- INDEX: F-ZMOUT ... Zooms out the gun.
  1941. recoilMultiplier = defaultRecoilMultiplier
  1942. playerHumanoid.WalkSpeed = playerSpeed
  1943. Cam.CameraSubject = playerHumanoid
  1944. playerPlayer.CameraMode = "LockFirstPerson"
  1945. Cam.CameraType = "Custom"
  1946. for i = 1, zoomFrames do
  1947. Cam.FieldOfView = Cam.FieldOfView + (zoomMin - Cam.FieldOfView)/3
  1948. wait(0.03)
  1949. end
  1950. Cam.FieldOfView = zoomMin
  1951. isZoomed = false
  1952. tool.Equipped:connect(function(mouse)
  1953. mouse.Icon = "http://www.roblox.com/asset/?id=131424826" -- Crosshair.
  1954. end)
  1955. end
  1956.  
  1957. function fireModeChange() -- INDEX: F-MDCHG ... Changes the firemodes.
  1958. FireModeClick:Play()
  1959. if fireMode == 1 then
  1960. fireMode = 2
  1961. updateHUD()
  1962. elseif fireMode == 2 then
  1963. fireMode = 3
  1964. updateHUD()
  1965. elseif fireMode == 3 then
  1966. fireMode = 1
  1967. updateHUD()
  1968. end
  1969. end
  1970.  
  1971. function fireModeAnimate() -- INDEX: F-FMANI ... Animation for changing fire modes.
  1972.  
  1973. local fireModeAnimateTween = 8
  1974. for i = 1, fireModeAnimateTween do
  1975. weldLeftG.C1 = CFrame.new(-0.35, 0.9 - 0.8/fireModeAnimateTween*i, 0.7) * convertToCFrameDegrees(305 + 30/fireModeAnimateTween*i, 5, -90) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1976. weldRightG.C1 = CFrame.new(-0.95, -0.4 + 0.1/fireModeAnimateTween*i, 0.3) * convertToCFrameDegrees(-90, -15, 0 + 5/fireModeAnimateTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1977. tool.GripPos = Vector3.new(0, -0.6, 0.2 - .1/fireModeAnimateTween*i)
  1978. wait(0.03)
  1979. end
  1980.  
  1981. wait(.1)
  1982. fireModeAnimateTween = 3
  1983. for i = 1, fireModeAnimateTween do
  1984. weldLeftG.C1 = CFrame.new(-0.35, 0.1 - 0/fireModeAnimateTween*i, 0.7) * convertToCFrameDegrees(335 + 0/fireModeAnimateTween*i, 5 - 10/fireModeAnimateTween*i, -90) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1985. weldRightG.C1 = CFrame.new(-0.95, -0.3 + 0/fireModeAnimateTween*i, 0.3) * convertToCFrameDegrees(-90, -15, 5 + 0/fireModeAnimateTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1986. tool.GripPos = Vector3.new(0, -0.6, 0.1 - 0/fireModeAnimateTween*i)
  1987. wait(0.03)
  1988. end
  1989. fireModeChange()
  1990.  
  1991. wait(0.2)
  1992. fireModeAnimateTween = 8
  1993. for i = 1, fireModeAnimateTween do
  1994. weldLeftG.C1 = CFrame.new(-0.35, 0.1 + 0.8/fireModeAnimateTween*i, 0.7) * convertToCFrameDegrees(335 - 30/fireModeAnimateTween*i, -5 + 10/fireModeAnimateTween*i, -90) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1995. weldRightG.C1 = CFrame.new(-0.95, -0.3 - 0.1/fireModeAnimateTween*i, 0.3) * convertToCFrameDegrees(-90, -15, 5 - 5/fireModeAnimateTween*i) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  1996. tool.GripPos = Vector3.new(0, -0.6, 0.1 + 0.1/fireModeAnimateTween*i)
  1997. wait(0.03)
  1998. end
  1999. weldLeftG.C1 = CFrame.new(-0.35, 0.9, 0.7) * convertToCFrameDegrees(305, 5, -90) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  2000. weldRightG.C1 = CFrame.new(-0.95, -0.4, 0.3) * convertToCFrameDegrees(-90, -15, 0) * CFrame.Angles(aimLimiterY.Value, 0, 0)
  2001. tool.GripPos = Vector3.new(0, -0.6, 0.2)
  2002. end
  2003.  
  2004. function commandKeys(key) -- INDEX: F-CMDKS ... List of key bindings.
  2005. if key == "v" and canCycleModes then
  2006. changeGunStatus("disable")
  2007. fireModeAnimate()
  2008. wait(.5)
  2009. changeGunStatus("enable")
  2010. elseif key == "z" and canZoom then
  2011. changeGunStatus("disable")
  2012. if not isZoomed then
  2013. zoomIn()
  2014. elseif isZoomed then
  2015. zoomOut()
  2016. end
  2017. wait(.5)
  2018. changeGunStatus("enable")
  2019. elseif key == "r" and canReload and not reloading and AmmoLoaded < AmmoMax then
  2020. changeGunStatus("disable")
  2021. reloading = true
  2022. canReload = true
  2023. Reload()
  2024. reloading = false
  2025. wait(.5)
  2026. changeGunStatus("enable")
  2027. end
  2028. end
  2029.  
  2030. tool.Equipped:connect(WeldArms)
  2031. tool.Unequipped:connect(removeWeldArms)
  2032. tool.Activated:connect(onActivated)
  2033. game.Players.LocalPlayer.Character.Humanoid.Died:connect(onDied)
  2034. ]===]
  2035. s1.Parent = t1
  2036. w1 = Instance.new("Weld", p1)
  2037. w1.Name = "Part_Weld"
  2038. w1.Part0 = p1
  2039. w1.C0 = CFrame.new(0.756184518, -2.74319601, -2.33517456, 0.965925753, -0.258819014, 0, 0.258819014, 0.965925753, 0, 0, 0, 1)
  2040. w1.Part1 = p2
  2041. w1.C1 = CFrame.new(0.787225664, -2.73487854, 2.33517456, -0.965925753, -0.258819014, 0, -0.258819014, 0.965925753, 0, 0, 0, -1)
  2042. w2 = Instance.new("Weld", p2)
  2043. w2.Name = "Part_Weld"
  2044. w2.Part0 = p2
  2045. w2.C0 = CFrame.new(0.787225664, -2.73487854, 2.33517456, -0.965925753, -0.258819014, 0, -0.258819014, 0.965925753, 0, 0, 0, -1)
  2046. w2.Part1 = p3
  2047. w2.C1 = CFrame.new(0.0160714388, -2.68821263, 0.903213501, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2048. w3 = Instance.new("Weld", p3)
  2049. w3.Name = "Part_Weld"
  2050. w3.Part0 = p3
  2051. w3.C0 = CFrame.new(0.0160714388, -2.68821263, 0.903213501, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2052. w3.Part1 = p4
  2053. w3.C1 = CFrame.new(-0.675425708, -2.72381067, 2.33517456, -0.965925813, 0.258819044, 0, 0.258819044, 0.965925813, 0, 0, 0, -1)
  2054. w4 = Instance.new("Weld", p4)
  2055. w4.Name = "Part_Weld"
  2056. w4.Part0 = p4
  2057. w4.C0 = CFrame.new(-0.675425708, -2.72381067, 2.33517456, -0.965925813, 0.258819044, 0, 0.258819044, 0.965925813, 0, 0, 0, -1)
  2058. w4.Part1 = p5
  2059. w4.C1 = CFrame.new(-0.706466854, -2.7154932, -2.33517456, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813, 0, 0, 0, 1)
  2060. w5 = Instance.new("Weld", p5)
  2061. w5.Name = "Part_Weld"
  2062. w5.Part0 = p5
  2063. w5.C0 = CFrame.new(-0.706466854, -2.7154932, -2.33517456, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813, 0, 0, 0, 1)
  2064. w5.Part1 = p6
  2065. w5.C1 = CFrame.new(0.0160714388, -2.81357121, 2.33197021, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2066. w6 = Instance.new("Weld", p6)
  2067. w6.Name = "Port1_Weld"
  2068. w6.Part0 = p6
  2069. w6.C0 = CFrame.new(0.0160714388, -2.81357121, 2.33197021, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2070. w6.Part1 = p7
  2071. w6.C1 = CFrame.new(-0.135000229, -2.63678288, 0.413036346, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2072. w7 = Instance.new("Weld", p7)
  2073. w7.Name = "Port_Weld"
  2074. w7.Part0 = p7
  2075. w7.C0 = CFrame.new(-0.135000229, -2.63678288, 0.413036346, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2076. w7.Part1 = p8
  2077. w7.C1 = CFrame.new(-0.0932145119, -2.64482427, 0.295715332, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2078. w8 = Instance.new("Weld", p8)
  2079. w8.Name = "Part_Weld"
  2080. w8.Part0 = p8
  2081. w8.C0 = CFrame.new(-0.0932145119, -2.64482427, 0.295715332, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2082. w8.Part1 = p9
  2083. w8.C1 = CFrame.new(-0.0160714388, -1.51714325, 2.66893315, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2084. w9 = Instance.new("Weld", p9)
  2085. w9.Name = "Part_Weld"
  2086. w9.Part0 = p9
  2087. w9.C0 = CFrame.new(-0.0160714388, -1.51714325, 2.66893315, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2088. w9.Part1 = p10
  2089. w9.C1 = CFrame.new(2.94696355, 0.0144642591, 0.303749084, 0, -1, -0, -1, 0, -0, 0, 0, -1)
  2090. w10 = Instance.new("Weld", p10)
  2091. w10.Name = "Part_Weld"
  2092. w10.Part0 = p10
  2093. w10.C0 = CFrame.new(2.94696355, 0.0144642591, 0.303749084, 0, -1, -0, -1, 0, -0, 0, 0, -1)
  2094. w10.Part1 = p11
  2095. w10.C1 = CFrame.new(0.0160714388, -2.84250188, -0.0353572369, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2096. w11 = Instance.new("Weld", p11)
  2097. w11.Name = "Part_Weld"
  2098. w11.Part0 = p11
  2099. w11.C0 = CFrame.new(0.0160714388, -2.84250188, -0.0353572369, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2100. w11.Part1 = p12
  2101. w11.C1 = CFrame.new(2.94696355, 0.0144642591, 0.0305356979, 0, -1, -0, -1, 0, -0, 0, 0, -1)
  2102. w12 = Instance.new("Weld", p12)
  2103. w12.Name = "Part_Weld"
  2104. w12.Part0 = p12
  2105. w12.C0 = CFrame.new(2.94696355, 0.0144642591, 0.0305356979, 0, -1, -0, -1, 0, -0, 0, 0, -1)
  2106. w12.Part1 = p13
  2107. w12.C1 = CFrame.new(0.0160714388, -3.06267858, 0.0305356979, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2108. w13 = Instance.new("Weld", p13)
  2109. w13.Name = "Part_Weld"
  2110. w13.Part0 = p13
  2111. w13.C0 = CFrame.new(0.0160714388, -3.06267858, 0.0305356979, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2112. w13.Part1 = p14
  2113. w13.C1 = CFrame.new(0.0160714388, -2.81035924, 0.0530357361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2114. w14 = Instance.new("Weld", p14)
  2115. w14.Name = "Part_Weld"
  2116. w14.Part0 = p14
  2117. w14.C0 = CFrame.new(0.0160714388, -2.81035924, 0.0530357361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2118. w14.Part1 = p15
  2119. w14.C1 = CFrame.new(-2.94696331, 0.128571495, 0.0305356979, 0, 0.99999994, 0, 0.99999994, 0, 0, 0, 0, -1)
  2120. w15 = Instance.new("Weld", p15)
  2121. w15.Name = "Part_Weld"
  2122. w15.Part0 = p15
  2123. w15.C0 = CFrame.new(-2.94696331, 0.128571495, 0.0305356979, 0, 0.99999994, 0, 0.99999994, 0, 0, 0, 0, -1)
  2124. w15.Part1 = p16
  2125. w15.C1 = CFrame.new(0.0160713792, -2.68821263, 0.0289286375, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2126. w16 = Instance.new("Weld", p16)
  2127. w16.Name = "Part_Weld"
  2128. w16.Part0 = p16
  2129. w16.C0 = CFrame.new(0.0160713792, -2.68821263, 0.0289286375, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2130. w16.Part1 = p17
  2131. w16.C1 = CFrame.new(-0.0160714388, -0.083571434, 2.68178868, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2132. w17 = Instance.new("Weld", p17)
  2133. w17.Name = "Part_Weld"
  2134. w17.Part0 = p17
  2135. w17.C0 = CFrame.new(-0.0160714388, -0.083571434, 2.68178868, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2136. w17.Part1 = p18
  2137. w17.C1 = CFrame.new(-0.0160714388, -0.0707144737, 2.94696355, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2138. w18 = Instance.new("Weld", p18)
  2139. w18.Name = "Sights_Weld"
  2140. w18.Part0 = p18
  2141. w18.C0 = CFrame.new(-0.0160714388, -0.0707144737, 2.94696355, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2142. w18.Part1 = p19
  2143. w18.C1 = CFrame.new(2.94696355, 0.0160714388, 0.0691070557, 0, -1, -0, -1, 0, -0, 0, 0, -1)
  2144. w19 = Instance.new("Weld", p19)
  2145. w19.Name = "Part_Weld"
  2146. w19.Part0 = p19
  2147. w19.C0 = CFrame.new(2.94696355, 0.0160714388, 0.0691070557, 0, -1, -0, -1, 0, -0, 0, 0, -1)
  2148. w19.Part1 = p20
  2149. w19.C1 = CFrame.new(0.0160714388, -2.65446782, 0.03214252, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2150. w20 = Instance.new("Weld", p20)
  2151. w20.Name = "Part_Weld"
  2152. w20.Part0 = p20
  2153. w20.C0 = CFrame.new(0.0160714388, -2.65446782, 0.03214252, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2154. w20.Part1 = p21
  2155. w20.C1 = CFrame.new(-0.0289285183, -0.0883928165, 2.71232152, 0, 0, 1, -1, 2.98023224e-008, 8.8817842e-016, -2.98023224e-008, -1, 0)
  2156. w21 = Instance.new("Weld", p21)
  2157. w21.Name = "Part_Weld"
  2158. w21.Part0 = p21
  2159. w21.C0 = CFrame.new(-0.0289285183, -0.0883928165, 2.71232152, 0, 0, 1, -1, 2.98023224e-008, 8.8817842e-016, -2.98023224e-008, -1, 0)
  2160. w21.Part1 = p22
  2161. w21.C1 = CFrame.new(0.0289286375, -0.120535769, 2.71232152, 0, 0, -1, 1, -2.98023224e-008, -8.8817842e-016, -2.98023224e-008, -1, 0)
  2162. w22 = Instance.new("Weld", p22)
  2163. w22.Name = "Part_Weld"
  2164. w22.Part0 = p22
  2165. w22.C0 = CFrame.new(0.0289286375, -0.120535769, 2.71232152, 0, 0, -1, 1, -2.98023224e-008, -8.8817842e-016, -2.98023224e-008, -1, 0)
  2166. w22.Part1 = p23
  2167. w22.C1 = CFrame.new(2.94696355, 0.0144642591, -0.162321091, 0, -1, -0, -1, 0, -0, 0, 0, -1)
  2168. w23 = Instance.new("Weld", p23)
  2169. w23.Name = "Part_Weld"
  2170. w23.Part0 = p23
  2171. w23.C0 = CFrame.new(2.94696355, 0.0144642591, -0.162321091, 0, -1, -0, -1, 0, -0, 0, 0, -1)
  2172. w23.Part1 = p24
  2173. w23.C1 = CFrame.new(0.0160714388, -2.68178868, -0.424285889, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2174. w24 = Instance.new("Weld", p24)
  2175. w24.Name = "Handle_Weld"
  2176. w24.Part0 = p24
  2177. w24.C0 = CFrame.new(0.0160714388, -2.68178868, -0.424285889, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2178. w24.Part1 = p25
  2179. w24.C1 = CFrame.new(0.0160714388, -2.50982213, -0.0176784992, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2180. w25 = Instance.new("Weld", p25)
  2181. w25.Name = "Part_Weld"
  2182. w25.Part0 = p25
  2183. w25.C0 = CFrame.new(0.0160714388, -2.50982213, -0.0176784992, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2184. w25.Part1 = p26
  2185. w25.C1 = CFrame.new(0.0160714388, -2.59499669, 1.27285767, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2186. w26 = Instance.new("Weld", p26)
  2187. w26.Name = "Part_Weld"
  2188. w26.Part0 = p26
  2189. w26.C0 = CFrame.new(0.0160714388, -2.59499669, 1.27285767, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2190. w26.Part1 = p27
  2191. w26.C1 = CFrame.new(0.0160714388, -2.67696691, 2.33517456, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2192. w27 = Instance.new("Weld", p27)
  2193. w27.Name = "Part_Weld"
  2194. w27.Part0 = p27
  2195. w27.C0 = CFrame.new(0.0160714388, -2.67696691, 2.33517456, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2196. w27.Part1 = p28
  2197. w27.C1 = CFrame.new(-0.0160714388, -2.67696691, -2.26286316, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2198. w28 = Instance.new("Weld", p28)
  2199. w28.Name = "Part_Weld"
  2200. w28.Part0 = p28
  2201. w28.C0 = CFrame.new(-0.0160714388, -2.67696691, -2.26286316, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2202. w28.Part1 = p29
  2203. w28.C1 = CFrame.new(0.0160714388, -1.95102918, -1.84061432, -1, 0, 0, 0, 0.832050264, 0.554700196, 0, 0.554700196, -0.832050264)
  2204. w29 = Instance.new("Weld", p29)
  2205. w29.Name = "Part_Weld"
  2206. w29.Part0 = p29
  2207. w29.C0 = CFrame.new(0.0160714388, -1.95102918, -1.84061432, -1, 0, 0, 0, 0.832050264, 0.554700196, 0, 0.554700196, -0.832050264)
  2208. w29.Part1 = p30
  2209. w29.C1 = CFrame.new(-0.0160714388, -2.65124822, 0.540000916, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2210. w30 = Instance.new("Weld", p30)
  2211. w30.Name = "Part_Weld"
  2212. w30.Part0 = p30
  2213. w30.C0 = CFrame.new(-0.0160714388, -2.65124822, 0.540000916, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2214. w30.Part1 = p31
  2215. w30.C1 = CFrame.new(0.0160714388, -2.06562233, 2.37332678, -1, 0, 0, 0, 0.965925813, -0.258819044, 0, -0.258819044, -0.965925813)
  2216. w31 = Instance.new("Weld", p31)
  2217. w31.Name = "Part_Weld"
  2218. w31.Part0 = p31
  2219. w31.C0 = CFrame.new(0.0160714388, -2.06562233, 2.37332678, -1, 0, 0, 0, 0.965925813, -0.258819044, 0, -0.258819044, -0.965925813)
  2220. w31.Part1 = p32
  2221. w31.C1 = CFrame.new(0.0160714388, -2.51946568, -0.835712433, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2222. w32 = Instance.new("Weld", p32)
  2223. w32.Name = "Part_Weld"
  2224. w32.Part0 = p32
  2225. w32.C0 = CFrame.new(0.0160714388, -2.51946568, -0.835712433, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2226. w32.Part1 = p33
  2227. w32.C1 = CFrame.new(0.0160714388, -2.5537107, -0.374415815, -1, 0, 0, 0, 0.959365368, -0.282166302, 0, -0.282166302, -0.959365368)
  2228. w33 = Instance.new("Weld", p33)
  2229. w33.Name = "Part_Weld"
  2230. w33.Part0 = p33
  2231. w33.C0 = CFrame.new(0.0160714388, -2.5537107, -0.374415815, -1, 0, 0, 0, 0.959365368, -0.282166302, 0, -0.282166302, -0.959365368)
  2232. w33.Part1 = p34
  2233. w33.C1 = CFrame.new(0.0160714388, -1.97699273, 1.42430127, -1, 0, 0, 0, 0.707106769, -0.707106769, 0, -0.707106769, -0.707106769)
  2234. w34 = Instance.new("Weld", p34)
  2235. w34.Name = "Part_Weld"
  2236. w34.Part0 = p34
  2237. w34.C0 = CFrame.new(0.0160714388, -1.97699273, 1.42430127, -1, 0, 0, 0, 0.707106769, -0.707106769, 0, -0.707106769, -0.707106769)
  2238. w34.Part1 = p35
  2239. w34.C1 = CFrame.new(0.0160714388, -2.51946568, 0.903213501, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2240. w35 = Instance.new("Weld", p35)
  2241. w35.Name = "Part_Weld"
  2242. w35.Part0 = p35
  2243. w35.C0 = CFrame.new(0.0160714388, -2.51946568, 0.903213501, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2244. w35.Part1 = p36
  2245. w35.C1 = CFrame.new(0.0160714388, -2.50339031, -1.29214466, -1, 0, 0, 0, 0.999999881, 0, 0, 0, -0.999999881)
  2246. w36 = Instance.new("Weld", p36)
  2247. w36.Name = "Part_Weld"
  2248. w36.Part0 = p36
  2249. w36.C0 = CFrame.new(0.0160714388, -2.50339031, -1.29214466, -1, 0, 0, 0, 0.999999881, 0, 0, 0, -0.999999881)
  2250. w36.Part1 = p37
  2251. w36.C1 = CFrame.new(-0.0160714388, -1.31143188, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2252. w37 = Instance.new("Weld", p37)
  2253. w37.Name = "Part_Weld"
  2254. w37.Part0 = p37
  2255. w37.C0 = CFrame.new(-0.0160714388, -1.31143188, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2256. w37.Part1 = p38
  2257. w37.C1 = CFrame.new(-0.0160714388, 2.37803197, -0.0176784992, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  2258. w38 = Instance.new("Weld", p38)
  2259. w38.Name = "Part_Weld"
  2260. w38.Part0 = p38
  2261. w38.C0 = CFrame.new(-0.0160714388, 2.37803197, -0.0176784992, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  2262. w38.Part1 = p39
  2263. w38.C1 = CFrame.new(0.0160714388, -2.34428716, -0.208929062, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2264. w39 = Instance.new("Weld", p39)
  2265. w39.Name = "Part_Weld"
  2266. w39.Part0 = p39
  2267. w39.C0 = CFrame.new(0.0160714388, -2.34428716, -0.208929062, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2268. w39.Part1 = p40
  2269. w39.C1 = CFrame.new(0.0160714388, -2.34267712, -1.68267798, -1, 0, 0, 0, 0.999999881, 0, 0, 0, -0.999999881)
  2270. w40 = Instance.new("Weld", p40)
  2271. w40.Name = "Part_Weld"
  2272. w40.Part0 = p40
  2273. w40.C0 = CFrame.new(0.0160714388, -2.34267712, -1.68267798, -1, 0, 0, 0, 0.999999881, 0, 0, 0, -0.999999881)
  2274. w40.Part1 = p41
  2275. w40.C1 = CFrame.new(0.0160714388, -2.29446721, -0.363214493, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2276. w41 = Instance.new("Weld", p41)
  2277. w41.Name = "Part_Weld"
  2278. w41.Part0 = p41
  2279. w41.C0 = CFrame.new(0.0160714388, -2.29446721, -0.363214493, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2280. w41.Part1 = p42
  2281. w41.C1 = CFrame.new(-0.0160714388, 2.20606923, -1.12178802, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  2282. w42 = Instance.new("Weld", p42)
  2283. w42.Name = "Part_Weld"
  2284. w42.Part0 = p42
  2285. w42.C0 = CFrame.new(-0.0160714388, 2.20606923, -1.12178802, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  2286. w42.Part1 = p43
  2287. w42.C1 = CFrame.new(-0.0160714388, -1.86267853, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2288. w43 = Instance.new("Weld", p43)
  2289. w43.Name = "Part_Weld"
  2290. w43.Part0 = p43
  2291. w43.C0 = CFrame.new(-0.0160714388, -1.86267853, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2292. w43.Part1 = p44
  2293. w43.C1 = CFrame.new(-0.0160714388, -1.79518127, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2294. w44 = Instance.new("Weld", p44)
  2295. w44.Name = "Part_Weld"
  2296. w44.Part0 = p44
  2297. w44.C0 = CFrame.new(-0.0160714388, -1.79518127, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2298. w44.Part1 = p45
  2299. w44.C1 = CFrame.new(0.0160714388, -1.75278902, 1.48920751, -1, 0, 0, 0, 0.707106709, -0.707106769, 0, -0.707106769, -0.707106709)
  2300. w45 = Instance.new("Weld", p45)
  2301. w45.Name = "Part_Weld"
  2302. w45.Part0 = p45
  2303. w45.C0 = CFrame.new(0.0160714388, -1.75278902, 1.48920751, -1, 0, 0, 0, 0.707106709, -0.707106769, 0, -0.707106769, -0.707106709)
  2304. w45.Part1 = p46
  2305. w45.C1 = CFrame.new(-0.0160713792, 2.40536046, 0.903213501, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  2306. w46 = Instance.new("Weld", p46)
  2307. w46.Name = "Part_Weld"
  2308. w46.Part0 = p46
  2309. w46.C0 = CFrame.new(-0.0160713792, 2.40536046, 0.903213501, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  2310. w46.Part1 = p47
  2311. w46.C1 = CFrame.new(0.0160714388, -2.29928899, 0.106071472, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2312. w47 = Instance.new("Weld", p47)
  2313. w47.Name = "Part_Weld"
  2314. w47.Part0 = p47
  2315. w47.C0 = CFrame.new(0.0160714388, -2.29928899, 0.106071472, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2316. w47.Part1 = p48
  2317. w47.C1 = CFrame.new(0.0160714388, -1.39628398, -1.73599315, -1, 0, 0, 0, 0.707106709, 0.707106769, 0, 0.707106769, -0.707106709)
  2318. w48 = Instance.new("Weld", p48)
  2319. w48.Name = "Part_Weld"
  2320. w48.Part0 = p48
  2321. w48.C0 = CFrame.new(0.0160714388, -1.39628398, -1.73599315, -1, 0, 0, 0, 0.707106709, 0.707106769, 0, 0.707106769, -0.707106709)
  2322. w48.Part1 = p49
  2323. w48.C1 = CFrame.new(-0.0160714388, -2.31750488, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2324. w49 = Instance.new("Weld", p49)
  2325. w49.Name = "Part_Weld"
  2326. w49.Part0 = p49
  2327. w49.C0 = CFrame.new(-0.0160714388, -2.31750488, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2328. w49.Part1 = p50
  2329. w49.C1 = CFrame.new(0.0160714388, 1.5382452, -1.59402049, -1, 0, 0, 0, -0.70710665, 0.70710659, 0, 0.70710659, 0.70710665)
  2330. w50 = Instance.new("Weld", p50)
  2331. w50.Name = "Part_Weld"
  2332. w50.Part0 = p50
  2333. w50.C0 = CFrame.new(0.0160714388, 1.5382452, -1.59402049, -1, 0, 0, 0, -0.70710665, 0.70710659, 0, 0.70710659, 0.70710665)
  2334. w50.Part1 = p51
  2335. w50.C1 = CFrame.new(0.0160714388, -2.19481969, -0.101250172, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2336. w51 = Instance.new("Weld", p51)
  2337. w51.Name = "Part_Weld"
  2338. w51.Part0 = p51
  2339. w51.C0 = CFrame.new(0.0160714388, -2.19481969, -0.101250172, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2340. w51.Part1 = p52
  2341. w51.C1 = CFrame.new(-0.0160714388, -2.58267212, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2342. w52 = Instance.new("Weld", p52)
  2343. w52.Name = "Part_Weld"
  2344. w52.Part0 = p52
  2345. w52.C0 = CFrame.new(-0.0160714388, -2.58267212, 2.50821233, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  2346. w52.Part1 = p53
  2347. w52.C1 = CFrame.new(0.0160714388, -0.929545939, 1.94874859, -1, 0, 0, 0, 0.258818924, -0.965925336, 0, -0.965925336, -0.258818924)
  2348. w53 = Instance.new("Weld", p53)
  2349. w53.Name = "Muzzle_Weld"
  2350. w53.Part0 = p53
  2351. w53.C0 = CFrame.new(0.0160714388, -0.929545939, 1.94874859, -1, 0, 0, 0, 0.258818924, -0.965925336, 0, -0.965925336, -0.258818924)
  2352. w53.Part1 = p54
  2353. w53.C1 = CFrame.new(0.0160714388, -2.50500035, 2.72732544, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2354. w54 = Instance.new("Weld", p54)
  2355. w54.Name = "Part_Weld"
  2356. w54.Part0 = p54
  2357. w54.C0 = CFrame.new(0.0160714388, -2.50500035, 2.72732544, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2358. w54.Part1 = p55
  2359. w54.C1 = CFrame.new(0.0160714388, -1.26582658, 1.70297062, -1, 0, 0, 0, 0.4130584, -0.910704195, 0, -0.910704195, -0.4130584)
  2360. w55 = Instance.new("Weld", p55)
  2361. w55.Name = "Magazine_Weld"
  2362. w55.Part0 = p55
  2363. w55.C0 = CFrame.new(0.0160714388, -1.26582658, 1.70297062, -1, 0, 0, 0, 0.4130584, -0.910704195, 0, -0.910704195, -0.4130584)
  2364. w55.Part1 = p56
  2365. w55.C1 = CFrame.new(0.0160716232, -2.11138749, 0.431415588, -1, -8.7339572e-008, 3.81334031e-009, -8.74227766e-008, 0.999048233, -0.0436195284, 0, -0.0436195284, -0.999048233)
  2366. w56 = Instance.new("Weld", p56)
  2367. w56.Name = "Part_Weld"
  2368. w56.Part0 = p56
  2369. w56.C0 = CFrame.new(0.0160716232, -2.11138749, 0.431415588, -1, -8.7339572e-008, 3.81334031e-009, -8.74227766e-008, 0.999048233, -0.0436195284, 0, -0.0436195284, -0.999048233)
  2370. w56.Part1 = p57
  2371. w56.C1 = CFrame.new(0.0160714388, -0.935975611, 1.77517748, -1, 0, 0, 0, 0.258818924, -0.965925336, 0, -0.965925336, -0.258818924)
  2372. m.Parent = game:service("Workspace")
  2373. m:MakeJoints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement