Thefrozen106

Big gun

Jun 8th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.08 KB | None | 0 0
  1.  
  2. local Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 5)*0.8
  3. local Speed = 20*Scale
  4. local Gravity = 0.1
  5.  
  6. local Player = game.Players.LocalPlayer
  7. local Character = Player.Character
  8. local Humanoid = Character.Humanoid
  9. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  10. local Torso = Character.HumanoidRootPart
  11. local Mouse = game.Players.LocalPlayer:GetMouse()
  12. local RenderStepped = game:GetService("RunService").RenderStepped
  13. local Camera = Workspace.CurrentCamera
  14. Camera:ClearAllChildren()
  15. local Model = Instance.new("Model",Character)
  16. local IgnoreList = {Character,Workspace.Terrain}
  17.  
  18. local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  19. local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  20. local RotationOffset = CFrame.Angles(math.rad(90),math.rad(0),0)
  21. local Gangster = false
  22.  
  23. local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  24. local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  25. local RotationOffsetHead = CFrame.Angles(0,0,0)
  26.  
  27. local Handle = Instance.new("Part",Model)
  28. Handle.CanCollide = false
  29. Handle.Name = "Handle"
  30. Handle.Position = Vector3.new(0,100,0)
  31. Handle:BreakJoints()
  32. Handle.FormFactor = "Custom"
  33. Handle.Size = Vector3.new(0.2,0.2,0.2)
  34. Handle.TopSurface = "SmoothNoOutlines"
  35. Handle.BottomSurface = "SmoothNoOutlines"
  36. Handle.FrontSurface = "SmoothNoOutlines"
  37. Handle.BackSurface = "SmoothNoOutlines"
  38. Handle.RightSurface = "SmoothNoOutlines"
  39. Handle.LeftSurface = "SmoothNoOutlines"
  40. Handle.BrickColor = BrickColor.new("Black")
  41. local Mesh = Instance.new("BlockMesh",Handle)
  42. Mesh.Scale = Vector3.new(0.25,1,0.4) / 0.2 * Scale
  43. local HandleWeld = Instance.new("Motor6D")
  44. HandleWeld.Part0 = Character["Right Arm"]
  45. HandleWeld.Part1 = Handle
  46. HandleWeld.C0 = CFrame.new(Vector3.new(0,-0.4,0)*Scale) * CFrame.Angles(math.rad(-105),0,0)
  47. HandleWeld.Parent = Handle
  48.  
  49. local Part = Instance.new("Part",Model)
  50. Part.CanCollide = false
  51. Part.Position = Vector3.new(0,100,0)
  52. Part:BreakJoints()
  53. Part.FormFactor = "Custom"
  54. Part.Size = Vector3.new(0.2,0.2,0.2)
  55. Part.TopSurface = "SmoothNoOutlines"
  56. Part.BottomSurface = "SmoothNoOutlines"
  57. Part.FrontSurface = "SmoothNoOutlines"
  58. Part.BackSurface = "SmoothNoOutlines"
  59. Part.RightSurface = "SmoothNoOutlines"
  60. Part.LeftSurface = "SmoothNoOutlines"
  61. Part.BrickColor = BrickColor.new("Black")
  62. local Mesh = Instance.new("CylinderMesh",Part)
  63. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  64. local PartWeld = Instance.new("Motor6D")
  65. PartWeld.Part0 = Handle
  66. PartWeld.Part1 = Part
  67. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  68. PartWeld.Parent = Part
  69.  
  70. local Part = Instance.new("Part",Model)
  71. Part.CanCollide = false
  72. Part.Position = Vector3.new(0,100,0)
  73. Part:BreakJoints()
  74. Part.FormFactor = "Custom"
  75. Part.Size = Vector3.new(0.2,0.2,0.2)
  76. Part.TopSurface = "SmoothNoOutlines"
  77. Part.BottomSurface = "SmoothNoOutlines"
  78. Part.FrontSurface = "SmoothNoOutlines"
  79. Part.BackSurface = "SmoothNoOutlines"
  80. Part.RightSurface = "SmoothNoOutlines"
  81. Part.LeftSurface = "SmoothNoOutlines"
  82. Part.BrickColor = BrickColor.new("Black")
  83. local Mesh = Instance.new("CylinderMesh",Part)
  84. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  85. local PartWeld = Instance.new("Motor6D")
  86. PartWeld.Part0 = Handle
  87. PartWeld.Part1 = Part
  88. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  89. PartWeld.Parent = Part
  90.  
  91. local Part = Instance.new("Part",Model)
  92. Part.CanCollide = false
  93. Part.Position = Vector3.new(0,100,0)
  94. Part:BreakJoints()
  95. Part.FormFactor = "Custom"
  96. Part.Size = Vector3.new(0.2,0.2,0.2)
  97. Part.TopSurface = "SmoothNoOutlines"
  98. Part.BottomSurface = "SmoothNoOutlines"
  99. Part.FrontSurface = "SmoothNoOutlines"
  100. Part.BackSurface = "SmoothNoOutlines"
  101. Part.RightSurface = "SmoothNoOutlines"
  102. Part.LeftSurface = "SmoothNoOutlines"
  103. Part.BrickColor = BrickColor.new("Black")
  104. local Mesh = Instance.new("CylinderMesh",Part)
  105. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  106. local PartWeld = Instance.new("Motor6D")
  107. PartWeld.Part0 = Handle
  108. PartWeld.Part1 = Part
  109. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  110. PartWeld.Parent = Part
  111.  
  112. local Part = Instance.new("Part",Model)
  113. Part.CanCollide = false
  114. Part.Position = Vector3.new(0,100,0)
  115. Part:BreakJoints()
  116. Part.FormFactor = "Custom"
  117. Part.Size = Vector3.new(0.2,0.2,0.2)
  118. Part.TopSurface = "SmoothNoOutlines"
  119. Part.BottomSurface = "SmoothNoOutlines"
  120. Part.FrontSurface = "SmoothNoOutlines"
  121. Part.BackSurface = "SmoothNoOutlines"
  122. Part.RightSurface = "SmoothNoOutlines"
  123. Part.LeftSurface = "SmoothNoOutlines"
  124. Part.BrickColor = BrickColor.new("Black")
  125. local Mesh = Instance.new("CylinderMesh",Part)
  126. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  127. local PartWeld = Instance.new("Motor6D")
  128. PartWeld.Part0 = Handle
  129. PartWeld.Part1 = Part
  130. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  131. PartWeld.Parent = Part
  132.  
  133. local Part = Instance.new("Part",Model)
  134. Part.CanCollide = false
  135. Part.Position = Vector3.new(0,100,0)
  136. Part:BreakJoints()
  137. Part.FormFactor = "Custom"
  138. Part.Size = Vector3.new(0.2,0.2,0.2)
  139. Part.TopSurface = "SmoothNoOutlines"
  140. Part.BottomSurface = "SmoothNoOutlines"
  141. Part.FrontSurface = "SmoothNoOutlines"
  142. Part.BackSurface = "SmoothNoOutlines"
  143. Part.RightSurface = "SmoothNoOutlines"
  144. Part.LeftSurface = "SmoothNoOutlines"
  145. Part.BrickColor = BrickColor.new("Black")
  146. local Mesh = Instance.new("BlockMesh",Part)
  147. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  148. local PartWeld = Instance.new("Motor6D")
  149. PartWeld.Part0 = Handle
  150. PartWeld.Part1 = Part
  151. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,-0.175)*Scale) * CFrame.Angles(0,0,0)
  152. PartWeld.Parent = Part
  153.  
  154. local Part = Instance.new("Part",Model)
  155. Part.CanCollide = false
  156. Part.Position = Vector3.new(0,100,0)
  157. Part:BreakJoints()
  158. Part.FormFactor = "Custom"
  159. Part.Size = Vector3.new(0.2,0.2,0.2)
  160. Part.TopSurface = "SmoothNoOutlines"
  161. Part.BottomSurface = "SmoothNoOutlines"
  162. Part.FrontSurface = "SmoothNoOutlines"
  163. Part.BackSurface = "SmoothNoOutlines"
  164. Part.RightSurface = "SmoothNoOutlines"
  165. Part.LeftSurface = "SmoothNoOutlines"
  166. Part.BrickColor = BrickColor.new("Black")
  167. local Mesh = Instance.new("BlockMesh",Part)
  168. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  169. local PartWeld = Instance.new("Motor6D")
  170. PartWeld.Part0 = Handle
  171. PartWeld.Part1 = Part
  172. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,0.175)*Scale) * CFrame.Angles(0,0,0)
  173. PartWeld.Parent = Part
  174.  
  175. local Part = Instance.new("Part",Model)
  176. Part.CanCollide = false
  177. Part.Position = Vector3.new(0,100,0)
  178. Part:BreakJoints()
  179. Part.FormFactor = "Custom"
  180. Part.Size = Vector3.new(0.2,0.2,0.2)
  181. Part.TopSurface = "SmoothNoOutlines"
  182. Part.BottomSurface = "SmoothNoOutlines"
  183. Part.FrontSurface = "SmoothNoOutlines"
  184. Part.BackSurface = "SmoothNoOutlines"
  185. Part.RightSurface = "SmoothNoOutlines"
  186. Part.LeftSurface = "SmoothNoOutlines"
  187. Part.BrickColor = BrickColor.new("Black")
  188. local Mesh = Instance.new("BlockMesh",Part)
  189. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  190. local PartWeld = Instance.new("Motor6D")
  191. PartWeld.Part0 = Handle
  192. PartWeld.Part1 = Part
  193. PartWeld.C0 = CFrame.new(Vector3.new(-0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  194. PartWeld.Parent = Part
  195.  
  196. local Part = Instance.new("Part",Model)
  197. Part.CanCollide = false
  198. Part.Position = Vector3.new(0,100,0)
  199. Part:BreakJoints()
  200. Part.FormFactor = "Custom"
  201. Part.Size = Vector3.new(0.2,0.2,0.2)
  202. Part.TopSurface = "SmoothNoOutlines"
  203. Part.BottomSurface = "SmoothNoOutlines"
  204. Part.FrontSurface = "SmoothNoOutlines"
  205. Part.BackSurface = "SmoothNoOutlines"
  206. Part.RightSurface = "SmoothNoOutlines"
  207. Part.LeftSurface = "SmoothNoOutlines"
  208. Part.BrickColor = BrickColor.new("Black")
  209. local Mesh = Instance.new("BlockMesh",Part)
  210. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  211. local PartWeld = Instance.new("Motor6D")
  212. PartWeld.Part0 = Handle
  213. PartWeld.Part1 = Part
  214. PartWeld.C0 = CFrame.new(Vector3.new(0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  215. PartWeld.Parent = Part
  216.  
  217. local Part = Instance.new("Part",Model)
  218. Part.CanCollide = false
  219. Part.Position = Vector3.new(0,100,0)
  220. Part:BreakJoints()
  221. Part.FormFactor = "Custom"
  222. Part.Size = Vector3.new(0.2,0.2,0.2)
  223. Part.TopSurface = "SmoothNoOutlines"
  224. Part.BottomSurface = "SmoothNoOutlines"
  225. Part.FrontSurface = "SmoothNoOutlines"
  226. Part.BackSurface = "SmoothNoOutlines"
  227. Part.RightSurface = "SmoothNoOutlines"
  228. Part.LeftSurface = "SmoothNoOutlines"
  229. Part.BrickColor = BrickColor.new("Black")
  230. local Mesh = Instance.new("BlockMesh",Part)
  231. Mesh.Scale = Vector3.new(0.1,0.3,0.05) / 0.2 * Scale
  232. local PartWeld = Instance.new("Motor6D")
  233. PartWeld.Part0 = Handle
  234. PartWeld.Part1 = Part
  235. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.25,-0.75)*Scale) * CFrame.Angles(math.rad(-10),0,0)
  236. PartWeld.Parent = Part
  237.  
  238. local Part = Instance.new("Part",Model)
  239. Part.CanCollide = false
  240. Part.Position = Vector3.new(0,100,0)
  241. Part:BreakJoints()
  242. Part.FormFactor = "Custom"
  243. Part.Size = Vector3.new(0.2,0.2,0.2)
  244. Part.TopSurface = "SmoothNoOutlines"
  245. Part.BottomSurface = "SmoothNoOutlines"
  246. Part.FrontSurface = "SmoothNoOutlines"
  247. Part.BackSurface = "SmoothNoOutlines"
  248. Part.RightSurface = "SmoothNoOutlines"
  249. Part.LeftSurface = "SmoothNoOutlines"
  250. Part.BrickColor = BrickColor.new("Black")
  251. local Mesh = Instance.new("BlockMesh",Part)
  252. Mesh.Scale = Vector3.new(0.1,0.05,0.625) / 0.2 * Scale
  253. local PartWeld = Instance.new("Motor6D")
  254. PartWeld.Part0 = Handle
  255. PartWeld.Part1 = Part
  256. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.1,-0.435)*Scale)
  257. PartWeld.Parent = Part
  258.  
  259. for i = 0,80,10 do
  260. local Part = Instance.new("Part",Model)
  261. Part.CanCollide = false
  262. Part.Position = Vector3.new(0,100,0)
  263. Part:BreakJoints()
  264. Part.FormFactor = "Custom"
  265. Part.Size = Vector3.new(0.2,0.2,0.2)
  266. Part.TopSurface = "SmoothNoOutlines"
  267. Part.BottomSurface = "SmoothNoOutlines"
  268. Part.FrontSurface = "SmoothNoOutlines"
  269. Part.BackSurface = "SmoothNoOutlines"
  270. Part.RightSurface = "SmoothNoOutlines"
  271. Part.LeftSurface = "SmoothNoOutlines"
  272. Part.BrickColor = BrickColor.new("Black")
  273. local Mesh = Instance.new("BlockMesh",Part)
  274. Mesh.Scale = Vector3.new(0.25,0.15,0.03555*2) / 0.2 * Scale
  275. local PartWeld = Instance.new("Motor6D")
  276. PartWeld.Part0 = Handle
  277. PartWeld.Part1 = Part
  278. PartWeld.C0 = CFrame.new(Vector3.new(0,0.15,0.315)*Scale) * CFrame.Angles(math.rad(i-65),0,0) * CFrame.new(Vector3.new(0,0.2,0)*Scale)
  279. PartWeld.Parent = Part
  280. end
  281.  
  282. local Barrel = Instance.new("Part",Model)
  283. Barrel.CanCollide = false
  284. Barrel.Position = Vector3.new(0,100,0)
  285. Barrel:BreakJoints()
  286. Barrel.FormFactor = "Custom"
  287. Barrel.Size = Vector3.new(0.2,0.2,0.2)
  288. Barrel.TopSurface = "SmoothNoOutlines"
  289. Barrel.BottomSurface = "SmoothNoOutlines"
  290. Barrel.FrontSurface = "SmoothNoOutlines"
  291. Barrel.BackSurface = "SmoothNoOutlines"
  292. Barrel.RightSurface = "SmoothNoOutlines"
  293. Barrel.LeftSurface = "SmoothNoOutlines"
  294. Barrel.BrickColor = BrickColor.new("Black")
  295. local Mesh = Instance.new("BlockMesh",Barrel)
  296. Mesh.Scale = Vector3.new(0.25,0.2,2) / 0.2 * Scale
  297. local BarrelWeld = Instance.new("Motor6D")
  298. BarrelWeld.Part0 = Handle
  299. BarrelWeld.Part1 = Barrel
  300. BarrelWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.5,-0.7)*Scale)
  301. BarrelWeld.Parent = Barrel
  302.  
  303. local Barrel1 = Barrel
  304.  
  305. local Barrel2 = Instance.new("Part",Model)
  306. Barrel2.CanCollide = false
  307. Barrel2.Position = Vector3.new(0,100,0)
  308. Barrel2:BreakJoints()
  309. Barrel2.FormFactor = "Custom"
  310. Barrel2.Size = Vector3.new(0.2,0.2,0.2)
  311. Barrel2.TopSurface = "SmoothNoOutlines"
  312. Barrel2.BottomSurface = "SmoothNoOutlines"
  313. Barrel2.FrontSurface = "SmoothNoOutlines"
  314. Barrel2.BackSurface = "SmoothNoOutlines"
  315. Barrel2.RightSurface = "SmoothNoOutlines"
  316. Barrel2.LeftSurface = "SmoothNoOutlines"
  317. Barrel2.BrickColor = BrickColor.new("Really black")
  318. local Mesh = Instance.new("BlockMesh",Barrel2)
  319. Mesh.Scale = Vector3.new(0.25,0.25,2) / 0.2 * Scale
  320. local Barrel2Weld = Instance.new("Motor6D")
  321. Barrel2Weld.Part0 = Barrel
  322. Barrel2Weld.Part1 = Barrel2
  323. Barrel2Weld.C0 = CFrame.new(Vector3.new(0,0.225,0)*Scale)
  324. Barrel2Weld.Parent = Barrel2
  325.  
  326. local RealBarrel = Instance.new("Part",Model)
  327. RealBarrel.CanCollide = false
  328. RealBarrel.Position = Vector3.new(0,100,0)
  329. RealBarrel:BreakJoints()
  330. RealBarrel.FormFactor = "Custom"
  331. RealBarrel.Size = Vector3.new(0.2,0.2,0.2)
  332. RealBarrel.TopSurface = "SmoothNoOutlines"
  333. RealBarrel.BottomSurface = "SmoothNoOutlines"
  334. RealBarrel.FrontSurface = "SmoothNoOutlines"
  335. RealBarrel.BackSurface = "SmoothNoOutlines"
  336. RealBarrel.RightSurface = "SmoothNoOutlines"
  337. RealBarrel.LeftSurface = "SmoothNoOutlines"
  338. RealBarrel.BrickColor = BrickColor.new("Dark grey metallic")
  339. local Mesh = Instance.new("CylinderMesh",RealBarrel)
  340. Mesh.Scale = Vector3.new(0.2,2,0.2) / 0.2 * Scale
  341. local RealBarrelWeld = Instance.new("Motor6D")
  342. RealBarrelWeld.Part0 = Barrel
  343. RealBarrelWeld.Part1 = RealBarrel
  344. RealBarrelWeld.C0 = CFrame.new(Vector3.new(0,0.1,-0.01)*Scale) * CFrame.Angles(math.rad(-90),0,0)
  345. RealBarrelWeld.Parent = RealBarrel
  346.  
  347. for i = 1,75,15 do
  348. local Part = Instance.new("Part",Model)
  349. Part.CanCollide = false
  350. Part.Position = Vector3.new(0,100,0)
  351. Part:BreakJoints()
  352. Part.FormFactor = "Custom"
  353. Part.Size = Vector3.new(0.2,0.2,0.2)
  354. Part.TopSurface = "SmoothNoOutlines"
  355. Part.BottomSurface = "SmoothNoOutlines"
  356. Part.FrontSurface = "SmoothNoOutlines"
  357. Part.BackSurface = "SmoothNoOutlines"
  358. Part.RightSurface = "SmoothNoOutlines"
  359. Part.LeftSurface = "SmoothNoOutlines"
  360. Part.BrickColor = BrickColor.new("Black")
  361. local Mesh = Instance.new("BlockMesh",Part)
  362. Mesh.Scale = Vector3.new(0.05,0.065,0.05) / 0.2 * Scale
  363. local PartWeld = Instance.new("Motor6D")
  364. PartWeld.Part0 = Handle
  365. PartWeld.Part1 = Part
  366. PartWeld.C0 = CFrame.new(Vector3.new(0,0.525,-0.515)*Scale) * CFrame.Angles(math.rad(i),0,0) * CFrame.new(Vector3.new(0,0,0.2)*Scale)
  367. PartWeld.Parent = Part
  368. end
  369.  
  370. local Part = Instance.new("Part",Model)
  371. Part.CanCollide = false
  372. Part.Position = Vector3.new(0,100,0)
  373. Part:BreakJoints()
  374. Part.FormFactor = "Custom"
  375. Part.Size = Vector3.new(0.2,0.2,0.2)
  376. Part.TopSurface = "SmoothNoOutlines"
  377. Part.BottomSurface = "SmoothNoOutlines"
  378. Part.FrontSurface = "SmoothNoOutlines"
  379. Part.BackSurface = "SmoothNoOutlines"
  380. Part.RightSurface = "SmoothNoOutlines"
  381. Part.LeftSurface = "SmoothNoOutlines"
  382. Part.BrickColor = BrickColor.new("Really black")
  383. local Mesh = Instance.new("BlockMesh",Part)
  384. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  385. local PartWeld = Instance.new("Motor6D")
  386. PartWeld.Part0 = Barrel2
  387. PartWeld.Part1 = Part
  388. PartWeld.C0 = CFrame.new(Vector3.new(0.06,0.135,0.925)*Scale)
  389. PartWeld.Parent = Part
  390.  
  391. local Part = Instance.new("Part",Model)
  392. Part.CanCollide = false
  393. Part.Position = Vector3.new(0,100,0)
  394. Part:BreakJoints()
  395. Part.FormFactor = "Custom"
  396. Part.Size = Vector3.new(0.2,0.2,0.2)
  397. Part.TopSurface = "SmoothNoOutlines"
  398. Part.BottomSurface = "SmoothNoOutlines"
  399. Part.FrontSurface = "SmoothNoOutlines"
  400. Part.BackSurface = "SmoothNoOutlines"
  401. Part.RightSurface = "SmoothNoOutlines"
  402. Part.LeftSurface = "SmoothNoOutlines"
  403. Part.BrickColor = BrickColor.new("Really black")
  404. local Mesh = Instance.new("BlockMesh",Part)
  405. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  406. local PartWeld = Instance.new("Motor6D")
  407. PartWeld.Part0 = Barrel2
  408. PartWeld.Part1 = Part
  409. PartWeld.C0 = CFrame.new(Vector3.new(-0.06,0.135,0.925)*Scale)
  410. PartWeld.Parent = Part
  411.  
  412. local Part = Instance.new("Part",Model)
  413. Part.CanCollide = false
  414. Part.Position = Vector3.new(0,100,0)
  415. Part:BreakJoints()
  416. Part.FormFactor = "Custom"
  417. Part.Size = Vector3.new(0.2,0.2,0.2)
  418. Part.TopSurface = "SmoothNoOutlines"
  419. Part.BottomSurface = "SmoothNoOutlines"
  420. Part.FrontSurface = "SmoothNoOutlines"
  421. Part.BackSurface = "SmoothNoOutlines"
  422. Part.RightSurface = "SmoothNoOutlines"
  423. Part.LeftSurface = "SmoothNoOutlines"
  424. Part.BrickColor = BrickColor.new("Really black")
  425. local Mesh = Instance.new("BlockMesh",Part)
  426. Mesh.Scale = Vector3.new(0.025,0.1,0.1) / 0.2 * Scale
  427. local PartWeld = Instance.new("Motor6D")
  428. PartWeld.Part0 = Barrel2
  429. PartWeld.Part1 = Part
  430. PartWeld.C0 = CFrame.new(Vector3.new(0,0.135,-0.925)*Scale)
  431. PartWeld.Parent = Part
  432.  
  433. local Part = Instance.new("Part",Model)
  434. Part.CanCollide = false
  435. Part.Position = Vector3.new(0,100,0)
  436. Part:BreakJoints()
  437. Part.FormFactor = "Custom"
  438. Part.Size = Vector3.new(0.2,0.2,0.2)
  439. Part.Transparency = 1
  440. Part.TopSurface = "SmoothNoOutlines"
  441. Part.BottomSurface = "SmoothNoOutlines"
  442. Part.FrontSurface = "SmoothNoOutlines"
  443. Part.BackSurface = "SmoothNoOutlines"
  444. Part.RightSurface = "SmoothNoOutlines"
  445. Part.LeftSurface = "SmoothNoOutlines"
  446. Part.BrickColor = BrickColor.new("Really black")
  447. local Mesh = Instance.new("BlockMesh",Part)
  448. Mesh.Scale = Vector3.new(0.1,0.1,0.1) / 0.2 * Scale
  449. local PartWeld = Instance.new("Motor6D")
  450. PartWeld.Part0 = Barrel
  451. PartWeld.Part1 = Part
  452. PartWeld.C0 = CFrame.new(Vector3.new(0,0,-5)*Scale)
  453. PartWeld.Parent = Part
  454.  
  455. local Light = Instance.new("PointLight",Part)
  456. Light.Color = BrickColor.new("Gold").Color
  457. Light.Enabled = true
  458. Light.Shadows = true
  459. Light.Brightness = 0
  460. Light.Range = 6
  461.  
  462. local Part = Instance.new("Part",Model)
  463. Part.Material = "Neon"
  464. Part.CanCollide = false
  465. Part.Position = Vector3.new(0,100,0)
  466. Part:BreakJoints()
  467. Part.FormFactor = "Custom"
  468. Part.Size = Vector3.new(0.2,0.2,0.2)
  469. Part.TopSurface = "SmoothNoOutlines"
  470. Part.BottomSurface = "SmoothNoOutlines"
  471. Part.FrontSurface = "SmoothNoOutlines"
  472. Part.BackSurface = "SmoothNoOutlines"
  473. Part.RightSurface = "SmoothNoOutlines"
  474. Part.LeftSurface = "SmoothNoOutlines"
  475. Part.BrickColor = BrickColor.new("Bright yellow")
  476. Part.Transparency = 0.25
  477. local RecoilMesh = Instance.new("SpecialMesh",Part)
  478. RecoilMesh.MeshType = "FileMesh"
  479. RecoilMesh.MeshId = "http://www.roblox.com/Asset/?id=1323306"
  480. RecoilMesh.TextureId = "http://www.roblox.com/Asset/?id=98896228"
  481. RecoilMesh.Scale = Vector3.new(0.175,0,0.175) * Scale
  482. local PartWeld = Instance.new("Motor6D")
  483. PartWeld.Part0 = RealBarrel
  484. PartWeld.Part1 = Part
  485. PartWeld.C0 = CFrame.new(Vector3.new(0,0.95,0)*Scale)
  486. PartWeld.Parent = Part
  487.  
  488. function ShootBullet(Target,barrel)
  489. local barrel = barrel or Barrel
  490. local Bullet = Instance.new("Part",Workspace)
  491. Barrel.CanCollide = false
  492. Bullet.FormFactor = "Custom"
  493. Bullet.Size = Vector3.new(0.2,0.2,5)*Scale
  494. Bullet.TopSurface = "Smooth"
  495. Bullet.BottomSurface = "Smooth"
  496. Bullet.Anchored = true
  497. Bullet.CanCollide = false
  498. Bullet.CFrame = CFrame.new((barrel.CFrame*CFrame.new(0,0,-barrel.Size.Z*barrel.Mesh.Scale.Z/2)).p,Target)*CFrame.new(0,0,-Bullet.Size.Z/2)
  499. Bullet.Transparency = 0.1
  500. Bullet.BrickColor = BrickColor.new("Gold")
  501. --[[local Mesh = Instance.new("SpecialMesh",Bullet)
  502. Mesh.MeshType = "FileMesh"
  503. Mesh.Scale = Vector3.new(0.5,0.5,0.2)
  504. Mesh.MeshId = "http://www.roblox.com/asset/?id=2697549"
  505. --Mesh.TextureId = "http://www.roblox.com/asset/?id=2697544"]]
  506. local Mesh = Instance.new("BlockMesh",Bullet)
  507. Mesh.Scale = Vector3.new(0.2,0.2,5)*Scale/Bullet.Size
  508. IgnoreList[#IgnoreList+1] = Bullet
  509. RenderStepped:wait()
  510. for i = Speed,1000,Speed do -- Loop to do the bullet movement and stuff.
  511. local ray,Hit,Pos,SurfaceNormal;
  512. ray = Ray.new(Bullet.Position,((Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)).p-Bullet.Position).unit*Speed)
  513. Hit,Pos,SurfaceNormal = Workspace:FindPartOnRayWithIgnoreList(ray,IgnoreList)
  514. Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)
  515. if Hit ~= nil then
  516. local Hum = Hit.Parent:FindFirstChild("Humanoid") or Hit.Parent.Parent:FindFirstChild("Humanoid") or (Hit.Parent.Parent.Parent ~= nil and Hit.Parent.Parent.Parent:FindFirstChild("Humanoid"))
  517. if Hum ~= nil then
  518. Hum:TakeDamage((((Gangster and math.random(99999,99999) or math.random(99999,99999))*Scale)/100)*Hum.MaxHealth)
  519. end
  520. break
  521. end
  522. RenderStepped:wait()
  523. end
  524. Bullet:Destroy()
  525. end
  526.  
  527. Mouse.Button1Down:connect(function()
  528. if not Down and not DB then
  529. Down = true
  530. while Down do
  531. if Humanoid.Health == 0 then break end
  532. if not DB then
  533. DB = true
  534. local Sound = Instance.new("Sound",Barrel)
  535. Sound.SoundId = "http://www.roblox.com/Asset/?id=165946426" -- 132373574
  536. Sound.Volume = 5*Scale
  537. Sound.Pitch = (math.random(70,110)/100)/((Scale < 0.25 and 0.25) or (Scale > 4 and 4) or Scale)
  538. Sound:Play()
  539. Spawn(function()
  540. ShootBullet(Mouse.Hit.p,Barrel1)
  541. end)
  542. RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255)
  543. PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0)
  544. local Shell = Instance.new("Part",Workspace)
  545. Shell.FormFactor = "Custom"
  546. Shell.BrickColor = BrickColor.new("Bright yellow")
  547. Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale
  548. Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
  549. Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale
  550. local Mesh = Instance.new("CylinderMesh",Shell)
  551. Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size
  552. Spawn(function()
  553. wait(5)
  554. Shell:Destroy()
  555. end)
  556. for i = 1,20,7.5 do
  557. RotationOffset = RotationOffset*CFrame.Angles(math.rad(7.5),0,0)
  558. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,-0.15,0)*Scale)
  559. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,0.15)*Scale)
  560. Light.Brightness = Light.Brightness+38
  561. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,0.375,0)*Scale)
  562. RenderStepped:wait()
  563. end
  564. wait(0.02)
  565. for i = 1,20,3.75 do
  566. RotationOffset = RotationOffset*CFrame.Angles(math.rad(-3.75),0,0)
  567. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,0.075,0)*Scale)
  568. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,-0.075)*Scale)
  569. Light.Brightness = Light.Brightness-19
  570. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,-0.1875,0)*Scale)
  571. RenderStepped:wait()
  572. end
  573. wait()
  574. DB = false
  575. end
  576. end
  577. end
  578. end)
  579.  
  580. Mouse.Button1Up:connect(function()
  581. Down = false
  582. end)
  583.  
  584. Mouse.KeyDown:connect(function(Key)
  585. if Key:lower() == "g" and not DB then
  586. DB = true
  587. if Gangster == true then
  588. for i = 1,70,5 do
  589. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(-5),0)
  590. RenderStepped:wait()
  591. end
  592. Gangster = false
  593. else
  594. for i = 1,70,5 do
  595. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(5),0)
  596. RenderStepped:wait()
  597. end
  598. Gangster = true
  599. end
  600. DB = false
  601. end
  602. end)
  603.  
  604. local Weld = Instance.new("Weld")
  605. Weld.Part0 = Torso
  606. Weld.Part1 = Character["Right Arm"]
  607. Weld.Parent = Torso
  608.  
  609. local Weld2 = Instance.new("Weld")
  610. Weld2.Part0 = Torso
  611. Weld2.Part1 = Character.Head
  612. Weld2.Parent = Torso
  613.  
  614. local RA = Character["Right Arm"]
  615.  
  616. game:GetService("RunService"):BindToRenderStep("Pistol",Enum.RenderPriority.Character.Value,function()
  617. local Point = Torso.CFrame:vectorToObjectSpace(Mouse.Hit.p-Torso.CFrame.p)
  618. if Point.Z > 0 then
  619. if Point.X > 0 then
  620. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  621. elseif Point.X < 0 then
  622. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  623. end
  624. end
  625.  
  626. local CFr = (Torso.CFrame*Part0Joint):toObjectSpace(CFrame.new((Torso.CFrame*Part0Joint).p,Mouse.Hit.p))--RayEnd))
  627. Weld.C0 = Part0Joint * (CFr-CFr.p) * RotationOffset
  628. Weld.C1 = Part1Joint
  629. Weld.Part0 = Torso
  630. Weld.Part1 = RA
  631. local CFr = (Torso.CFrame*Part0JointHead):toObjectSpace(CFrame.new((Torso.CFrame*Part0JointHead).p,Mouse.Hit.p))--RayEnd))
  632. Weld2.C0 = Part0JointHead * (CFr-CFr.p) * RotationOffsetHead
  633. Weld2.C1 = Part1JointHead
  634. Weld2.Part0 = Torso
  635. Weld2.Part1 = Character.Head
  636. local Last = Scale
  637. Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
  638. Speed = 20*Scale
  639. if Scale ~= Last then
  640. Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  641. Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  642. Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  643. Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  644. end
  645. end)
Add Comment
Please, Sign In to add comment