Advertisement
Guest User

AK-47 Script RBLX

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