Dark_EccentricYT

Untitled

Jul 28th, 2018
4,077
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.53 KB | None | 0 0
  1. local player=game:service'Players'.LocalPlayer
  2. local char=player.Character
  3. local mouse=player:GetMouse()
  4. local tpressed = false
  5. local tpressed2 = 0
  6. local epressed = false
  7. local epressed2 = 0
  8. local ra = char['Right Arm']
  9. local la = char['Left Arm']
  10. local v3 = Vector3.new
  11. local cfn = CFrame.new
  12. local ang = CFrame.Angles
  13. local mr = math.rad
  14. local canfire = false
  15. local camera = game.Workspace.CurrentCamera
  16. local tor = char.Torso
  17. local Ammo = 99999
  18. local firin = false
  19. Smp = "SmoothPlastic"
  20. Sm = "Smooth"
  21. function makepart(parent,color,size,name,anchored,cancollide)
  22. local part = Instance.new("Part")
  23. part.Parent = parent
  24. part.Size = size
  25. part.Name = name
  26. part.Anchored = anchored
  27. part.CanCollide = cancollide
  28. part.TopSurface = "Smooth"
  29. part.BottomSurface = "Smooth"
  30. part.BrickColor = BrickColor.new(color)
  31. part:BreakJoints()
  32. return part
  33. end
  34. function weld(p0,p1,c0)
  35. local w=Instance.new("Weld",p0)
  36. w.Part0=p0
  37. w.Part1=p1
  38. w.C0=c0
  39. return w
  40. end
  41.  
  42. ---Clothing------------------------------------------------------
  43. if char:findFirstChild("Shirt") then
  44. char.Shirt:Remove()
  45. end
  46.  
  47. if char:findFirstChild("Pants") then
  48. char.Pants:Remove()
  49. end
  50.  
  51. if char:findFirstChild("Shirt Graphic") then
  52. char["Shirt Graphic"]:Remove()
  53. end
  54.  
  55. if char.Torso:findFirstChild("roblox") then
  56. char.Torso.roblox:Remove()
  57. end
  58.  
  59. local Shirt = Instance.new("Shirt",char)
  60. local Pants = Instance.new("Pants",char)
  61. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=15947510"
  62. Pants.PantsTemplate = "http://www.roblox.com/asset/?id=32389160"
  63. -----------------------------------------------------------------
  64.  
  65. ---Hat-----------------------------------------------------------------------------
  66. for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  67.  
  68. local hat = Instance.new("Part",char.Head)
  69. hat.Size = Vector3.new(2, 0.8, 1)
  70. hat.Locked = true
  71. hat.FormFactor = "Plate"
  72. hat.Material = "Metal"
  73. hat.TopSurface = Sm
  74. hat.BottomSurface = Sm
  75. hat.Name = "Helmet"
  76. hat.Position = Vector3.new(0,-.5,0)
  77. hat.Transparency = 0.005
  78. local hatmesh = Instance.new("SpecialMesh",hat)
  79. hatmesh.MeshType="FileMesh"
  80. hatmesh.MeshId = "http://www.roblox.com/asset/?id=24102128"
  81. hatmesh.TextureId = "http://www.roblox.com/asset/?id=71541827"
  82. hatmesh.Scale = Vector3.new(1.05, 1.25, 1.05)
  83. weld(hat, char.Head, CFrame.new(0,-.30,.15)*CFrame.Angles(math.rad(0),0,0))
  84.  
  85. char.Head.face.Texture = "http://www.roblox.com/asset/?id=187335055"
  86. -------------------------------------------------------------------------------------------
  87.  
  88. ---Backpack---
  89. local m1 = Instance.new("Model")
  90. m1.Name = "Backpack"
  91. p1 = Instance.new("Part", m1)
  92. p1.BrickColor = BrickColor.new("Dark stone grey")
  93. p1.FormFactor = Enum.FormFactor.Plate
  94. p1.Size = Vector3.new(2, 2, 1)
  95. p1.CFrame = CFrame.new(4.59994984, 2.69995689, -11.1000042, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  96. p1.Anchored = false
  97. p1.CanCollide = true
  98. p1.BottomSurface = Enum.SurfaceType.Smooth
  99. p1.TopSurface = Enum.SurfaceType.Smooth
  100. b1 = Instance.new("SpecialMesh", p1)
  101. b1.MeshType = Enum.MeshType.Brick
  102. b1.Name = "Mesh"
  103. b1.Scale = Vector3.new(1.00999999, 1, 1.10000002)
  104. p2 = Instance.new("Part", m1)
  105. p2.BrickColor = BrickColor.new("Earth green")
  106. p2.Name = "part"
  107. p2.FormFactor = Enum.FormFactor.Plate
  108. p2.Size = Vector3.new(1, 2, 1)
  109. p2.CFrame = CFrame.new(4.59994984, 4.19989109, -11.1000042, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  110. p2.Anchored = false
  111. p2.CanCollide = true
  112. p2.BottomSurface = Enum.SurfaceType.Smooth
  113. p2.TopSurface = Enum.SurfaceType.Smooth
  114. b2 = Instance.new("CylinderMesh", p2)
  115. b2.Name = "Mesh"
  116. m1.Parent = char
  117. m1:MakeJoints()
  118. local prev
  119. local parts1 = char.Backpack:GetChildren()
  120.  
  121. for i = 1,#parts1 do
  122. if (parts1[i].className == "Part") or (parts1[i].className == "WedgePart") or (parts1[i].className == "Seat") or (parts1[i].className == "VehicleSeat") or (parts1[i].className == "CornerWedgePart") then
  123. if (prev ~= nil)then
  124. local weld = Instance.new("Weld")
  125. weld.Part0 = prev
  126. weld.Part1 = parts1[i]
  127. weld.C0 = prev.CFrame:inverse()
  128. weld.C1 = parts1[i].CFrame:inverse()
  129. weld.Parent = prev
  130. end
  131. prev = parts1[i]
  132. end
  133. end
  134. weld(char.Backpack.Part, char.Torso, CFrame.new(0,0,-1)*CFrame.Angles(math.rad(0),0,0))
  135. --------------------
  136.  
  137. ---AmmoPouch---
  138.  
  139. local m2 = Instance.new("Model")
  140. m2.Name = "AmmoPouch"
  141. p1 = Instance.new("Part", m2)
  142. p1.BrickColor = BrickColor.new("Dark stone grey")
  143. p1.Material = Enum.Material.Metal
  144. p1.FormFactor = Enum.FormFactor.Plate
  145. p1.Size = Vector3.new(1, 0.400000006, 1)
  146. p1.CFrame = CFrame.new(4.16492414, 2.56973791, -9.53467369, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  147. p1.BottomSurface = Enum.SurfaceType.Smooth
  148. p1.TopSurface = Enum.SurfaceType.Smooth
  149. p1.LeftParamA = 0
  150. p1.LeftParamB = 0
  151. p1.RightParamA = 0
  152. p1.RightParamB = 0
  153. b1 = Instance.new("SpecialMesh", p1)
  154. b1.MeshType = Enum.MeshType.Brick
  155. b1.Name = "Mesh"
  156. b1.Scale = Vector3.new(0.800000012, 0.5, 0.400000006)
  157. p2 = Instance.new("Part", m2)
  158. p2.BrickColor = BrickColor.new("Brown")
  159. p2.FormFactor = Enum.FormFactor.Plate
  160. p2.Size = Vector3.new(1, 0.400000006, 1)
  161. p2.CFrame = CFrame.new(4.15620995, 2.47011304, -9.53478336, 0.999999821, 3.7252903e-009, 2.95694882e-008, 2.95694882e-008, 5.58793545e-009, 0.999999821, -3.7252903e-009, -1, -5.58793545e-009)
  162. p2.BottomSurface = Enum.SurfaceType.Smooth
  163. p2.TopSurface = Enum.SurfaceType.Smooth
  164. p2.LeftParamA = 0
  165. p2.LeftParamB = 0
  166. p2.RightParamA = 0
  167. p2.RightParamB = 0
  168. b2 = Instance.new("SpecialMesh", p2)
  169. b2.MeshType = Enum.MeshType.Brick
  170. b2.Name = "Mesh"
  171. b2.Scale = Vector3.new(0.5, 0.699999988, 0.400000006)
  172. p3 = Instance.new("Part", m2)
  173. p3.BrickColor = BrickColor.new("Brown")
  174. p3.FormFactor = Enum.FormFactor.Plate
  175. p3.Size = Vector3.new(1, 0.400000006, 1)
  176. p3.CFrame = CFrame.new(4.36416483, 2.55231404, -9.53467369, 0.999999881, 5.58793545e-009, 1.961598e-008, 1.97906029e-008, 5.58793545e-009, 0.999999881, 1.11022302e-016, -1, -1.86264504e-009)
  177. p3.BottomSurface = Enum.SurfaceType.Smooth
  178. p3.TopSurface = Enum.SurfaceType.Smooth
  179. p3.LeftParamA = 0
  180. p3.LeftParamB = 0
  181. p3.RightParamA = 0
  182. p3.RightParamB = 0
  183. b3 = Instance.new("SpecialMesh", p3)
  184. b3.MeshType = Enum.MeshType.Brick
  185. b3.Name = "Mesh"
  186. b3.Scale = Vector3.new(0.800000012, 0.600000024, 0.5)
  187. w1 = Instance.new("Weld", p1)
  188. w2 = Instance.new("Weld", p1)
  189. w3 = Instance.new("Weld", p2)
  190. w4 = Instance.new("Weld", p2)
  191. w5 = Instance.new("Weld", p3)
  192. w6 = Instance.new("Weld", p3)
  193. m2.Parent = char
  194. m2:MakeJoints()
  195. local prev
  196. local parts1 = char.AmmoPouch:GetChildren()
  197.  
  198. for i = 1,#parts1 do
  199. if (parts1[i].className == "Part") or (parts1[i].className == "WedgePart") or (parts1[i].className == "Seat") or (parts1[i].className == "VehicleSeat") or (parts1[i].className == "CornerWedgePart") then
  200. if (prev ~= nil)then
  201. local weld = Instance.new("Weld")
  202. weld.Part0 = prev
  203. weld.Part1 = parts1[i]
  204. weld.C0 = prev.CFrame:inverse()
  205. weld.C1 = parts1[i].CFrame:inverse()
  206. weld.Parent = prev
  207. end
  208. prev = parts1[i]
  209. end
  210. end
  211. weld(char.AmmoPouch.Part, char.Torso, CFrame.new(-.50,.54,-.40)*CFrame.Angles(math.rad(270),0,0))
  212. ----------------------------------------
  213.  
  214. ---MP40---
  215. local m = Instance.new("Model")
  216. m.Name = "MP40"
  217. p1 = Instance.new("Part", m)
  218. p1.BrickColor = BrickColor.new("Dark stone grey")
  219. p1.Material = Enum.Material.Metal
  220. p1.FormFactor = Enum.FormFactor.Custom
  221. p1.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  222. p1.CFrame = CFrame.new(16.7652016, 4.23980618, 13.4252539, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  223. p1.BottomSurface = Enum.SurfaceType.Smooth
  224. p1.TopSurface = Enum.SurfaceType.Smooth
  225. b1 = Instance.new("CylinderMesh", p1)
  226. b1.Name = "Mesh"
  227. b1.Scale = Vector3.new(1, 0.5, 0.75)
  228. p2 = Instance.new("Part", m)
  229. p2.BrickColor = BrickColor.new("Dark stone grey")
  230. p2.Material = Enum.Material.Metal
  231. p2.FormFactor = Enum.FormFactor.Custom
  232. p2.Size = Vector3.new(0.30361411, 1.44216657, 0.30361408)
  233. p2.CFrame = CFrame.new(16.006134, 4.00602818, 13.5012341, 0.0832513124, 0.996528745, 0, -0.996528745, 0.0832513124, 0, 0, 0, 1)
  234. p2.BottomSurface = Enum.SurfaceType.Smooth
  235. p2.TopSurface = Enum.SurfaceType.Smooth
  236. b2 = Instance.new("CylinderMesh", p2)
  237. b2.Name = "Mesh"
  238. b2.Scale = Vector3.new(0.25, 1, 0.25)
  239. p3 = Instance.new("Part", m)
  240. p3.BrickColor = BrickColor.new("Dark stone grey")
  241. p3.Material = Enum.Material.Metal
  242. p3.FormFactor = Enum.FormFactor.Custom
  243. p3.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  244. p3.CFrame = CFrame.new(16.8033848, 4.27775908, 13.4252539, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  245. p3.BottomSurface = Enum.SurfaceType.Smooth
  246. p3.TopSurface = Enum.SurfaceType.Smooth
  247. b3 = Instance.new("SpecialMesh", p3)
  248. b3.MeshType = Enum.MeshType.Head
  249. b3.Name = "Mesh"
  250. b3.Scale = Vector3.new(0.75, 0.5, 1)
  251. p4 = Instance.new("Part", m)
  252. p4.BrickColor = BrickColor.new("Dark stone grey")
  253. p4.Material = Enum.Material.Metal
  254. p4.FormFactor = Enum.FormFactor.Custom
  255. p4.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  256. p4.CFrame = CFrame.new(16.8033848, 3.44283009, 13.4252539, 0, -1, 0, 0, 0, 1, -1, 0, 0)
  257. p4.BottomSurface = Enum.SurfaceType.Smooth
  258. p4.TopSurface = Enum.SurfaceType.Smooth
  259. b4 = Instance.new("SpecialMesh", p4)
  260. b4.MeshType = Enum.MeshType.Wedge
  261. b4.Name = "Mesh"
  262. b4.Scale = Vector3.new(0.5, 1, 0.25)
  263. p5 = Instance.new("Part", m)
  264. p5.BrickColor = BrickColor.new("Dark stone grey")
  265. p5.Material = Enum.Material.Metal
  266. p5.FormFactor = Enum.FormFactor.Custom
  267. p5.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  268. p5.CFrame = CFrame.new(16.7270355, 3.9741509, 13.4252539, 0, 0, 1, 0, -1, 0, 1, 0, 0)
  269. p5.BottomSurface = Enum.SurfaceType.Smooth
  270. p5.TopSurface = Enum.SurfaceType.Smooth
  271. b5 = Instance.new("SpecialMesh", p5)
  272. b5.MeshType = Enum.MeshType.Wedge
  273. b5.Name = "Mesh"
  274. b5.Scale = Vector3.new(0.5, 0.25, 0.5)
  275. p6 = Instance.new("Part", m)
  276. p6.BrickColor = BrickColor.new("Dark stone grey")
  277. p6.Material = Enum.Material.Metal
  278. p6.FormFactor = Enum.FormFactor.Custom
  279. p6.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  280. p6.CFrame = CFrame.new(16.7270355, 4.12595415, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  281. p6.BottomSurface = Enum.SurfaceType.Smooth
  282. p6.TopSurface = Enum.SurfaceType.Smooth
  283. b6 = Instance.new("BlockMesh", p6)
  284. b6.Name = "Mesh"
  285. b6.Scale = Vector3.new(0.5, 0.75, 0.5)
  286. p7 = Instance.new("Part", m)
  287. p7.BrickColor = BrickColor.new("Dark stone grey")
  288. p7.Material = Enum.Material.Metal
  289. p7.Name = "Handle"
  290. p7.FormFactor = Enum.FormFactor.Custom
  291. p7.Size = Vector3.new(0.30361411, 0.45542106, 0.30361408)
  292. p7.CFrame = CFrame.new(16.8789787, 3.70848393, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  293. p7.BottomSurface = Enum.SurfaceType.Smooth
  294. p7.TopSurface = Enum.SurfaceType.Smooth
  295. b7 = Instance.new("BlockMesh", p7)
  296. b7.Name = "Mesh"
  297. b7.Scale = Vector3.new(0.5, 0.99999994, 0.5)
  298. p8 = Instance.new("Part", m)
  299. p8.BrickColor = BrickColor.new("Dark stone grey")
  300. p8.Material = Enum.Material.Metal
  301. p8.FormFactor = Enum.FormFactor.Custom
  302. p8.Size = Vector3.new(0.30361411, 0.45542106, 0.30361408)
  303. p8.CFrame = CFrame.new(16.7270355, 3.70848393, 13.4252539, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  304. p8.BottomSurface = Enum.SurfaceType.Smooth
  305. p8.TopSurface = Enum.SurfaceType.Smooth
  306. b8 = Instance.new("SpecialMesh", p8)
  307. b8.MeshType = Enum.MeshType.Wedge
  308. b8.Name = "Mesh"
  309. b8.Scale = Vector3.new(0.5, 0.99999994, 0.5)
  310. p9 = Instance.new("Part", m)
  311. p9.BrickColor = BrickColor.new("Dark stone grey")
  312. p9.Material = Enum.Material.Metal
  313. p9.FormFactor = Enum.FormFactor.Custom
  314. p9.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  315. p9.CFrame = CFrame.new(16.7270355, 4.0880022, 13.4252539, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  316. p9.BottomSurface = Enum.SurfaceType.Smooth
  317. p9.TopSurface = Enum.SurfaceType.Smooth
  318. b9 = Instance.new("CylinderMesh", p9)
  319. b9.Name = "Mesh"
  320. b9.Scale = Vector3.new(0.5, 0.75, 0.5)
  321. p10 = Instance.new("Part", m)
  322. p10.BrickColor = BrickColor.new("Dark stone grey")
  323. p10.Material = Enum.Material.Metal
  324. p10.FormFactor = Enum.FormFactor.Custom
  325. p10.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  326. p10.CFrame = CFrame.new(16.7729683, 3.93619299, 13.4252539, 0, 0, 1, 0, -1, 0, 1, 0, 0)
  327. p10.BottomSurface = Enum.SurfaceType.Smooth
  328. p10.TopSurface = Enum.SurfaceType.Smooth
  329. b10 = Instance.new("SpecialMesh", p10)
  330. b10.MeshType = Enum.MeshType.Wedge
  331. b10.Name = "Mesh"
  332. b10.Scale = Vector3.new(0.5, 1, 0.5)
  333. p11 = Instance.new("Part", m)
  334. p11.BrickColor = BrickColor.new("Dark stone grey")
  335. p11.Material = Enum.Material.Metal
  336. p11.FormFactor = Enum.FormFactor.Custom
  337. p11.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  338. p11.CFrame = CFrame.new(15.2852917, 3.93619299, 13.4252539, 0, 0, -0.999999166, 0.999998868, 0, 0, 0, -0.999998748, 0)
  339. p11.BottomSurface = Enum.SurfaceType.Smooth
  340. p11.TopSurface = Enum.SurfaceType.Smooth
  341. b11 = Instance.new("SpecialMesh", p11)
  342. b11.MeshId = "http://www.roblox.com/asset/?id=3270017"
  343. b11.TextureId = ""
  344. b11.MeshType = Enum.MeshType.FileMesh
  345. b11.Name = "Mesh"
  346. b11.Scale = Vector3.new(0.683131754, 0.189758763, 0.45542112)
  347. p12 = Instance.new("Part", m)
  348. p12.BrickColor = BrickColor.new("Dark stone grey")
  349. p12.Material = Enum.Material.Metal
  350. p12.FormFactor = Enum.FormFactor.Custom
  351. p12.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  352. p12.CFrame = CFrame.new(17.2674007, 3.83751893, 13.4252539, 0, 0.980619848, -0.195917353, 0, -0.195917353, -0.980619848, -1, 0, 0)
  353. p12.BottomSurface = Enum.SurfaceType.Smooth
  354. p12.TopSurface = Enum.SurfaceType.Smooth
  355. b12 = Instance.new("SpecialMesh", p12)
  356. b12.MeshType = Enum.MeshType.Wedge
  357. b12.Name = "Mesh"
  358. b12.Scale = Vector3.new(0.25, 0.1875, 0.25)
  359. p13 = Instance.new("Part", m)
  360. p13.BrickColor = BrickColor.new("Dark stone grey")
  361. p13.Material = Enum.Material.Metal
  362. p13.FormFactor = Enum.FormFactor.Custom
  363. p13.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  364. p13.CFrame = CFrame.new(17.2481251, 3.88913608, 13.4252539, 0, 0.281835884, -0.959462643, 0, -0.959462643, -0.281835884, -1, 0, 0)
  365. p13.BottomSurface = Enum.SurfaceType.Smooth
  366. p13.TopSurface = Enum.SurfaceType.Smooth
  367. b13 = Instance.new("SpecialMesh", p13)
  368. b13.MeshType = Enum.MeshType.Wedge
  369. b13.Name = "Mesh"
  370. b13.Scale = Vector3.new(0.25, 0.5, 0.25)
  371. p14 = Instance.new("Part", m)
  372. p14.BrickColor = BrickColor.new("Dark stone grey")
  373. p14.Material = Enum.Material.Metal
  374. p14.FormFactor = Enum.FormFactor.Custom
  375. p14.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  376. p14.CFrame = CFrame.new(17.675827, 4.4295702, 13.4634256, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  377. p14.BottomSurface = Enum.SurfaceType.Smooth
  378. p14.TopSurface = Enum.SurfaceType.Smooth
  379. b14 = Instance.new("BlockMesh", p14)
  380. b14.Name = "Mesh"
  381. b14.Offset = Vector3.new(0.00625000009, -0.0125000002, 0.0187500007)
  382. b14.Scale = Vector3.new(0.1875, 0.125, 0.125)
  383. p15 = Instance.new("Part", m)
  384. p15.BrickColor = BrickColor.new("Dark stone grey")
  385. p15.Material = Enum.Material.Metal
  386. p15.FormFactor = Enum.FormFactor.Custom
  387. p15.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  388. p15.CFrame = CFrame.new(18.0935135, 4.0880022, 13.4252539, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  389. p15.BottomSurface = Enum.SurfaceType.Smooth
  390. p15.TopSurface = Enum.SurfaceType.Smooth
  391. b15 = Instance.new("CylinderMesh", p15)
  392. b15.Name = "Mesh"
  393. b15.Scale = Vector3.new(1, 0.5, 1)
  394. p16 = Instance.new("Part", m)
  395. p16.BrickColor = BrickColor.new("Dark stone grey")
  396. p16.Material = Enum.Material.Metal
  397. p16.FormFactor = Enum.FormFactor.Custom
  398. p16.Size = Vector3.new(0.30361411, 0.45542106, 0.30361408)
  399. p16.CFrame = CFrame.new(17.030941, 3.70848393, 13.4252539, 0, 0, -1, 0, -1, 0, -1, 0, 0)
  400. p16.BottomSurface = Enum.SurfaceType.Smooth
  401. p16.TopSurface = Enum.SurfaceType.Smooth
  402. b16 = Instance.new("SpecialMesh", p16)
  403. b16.MeshType = Enum.MeshType.Wedge
  404. b16.Name = "Mesh"
  405. b16.Scale = Vector3.new(0.5, 0.99999994, 0.5)
  406. p17 = Instance.new("Part", m)
  407. p17.BrickColor = BrickColor.new("Dark stone grey")
  408. p17.Material = Enum.Material.Metal
  409. p17.FormFactor = Enum.FormFactor.Custom
  410. p17.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  411. p17.CFrame = CFrame.new(18.5868168, 4.16390419, 13.4252539, 0, 0, -1, 0, -1, 0, -1, 0, 0)
  412. p17.BottomSurface = Enum.SurfaceType.Smooth
  413. p17.TopSurface = Enum.SurfaceType.Smooth
  414. b17 = Instance.new("SpecialMesh", p17)
  415. b17.MeshType = Enum.MeshType.Wedge
  416. b17.Name = "Mesh"
  417. b17.Scale = Vector3.new(0.5, 0.5, 0.25)
  418. p18 = Instance.new("Part", m)
  419. p18.BrickColor = BrickColor.new("Dark stone grey")
  420. p18.Material = Enum.Material.Metal
  421. p18.FormFactor = Enum.FormFactor.Custom
  422. p18.Size = Vector3.new(0.30361411, 0.30361405, 1.29035985)
  423. p18.CFrame = CFrame.new(17.4482613, 4.0880022, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  424. p18.BottomSurface = Enum.SurfaceType.Smooth
  425. p18.TopSurface = Enum.SurfaceType.Smooth
  426. b18 = Instance.new("BlockMesh", p18)
  427. b18.Name = "Mesh"
  428. b18.Scale = Vector3.new(0.5, 1, 1)
  429. p19 = Instance.new("Part", m)
  430. p19.BrickColor = BrickColor.new("Dark stone grey")
  431. p19.Material = Enum.Material.Metal
  432. p19.FormFactor = Enum.FormFactor.Custom
  433. p19.Size = Vector3.new(0.30361411, 0.45542106, 0.30361408)
  434. p19.CFrame = CFrame.new(18.4348583, 4.01210117, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  435. p19.BottomSurface = Enum.SurfaceType.Smooth
  436. p19.TopSurface = Enum.SurfaceType.Smooth
  437. b19 = Instance.new("BlockMesh", p19)
  438. b19.Name = "Mesh"
  439. b19.Scale = Vector3.new(0.5, 0.99999994, 0.75)
  440. p20 = Instance.new("Part", m)
  441. p20.BrickColor = BrickColor.new("Dark stone grey")
  442. p20.Material = Enum.Material.Metal
  443. p20.FormFactor = Enum.FormFactor.Custom
  444. p20.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  445. p20.CFrame = CFrame.new(18.1694927, 4.16390419, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  446. p20.BottomSurface = Enum.SurfaceType.Smooth
  447. p20.TopSurface = Enum.SurfaceType.Smooth
  448. b20 = Instance.new("BlockMesh", p20)
  449. b20.Name = "Mesh"
  450. b20.Scale = Vector3.new(0.5, 0.5, 0.5)
  451. p21 = Instance.new("Part", m)
  452. p21.BrickColor = BrickColor.new("Dark stone grey")
  453. p21.Material = Enum.Material.Metal
  454. p21.FormFactor = Enum.FormFactor.Custom
  455. p21.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  456. p21.CFrame = CFrame.new(18.359251, 4.0880022, 13.4252539, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  457. p21.BottomSurface = Enum.SurfaceType.Smooth
  458. p21.TopSurface = Enum.SurfaceType.Smooth
  459. b21 = Instance.new("CylinderMesh", p21)
  460. b21.Name = "Mesh"
  461. b21.Scale = Vector3.new(1, 0.5, 0.75)
  462. p22 = Instance.new("Part", m)
  463. p22.BrickColor = BrickColor.new("Dark stone grey")
  464. p22.Material = Enum.Material.Metal
  465. p22.FormFactor = Enum.FormFactor.Custom
  466. p22.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  467. p22.CFrame = CFrame.new(17.6380196, 4.4295702, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  468. p22.BottomSurface = Enum.SurfaceType.Smooth
  469. p22.TopSurface = Enum.SurfaceType.Smooth
  470. b22 = Instance.new("BlockMesh", p22)
  471. b22.Name = "Mesh"
  472. b22.Offset = Vector3.new(0, -0.0500000007, 0)
  473. b22.Scale = Vector3.new(0.5, 0.25, 0.5)
  474. p23 = Instance.new("Part", m)
  475. p23.BrickColor = BrickColor.new("Dark stone grey")
  476. p23.Material = Enum.Material.Metal
  477. p23.FormFactor = Enum.FormFactor.Custom
  478. p23.Size = Vector3.new(0.30361411, 2.20120168, 0.30361408)
  479. p23.CFrame = CFrame.new(17.9037533, 4.27775908, 13.4252539, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  480. p23.BottomSurface = Enum.SurfaceType.Smooth
  481. p23.TopSurface = Enum.SurfaceType.Smooth
  482. b23 = Instance.new("CylinderMesh", p23)
  483. b23.Name = "Mesh"
  484. b23.Scale = Vector3.new(0.75, 1, 1)
  485. p24 = Instance.new("Part", m)
  486. p24.BrickColor = BrickColor.new("Dark stone grey")
  487. p24.Material = Enum.Material.Metal
  488. p24.FormFactor = Enum.FormFactor.Custom
  489. p24.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  490. p24.CFrame = CFrame.new(18.321455, 3.82234693, 13.4252539, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  491. p24.BottomSurface = Enum.SurfaceType.Smooth
  492. p24.TopSurface = Enum.SurfaceType.Smooth
  493. b24 = Instance.new("SpecialMesh", p24)
  494. b24.MeshType = Enum.MeshType.Wedge
  495. b24.Name = "Mesh"
  496. b24.Scale = Vector3.new(0.5, 0.25, 0.25)
  497. p25 = Instance.new("Part", m)
  498. p25.BrickColor = BrickColor.new("Dark stone grey")
  499. p25.Material = Enum.Material.Metal
  500. p25.FormFactor = Enum.FormFactor.Custom
  501. p25.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  502. p25.CFrame = CFrame.new(19.0423069, 4.27775908, 13.4252539, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  503. p25.BottomSurface = Enum.SurfaceType.Smooth
  504. p25.TopSurface = Enum.SurfaceType.Smooth
  505. b25 = Instance.new("CylinderMesh", p25)
  506. b25.Name = "Mesh"
  507. b25.Scale = Vector3.new(0.5, 0.25, 0.5)
  508. p26 = Instance.new("Part", m)
  509. p26.BrickColor = BrickColor.new("Dark stone grey")
  510. p26.Material = Enum.Material.Metal
  511. p26.FormFactor = Enum.FormFactor.Custom
  512. p26.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  513. p26.CFrame = CFrame.new(17.675827, 4.4295702, 13.387084, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  514. p26.BottomSurface = Enum.SurfaceType.Smooth
  515. p26.TopSurface = Enum.SurfaceType.Smooth
  516. b26 = Instance.new("BlockMesh", p26)
  517. b26.Name = "Mesh"
  518. b26.Offset = Vector3.new(-0.00625000009, -0.0125000002, 0.0187500007)
  519. b26.Scale = Vector3.new(0.1875, 0.125, 0.125)
  520. p27 = Instance.new("Part", m)
  521. p27.BrickColor = BrickColor.new("Dark stone grey")
  522. p27.Material = Enum.Material.Metal
  523. p27.Name = "Magazine"
  524. p27.FormFactor = Enum.FormFactor.Custom
  525. p27.Size = Vector3.new(0.30361411, 1.06264901, 0.30361408)
  526. p27.CFrame = CFrame.new(18.4348583, 3.40487504, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  527. p27.BottomSurface = Enum.SurfaceType.Smooth
  528. p27.TopSurface = Enum.SurfaceType.Smooth
  529. b27 = Instance.new("BlockMesh", p27)
  530. b27.Name = "Mesh"
  531. b27.Scale = Vector3.new(0.375, 1, 0.625)
  532. p28 = Instance.new("Part", m)
  533. p28.BrickColor = BrickColor.new("Dark stone grey")
  534. p28.Material = Enum.Material.Metal
  535. p28.FormFactor = Enum.FormFactor.Custom
  536. p28.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  537. p28.CFrame = CFrame.new(18.5490112, 3.86029696, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  538. p28.BottomSurface = Enum.SurfaceType.Smooth
  539. p28.TopSurface = Enum.SurfaceType.Smooth
  540. b28 = Instance.new("SpecialMesh", p28)
  541. b28.MeshType = Enum.MeshType.Wedge
  542. b28.Name = "Mesh"
  543. b28.Scale = Vector3.new(0.5, 0.5, 0.25)
  544. p29 = Instance.new("Part", m)
  545. p29.BrickColor = BrickColor.new("Dark stone grey")
  546. p29.Material = Enum.Material.Metal
  547. p29.FormFactor = Enum.FormFactor.Custom
  548. p29.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  549. p29.CFrame = CFrame.new(18.2832718, 4.16390419, 13.4252539, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  550. p29.BottomSurface = Enum.SurfaceType.Smooth
  551. p29.TopSurface = Enum.SurfaceType.Smooth
  552. b29 = Instance.new("BlockMesh", p29)
  553. b29.Name = "Mesh"
  554. b29.Scale = Vector3.new(0.5, 0.5, 0.25)
  555. p30 = Instance.new("Part", m)
  556. p30.BrickColor = BrickColor.new("Dark stone grey")
  557. p30.Material = Enum.Material.Metal
  558. p30.FormFactor = Enum.FormFactor.Custom
  559. p30.Size = Vector3.new(0.30361411, 0.30361405, 0.30361408)
  560. p30.CFrame = CFrame.new(17.2585068, 3.89824891, 13.4252539, -0.99999994, 0, 0, 0, -0.99999994, 0, 0, 0, 1)
  561. p30.BottomSurface = Enum.SurfaceType.Smooth
  562. p30.TopSurface = Enum.SurfaceType.Smooth
  563. b30 = Instance.new("SpecialMesh", p30)
  564. b30.MeshId = "http://www.roblox.com/asset/?id=3270017"
  565. b30.TextureId = ""
  566. b30.MeshType = Enum.MeshType.FileMesh
  567. b30.Name = "Mesh"
  568. b30.Scale = Vector3.new(0.379517615, 0.30361405, 0.22771056)
  569. p31 = Instance.new("Part", m)
  570. p31.BrickColor = BrickColor.new("Dark stone grey")
  571. p31.Material = Enum.Material.Metal
  572. p31.Name = "Barrel"
  573. p31.FormFactor = Enum.FormFactor.Custom
  574. p31.Size = Vector3.new(0.30361411, 0.986745656, 0.30361408)
  575. p31.CFrame = CFrame.new(19.57341, 4.27775908, 13.4252539, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  576. p31.BottomSurface = Enum.SurfaceType.Smooth
  577. p31.TopSurface = Enum.SurfaceType.Smooth
  578. b31 = Instance.new("CylinderMesh", p31)
  579. b31.Name = "Mesh"
  580. b31.Scale = Vector3.new(0.375, 0.99999994, 0.375)
  581. d1 = Instance.new("Decal", p31)
  582. d1.Texture = "http://www.roblox.com/asset/?id=85448092"
  583. d1.Face = Enum.NormalId.Top
  584. p32 = Instance.new("Part", m)
  585. p32.BrickColor = BrickColor.new("Dark stone grey")
  586. p32.Material = Enum.Material.Metal
  587. p32.FormFactor = Enum.FormFactor.Custom
  588. p32.Size = Vector3.new(0.30361411, 1.44216657, 0.30361408)
  589. p32.CFrame = CFrame.new(16.006134, 4.00602818, 13.3492861, 0.0832513124, 0.996528745, 0, -0.996528745, 0.0832513124, 0, 0, 0, 1)
  590. p32.BottomSurface = Enum.SurfaceType.Smooth
  591. p32.TopSurface = Enum.SurfaceType.Smooth
  592. b32 = Instance.new("CylinderMesh", p32)
  593. b32.Name = "Mesh"
  594. b32.Scale = Vector3.new(0.25, 1, 0.25)
  595. m.Parent = char
  596. m:MakeJoints()
  597. local prev
  598. local parts = char.MP40:GetChildren()
  599.  
  600. for i = 1,#parts do
  601. if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then
  602. if (prev ~= nil)then
  603. local weld = Instance.new("Weld")
  604. weld.Part0 = prev
  605. weld.Part1 = parts[i]
  606. weld.C0 = prev.CFrame:inverse()
  607. weld.C1 = parts[i].CFrame:inverse()
  608. weld.Parent = prev
  609. end
  610. prev = parts[i]
  611. end
  612. end
  613. char.MP40.Handle.Weld.Name = "Weld2"
  614.  
  615.  
  616. weld(char.MP40.Handle, char.Torso, CFrame.new(1.6,0,-.80)*CFrame.Angles(math.rad(0),29.8,0))
  617. --------------------------------------
  618.  
  619. ---Taunts/German
  620. local t1=Instance.new("Sound",char.Head)
  621. t1.SoundId="http://www.roblox.com/asset/?id=176893156"
  622. t1.PlayOnRemove=false
  623. t1.Volume=1
  624. t1.Looped=false
  625. t1.Pitch = 1
  626. t1.Parent=char.Head
  627. local t2=Instance.new("Sound",char.Head)
  628. t2.SoundId="http://www.roblox.com/asset/?id=176893156"
  629. t2.PlayOnRemove=false
  630. t2.Volume=1
  631. t2.Looped=false
  632. t2.Pitch = 1
  633. t2.Parent=char.Head
  634. local t3=Instance.new("Sound",char.Head)
  635. t3.SoundId="http://www.roblox.com/asset/?id=156508971"
  636. t3.PlayOnRemove=false
  637. t3.Volume=1
  638. t3.Looped=false
  639. t3.Pitch = 1
  640. t3.Parent=char.Head
  641. local t4=Instance.new("Sound",char.Head)
  642. t4.SoundId="http://www.roblox.com/asset/?id=156508971"
  643. t4.PlayOnRemove=false
  644. t4.Volume=1
  645. t4.Looped=false
  646. t4.Pitch = 1
  647. t4.Parent=char.Head
  648. mouse.KeyDown:connect(function(key)
  649. if key == "t" then
  650. tpressed = true
  651. wait(4)
  652. tpressed = false
  653. end
  654. end)
  655.  
  656. mouse.KeyDown:connect(function(key)
  657. if key == "t" and tpressed == false then
  658. tpressed2 = tpressed2 + 1
  659. if tpressed2 == 1 then
  660. t1:Play()
  661. wait(3.44)
  662. t1:Stop()
  663. print(tpressed2)
  664. end
  665. if tpressed2 == 2 then
  666. t2.Parent = game.Lighting
  667. wait()
  668. t2.TimePosition = 3.44
  669. wait()
  670. t2.Parent = char.Head
  671. t2:Play()
  672. wait(2.60)
  673. t2:Stop()
  674. print(tpressed2)
  675. end
  676. if tpressed2 == 3 then
  677. t3.Parent = game.Lighting
  678. wait()
  679. t3.TimePosition = 1.60
  680. wait()
  681. t3.Parent = char.Head
  682. t3:Play()
  683. wait(1.76)
  684. t3:Stop()
  685. print(tpressed2)
  686. end
  687. if tpressed2 == 4 then
  688. t4.Parent = game.Lighting
  689. wait()
  690. t4.TimePosition = 4.70
  691. wait()
  692. t4.Parent = char.Head
  693. t4:Play()
  694. wait(3.20)
  695. t4:Stop()
  696. print(tpressed2)
  697. end
  698. if tpressed2 == 5 then
  699. tpressed2 = 0
  700. t1:Stop()
  701. t2:Stop()
  702. t3:Stop()
  703. t4:Stop()
  704. print(tpressed2)
  705. end
  706. end
  707. end)
  708.  
  709. --MP40--
  710. local Barrel2 = Instance.new("Part",char.MP40)
  711. Barrel2.Size = Vector3.new(0.6, 0.6, 0.6)
  712. Barrel2.formFactor = "Custom"
  713. Barrel2.Locked = true
  714. Barrel2.Name = "Barrel2"
  715. Barrel2.Anchored = false
  716. Barrel2.CanCollide = false
  717. Barrel2.Transparency = 1
  718. Barrel2:BreakJoints()
  719.  
  720. weld(Barrel2, char.MP40.Barrel, CFrame.new(0,-.55,0))
  721.  
  722. local guiMain = Instance.new("BillboardGui",Barrel2)
  723. guiMain.AlwaysOnTop = false
  724. guiMain.Size = UDim2.new(1.3, 0,1.3, 0)
  725. guiMain.Name = "guiMain"
  726. local SD = Instance.new("ImageLabel")
  727. SD.Position = UDim2.new(0,0,0)
  728. SD.Size = UDim2.new(1,0,1,0)
  729. SD.Parent = guiMain;
  730. SD.BackgroundColor3 = Color3.new(255/255,255/255,255/255)
  731. SD.BorderColor3 = Color3.new(27/255,42/255,53/255)
  732. SD.BackgroundTransparency = 1
  733. SD.BorderSizePixel = 1
  734. SD.Image = "http://www.roblox.com/asset/?id=156580315"
  735. SD.Visible = false
  736. SD.Name = "SD"
  737. local light = Instance.new("PointLight",Barrel2)
  738. light.Brightness = 2.5
  739. light.Color = Color3.new(255/255,183/255,0/255)
  740. light.Range = 5
  741. light.Enabled = false
  742. light.Name = "Light"
  743.  
  744. mouse.KeyDown:connect(function(key)
  745. if key == "e" then
  746. epressed = true
  747. wait(2.4)
  748. epressed = false
  749. end
  750. end)
  751.  
  752. mouse.KeyDown:connect(function(key)
  753. if key == "e" and tpressed == false then
  754. epressed2 = epressed2 + 1
  755. if epressed2 == 1 then
  756. if ra:FindFirstChild("Weld") then ra.Weld:Destroy() end
  757. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(10),0,0))
  758. wait(.03)
  759. ra.Weld:Destroy()
  760. weld(ra, tor, CFrame.new(-1.5,0,-.15)*CFrame.Angles(math.rad(15),0,0))
  761. wait(.03)
  762. ra.Weld:Destroy()
  763. weld(ra, tor, CFrame.new(-1.5,0,-.20)*CFrame.Angles(math.rad(20),0,0))
  764. wait(.03)
  765. ra.Weld:Destroy()
  766. weld(ra, tor, CFrame.new(-1.5,0,-.25)*CFrame.Angles(math.rad(25),0,0))
  767. wait(.03)
  768. ra.Weld:Destroy()
  769. weld(ra, tor, CFrame.new(-1.5,0,-.30)*CFrame.Angles(math.rad(30),.10,0))
  770. wait(.03)
  771. ra.Weld:Destroy()
  772. weld(ra, tor, CFrame.new(-1.5,0,-.35)*CFrame.Angles(math.rad(35),.20,0))
  773. wait(.03)
  774. ra.Weld:Destroy()
  775. weld(ra, tor, CFrame.new(-1.5,0,-.40)*CFrame.Angles(math.rad(40),.30,0))
  776. wait(.03)
  777. ra.Weld:Destroy()
  778. weld(ra, tor, CFrame.new(-1.5,0,-.45)*CFrame.Angles(math.rad(40),.40,0))
  779. char.MP40.Handle.Weld:Destroy()
  780. weld(char.MP40.Handle, char["Right Arm"], CFrame.new(0,.50,0)*CFrame.Angles(math.rad(0),29.8,0))
  781. wait(.03)
  782. char.MP40.Handle.Weld:Destroy()
  783. weld(char.MP40.Handle, char["Right Arm"], CFrame.new(0,1,0)*CFrame.Angles(math.rad(0),29.8,0))
  784. wait(.03)
  785. ra.Weld:Destroy()
  786. weld(ra, tor, CFrame.new(-1.5,0,-.40)*CFrame.Angles(math.rad(40),.30,0))
  787. wait(.03)
  788. ra.Weld:Destroy()
  789. weld(ra, tor, CFrame.new(-1.5,0,-.35)*CFrame.Angles(math.rad(35),.20,0))
  790. wait(.03)
  791. ra.Weld:Destroy()
  792. weld(ra, tor, CFrame.new(-1.5,0,-.30)*CFrame.Angles(math.rad(30),.10,0))
  793. wait(.03)
  794. ra.Weld:Destroy()
  795. weld(ra, tor, CFrame.new(-1.5,0,-.25)*CFrame.Angles(math.rad(25),0,0))
  796. wait(.03)
  797. ra.Weld:Destroy()
  798. weld(ra, tor, CFrame.new(-1.5,0,-.20)*CFrame.Angles(math.rad(20),0,0))
  799. wait(.03)
  800. ra.Weld:Destroy()
  801. weld(ra, tor, CFrame.new(-1.5,0,-.15)*CFrame.Angles(math.rad(15),0,0))
  802. wait(.03)
  803. ra.Weld:Destroy()
  804. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(10),0,0))
  805. wait(.03)
  806. ra.Weld:Destroy()
  807. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-5),0,0))
  808. wait(.03)
  809. ra.Weld:Destroy()
  810. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-10),0,0))
  811. wait(.03)
  812. ra.Weld:Destroy()
  813. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-15),0,0))
  814. wait(.03)
  815. ra.Weld:Destroy()
  816. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-20),0,0))
  817. wait(.03)
  818. ra.Weld:Destroy()
  819. weld(ra, tor, CFrame.new(-1.5,0,-.10)*CFrame.Angles(math.rad(-25),0,0))
  820. wait(.03)
  821. ra.Weld:Destroy()
  822. weld(ra, tor, CFrame.new(-1.5,0,.5)*CFrame.Angles(math.rad(-30),0,0))
  823. wait(.03)
  824. ra.Weld:Destroy()
  825. weld(ra, tor, CFrame.new(-1.5,.10,.10)*CFrame.Angles(math.rad(-35),0,0))
  826. wait(.03)
  827. ra.Weld:Destroy()
  828. weld(ra, tor, CFrame.new(-1.5,.20,.20)*CFrame.Angles(math.rad(-40),0,0))
  829. wait(.03)
  830. ra.Weld:Destroy()
  831. weld(ra, tor, CFrame.new(-1.5,.30,.30)*CFrame.Angles(math.rad(-45),0,0))
  832. wait(.03)
  833. ra.Weld:Destroy()
  834. weld(ra, tor, CFrame.new(-1.5,.40,.40)*CFrame.Angles(math.rad(-50),0,0))
  835. wait(.03)
  836. ra.Weld:Destroy()
  837. weld(ra, tor, CFrame.new(-1.5,.50,.50)*CFrame.Angles(math.rad(-55),0,0))
  838. wait(.03)
  839. ra.Weld:Destroy()
  840. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-60),0,0))
  841. wait(.03)
  842. ra.Weld:Destroy()
  843. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-65),0,0))
  844. wait(.03)
  845. ra.Weld:Destroy()
  846. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-70),0,0))
  847. wait(.03)
  848. ra.Weld:Destroy()
  849. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-75),0,0))
  850. char.MP40.Handle.Weld:Destroy()
  851. weld(char.MP40.Handle, char["Right Arm"], CFrame.new(0,-.10,-.20)*CFrame.Angles(math.rad(90),0,0))
  852. wait(.03)
  853. ra.Weld:Destroy()
  854. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-80),0,0))
  855. wait(.03)
  856. ra.Weld:Destroy()
  857. weld(ra, tor, CFrame.new(-1.5,.55,.50)*CFrame.Angles(math.rad(-85),0,0))
  858. wait(.03)
  859. ra.Weld:Destroy()
  860. weld(ra, tor, CFrame.new(-1.5,.60,.25)*CFrame.Angles(math.rad(-90),0,0))
  861. wait(.03)
  862. if la:FindFirstChild("Weld") then la.Weld:Destroy() end
  863. weld(la, tor, CFrame.new(-1,0,-.10)*CFrame.Angles(math.rad(90),10,0))
  864. wait(.08)
  865. la.Weld:Destroy()
  866. weld(la, tor, CFrame.new(-.80,.50,-.10)*CFrame.Angles(math.rad(90),10,0))
  867. wait(.08)
  868. la.Weld:Destroy()
  869. weld(la, tor, CFrame.new(-.60,.50,-.10)*CFrame.Angles(math.rad(90),10,0))
  870. wait(.08)
  871. la.Weld:Destroy()
  872. weld(la, tor, CFrame.new(-.40,.50,-.10)*CFrame.Angles(math.rad(90),10,0))
  873. wait(.08)
  874. la.Weld:Destroy()
  875. weld(la, tor, CFrame.new(-.20,.50,-.10)*CFrame.Angles(math.rad(90),10,0))
  876. wait(.03)
  877. la.Weld:Destroy()
  878. weld(la, tor, CFrame.new(-.10,.80,-.10)*CFrame.Angles(math.rad(90),10,0))
  879. wait(.03)
  880. la.Weld:Destroy()
  881. weld(la, tor, CFrame.new(.05,1.10,-.10)*CFrame.Angles(math.rad(90),10,0))
  882. wait(.03)
  883. la.Weld:Destroy()
  884. weld(la, tor, CFrame.new(.05,1.20,-.10)*CFrame.Angles(math.rad(90),10,0))
  885. wait(.03)
  886. la.Weld:Destroy()
  887. weld(la, tor, CFrame.new(.05,1.30,-.10)*CFrame.Angles(math.rad(90),10,0))
  888. wait(.03)
  889. la.Weld:Destroy()
  890. weld(la, tor, CFrame.new(.10,1.3,-.10)*CFrame.Angles(math.rad(90),10,0))
  891. canfire = true
  892. end
  893. if epressed2 == 2 then
  894. epressed2 = 0
  895. end
  896. end
  897. end)
  898.  
  899.  
  900. function computeDirection(pos)
  901. local invrtDir = 1 / math.sqrt((pos.magnitude * pos.magnitude))
  902. local dir = Vector3.new(pos.x * invrtDir, pos.y * invrtDir, pos.z * invrtDir)
  903. return dir
  904. end
  905.  
  906. local bullet = Instance.new("Part")
  907. bullet.Name = "Bullet"
  908. bullet.Shape = 0
  909. bullet.BrickColor = BrickColor.new(103)
  910. bullet.FormFactor = "Custom"
  911. bullet.Size = Vector3.new(0.32, 0.33, 0.45)
  912. bullet.Locked = true
  913. local mesh = Instance.new("SpecialMesh",bullet)
  914. mesh.MeshType="FileMesh"
  915. mesh.MeshId = "http://www.roblox.com/asset?id=123881156"
  916. mesh.TextureId = "http://www.roblox.com/asset?id=123881235"
  917. mesh.VertexColor = Vector3.new(1, 1, 1)
  918. mesh.Scale = Vector3.new(0.5, 0.5, 1.1)
  919.  
  920. function fire()
  921.  
  922. local cam_rot = camera.CoordinateFrame - camera.CoordinateFrame.p
  923. local cam_scroll = (camera.CoordinateFrame.p - camera.Focus.p).magnitude
  924. local ncf = CFrame.new(camera.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(0.0025+math.random()/100, math.random(-10,10)/1000, 0)
  925. camera.CoordinateFrame = ncf*CFrame.new(10, 50, cam_scroll)
  926. local gun=Instance.new("Sound",char.MP40.Handle)
  927. game:service'Debris':AddItem(gun,.2)
  928. gun.SoundId="rbxassetid://132456050"
  929. gun.Volume=2
  930. gun:play()
  931.  
  932. local b = bullet:Clone()
  933. b.Parent = workspace
  934. b.CanCollide = true
  935. b.Name = "Bullet"
  936. game.Debris:AddItem(b,4)
  937. local target = mouse.Hit.p - char.MP40.Barrel.Position
  938. local dir = computeDirection(target)
  939. local pos = char.MP40.Barrel.Position + (dir * 2)
  940. local bcframe = CFrame.new(pos, pos + dir)
  941. local foirc = bcframe * CFrame.fromEulerAnglesXYZ(math.random(0,60) / 500, math.random(-5,10) / 100, 100) -- Lower values here will make it more accurate; higher, less accurate
  942. b.CFrame = foirc
  943. local bv = Instance.new("BodyVelocity")
  944. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  945. bv.velocity = foirc.lookVector * math.random(153, 200) -- Change this if you want the bullet to go faster or slower
  946. bv.Parent = b
  947. b.Touched:connect(function(hit)
  948. if hit and hit.Parent:FindFirstChild("Humanoid") then
  949. local isPlayer = hit.Parent:FindFirstChild("Humanoid")
  950. isPlayer:TakeDamage(math.random(6,14))
  951. b:Destroy()
  952. if isPlayer.Parent:FindFirstChild("ForceField") then isPlayer.Parent.ForceField:Destroy() b:Destroy() end
  953. end
  954. if hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:FindFirstChild("Humanoid") then
  955. local isPlayer = hit.Parent.Parent:FindFirstChild("Humanoid")
  956. isPlayer:TakeDamage(math.random(6,14))
  957. b:Destroy()
  958. if isPlayer.Parent:FindFirstChild("ForceField") then isPlayer.Parent.ForceField:Destroy() end
  959. end
  960. if hit.Parent:FindFirstChild("Humanoid") == nil then
  961. local p = Instance.new("Part")
  962. p.formFactor = "Custom"
  963. p.Size = Vector3.new(0.5,0.5,0.5)
  964. p.Transparency = 1
  965. p.CanCollide = false
  966. p.Locked = true
  967. p.CFrame = hit.CFrame+(b.Position-hit.Position)
  968. local w = Instance.new("Weld")
  969. w.Part0 = mouse.Target
  970. w.Part1 = p
  971. w.C0 = mouse.Target.CFrame:inverse()
  972. w.C1 = p.CFrame:inverse()
  973. w.Parent = p
  974. local d = Instance.new("Decal")
  975. d.Parent = p
  976. d.Face = mouse.TargetSurface
  977. d.Texture = "http://www.roblox.com/asset/?id=2078626"
  978. p.Parent = game.Workspace
  979. game.Debris:AddItem(p,10)
  980. b:Destroy()
  981. end
  982. end)
  983. end
  984. function fire2()
  985. if la:FindFirstChild("Weld") then la.Weld:Destroy() end
  986. if ra:FindFirstChild("Weld") then ra.Weld:Destroy() end
  987. weld(la, tor, CFrame.new(.10,.95,-.10)*CFrame.Angles(math.rad(90),10,0))
  988. weld(ra, tor, CFrame.new(-1.5,.55,.25)*CFrame.Angles(math.rad(-90),0,0))
  989. SD.Visible = true
  990. light.Enabled = true
  991. wait()
  992. ra.Weld:Destroy()
  993. la.Weld:Destroy()
  994. weld(la, tor, CFrame.new(.10,.90,-.10)*CFrame.Angles(math.rad(90),10,0))
  995. weld(ra, tor, CFrame.new(-1.5,.50,.25)*CFrame.Angles(math.rad(-90),0,0))
  996. SD.ImageTransparency = .10
  997. wait()
  998. ra.Weld:Destroy()
  999. la.Weld:Destroy()
  1000. weld(la, tor, CFrame.new(.10,.85,-.10)*CFrame.Angles(math.rad(90),10,0))
  1001. weld(ra, tor, CFrame.new(-1.5,.45,.25)*CFrame.Angles(math.rad(-90),0,0))
  1002. SD.ImageTransparency = .20
  1003. wait()
  1004. ra.Weld:Destroy()
  1005. la.Weld:Destroy()
  1006. weld(la, tor, CFrame.new(.10,.80,-.10)*CFrame.Angles(math.rad(90),10,0))
  1007. weld(ra, tor, CFrame.new(-1.5,.40,.25)*CFrame.Angles(math.rad(-90),0,0))
  1008. SD.ImageTransparency = .30
  1009. wait()
  1010. ra.Weld:Destroy()
  1011. la.Weld:Destroy()
  1012. weld(la, tor, CFrame.new(.10,.85,-.10)*CFrame.Angles(math.rad(90),10,0))
  1013. weld(ra, tor, CFrame.new(-1.5,.45,.25)*CFrame.Angles(math.rad(-90),0,0))
  1014. SD.ImageTransparency = .40
  1015. wait()
  1016. ra.Weld:Destroy()
  1017. la.Weld:Destroy()
  1018. weld(la, tor, CFrame.new(.10,.90,-.10)*CFrame.Angles(math.rad(90),10,0))
  1019. weld(ra, tor, CFrame.new(-1.5,.50,.25)*CFrame.Angles(math.rad(-90),0,0))
  1020. SD.ImageTransparency = .50
  1021. wait()
  1022. ra.Weld:Destroy()
  1023. la.Weld:Destroy()
  1024. weld(la, tor, CFrame.new(.10,.95,-.10)*CFrame.Angles(math.rad(90),10,0))
  1025. weld(ra, tor, CFrame.new(-1.5,.55,.25)*CFrame.Angles(math.rad(-90),0,0))
  1026. SD.ImageTransparency = .60
  1027. wait()
  1028. ra.Weld:Destroy()
  1029. la.Weld:Destroy()
  1030. weld(la, tor, CFrame.new(.10,1,-.10)*CFrame.Angles(math.rad(90),10,0))
  1031. weld(ra, tor, CFrame.new(-1.5,.55,.25)*CFrame.Angles(math.rad(-90),0,0))
  1032. SD.ImageTransparency = .70
  1033. wait()
  1034. ra.Weld:Destroy()
  1035. la.Weld:Destroy()
  1036. weld(la, tor, CFrame.new(.10,1.3,-.10)*CFrame.Angles(math.rad(90),10,0))
  1037. weld(ra, tor, CFrame.new(-1.5,.60,.25)*CFrame.Angles(math.rad(-90),0,0))
  1038. SD.ImageTransparency = .80
  1039. light.Enabled = false
  1040. SD.Visible = false
  1041. end
  1042.  
  1043.  
  1044.  
  1045. mouse.Button1Down:connect(function()
  1046. if Ammo>=0 and canfire == true and firin == true then
  1047. pcall(function()
  1048. while firin == true do
  1049. wait()
  1050. fire2()
  1051. end
  1052. end)
  1053. end
  1054. end)
  1055.  
  1056. mouse.Button1Down:connect(function()
  1057. if Ammo >= 0 and canfire == true then
  1058. firin = true
  1059. pcall(function()
  1060. while firin == true do
  1061. wait(.16)
  1062. fire()
  1063. Ammo = Ammo - 1
  1064. end end)
  1065.  
  1066. end
  1067.  
  1068. end)
  1069.  
  1070. mouse.Button1Up:connect(function()
  1071. firin = false
  1072. end)
Add Comment
Please, Sign In to add comment