Advertisement
lafur

Untitled

Apr 21st, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Scale = 3
  2. local Speed = 20*Scale
  3. local Gravity = math.random(-1,1)*100
  4.  
  5. local Player = game:GetService("Players").LocalPlayer
  6. local Character = Player.Character
  7. local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  8. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  9. local Torso = Character.HumanoidRootPart
  10. local Mouse = game.Players.LocalPlayer:GetMouse()
  11. local RenderStepped = game:GetService("RunService").RenderStepped
  12. local Camera = Workspace.CurrentCamera
  13. Camera:ClearAllChildren()
  14. local Model = Instance.new("Model",Character)
  15. local IgnoreList = {Character,Workspace.Terrain}
  16. Instance.new("ForceField",Character).Visible = false
  17.  
  18. local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*1.25)
  19. local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*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)*1.25)
  24. local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*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 * math.random(-Scale,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,-1,0)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,Scale)) * CFrame.Angles(math.rad(i-65),0,0) * CFrame.new(Vector3.new(0,0.2,0)*math.random(-Scale,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 * math.random(-Scale,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)*math.random(-Scale,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. coroutine.resume(coroutine.create(function()
  490.     local barrel = barrel or Barrel
  491.     local Bullet = Instance.new("Part",Workspace)
  492.     Barrel.CanCollide = false
  493.     Bullet.FormFactor = "Custom"
  494.     Bullet.Size = Vector3.new(math.random(5,10)/10,math.random(5,10)/10,math.random(30,50)/10)
  495.     Bullet.TopSurface = "Smooth"
  496.     Bullet.BottomSurface = "Smooth"
  497.     Bullet.Anchored = false
  498.     Bullet.CanCollide = true
  499.     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)
  500.     Bullet.BrickColor = BrickColor.new("Gold")
  501.     Bullet:BreakJoints()
  502.     IgnoreList[#IgnoreList+1] = Bullet
  503.     Bullet.Touched:Connect(function(hit)
  504.         hit:Explode()
  505.     end)
  506.     RenderStepped:wait()
  507.     for i = 1,75,1 do -- Loop to do the bullet movement and stuff.
  508.         Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)*CFrame.new(0,0,-Speed/1.2)
  509.         RenderStepped:wait()
  510.     end
  511.     Bullet:Destroy()
  512. end))
  513. end
  514.  
  515. Mouse.Button1Down:connect(function()
  516.     if not Down and not DB then
  517.         Down = true
  518.         while Down do
  519.             if Humanoid.Health == 0 then break end
  520.             if not DB then
  521.                 DB = true
  522.                 coroutine.resume(coroutine.create(function()
  523.                     for i = 1,4 do
  524.                         ShootBullet(Mouse.Hit.p,Barrel1)
  525.                     end
  526.                 end))
  527.                 RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255)
  528.                 PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0)
  529.                 local Shell = Instance.new("Part",Workspace)
  530.                 Shell.FormFactor = "Custom"
  531.                 Shell.BrickColor = BrickColor.new("Bright yellow")
  532.                 Shell.Size = Vector3.new(5,1,5)*Scale
  533.                 Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
  534.                 Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale
  535.                 Spawn(function()
  536.                     wait(5)
  537.                     Shell:Destroy()
  538.                 end)
  539.                 RenderStepped:wait()
  540.                 DB = false
  541.             end
  542.         end
  543.     end
  544. end)
  545.  
  546. Mouse.Button1Up:connect(function()
  547.     Down = false
  548. end)
  549.  
  550. local Weld = Instance.new("Weld")
  551. Weld.Part0 = Torso
  552. Weld.Part1 = Character["Right Arm"]
  553. Weld.Parent = Torso
  554.  
  555. local Weld2 = Instance.new("Weld")
  556. Weld2.Part0 = Torso
  557. Weld2.Part1 = Character.Head
  558. Weld2.Parent = Torso
  559.  
  560. local RA = Character["Right Arm"]
  561. local bestweld = Instance.new("Weld",Character)
  562. bestweld.Part0 = Character.Torso
  563. bestweld.Part1 = RA
  564. bestweld.C1 = CFrame.new(0,-.5,0)
  565. bestweld.C0 = CFrame.new(1.5,-.5,0)
  566. while true do
  567. Gravity = math.random(-1,1)*100
  568. for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  569. if v:IsA("Part") and v.Name ~= "Head" and v.Parent.ClassName ~= "Accessory" then
  570. v.LocalTransparencyModifier = 0
  571. end
  572. end
  573.     for i,v in pairs(Character:GetDescendants()) do
  574.     if v:IsA("BlockMesh") or v:IsA("CylinderMesh") then
  575.     v.Scale = v.Scale:Lerp(Vector3.new(math.random(3,20)/10,math.random(3,20)/10,math.random(3,20)/10),.3)
  576.     v.Offset = v.Offset:Lerp(Vector3.new(math.random(3,20)/10,math.random(3,20)/10,math.random(3,20)/10),.3)
  577.     end
  578.     end
  579.     local CFr = CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) * CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  580.     Weld.C0 = Weld.C0:Lerp(Part0Joint * CFr,.3)
  581.     Weld.C1 = Part1Joint
  582.     Weld.Part0 = Torso
  583.     Weld.Part1 = RA
  584.     local CFr = CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) * CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  585.     Weld2.C0 = Weld2.C0:Lerp(Part0Joint * CFr,.3)
  586.     Weld2.C1 = Part1JointHead
  587.     Weld2.Part0 = Torso
  588.     Weld2.Part1 = Character.Head
  589.     local Last = Scale
  590.     Speed = 5
  591.     bestweld.C0 = bestweld.C0:Lerp(CFrame.new(math.random(-15,15)/10,math.random(-5,5)/10,0) * CFrame.Angles(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10),.3)
  592.     HandleWeld.C0 = HandleWeld.C0:Lerp(CFrame.new(math.random(-20,20)/10,math.random(-20,20)/10,math.random(-20,20)/10) * CFrame.Angles(math.random(-20,20)/10,math.random(-20,20)/10,math.random(-20,20)/10),.3)
  593. game:GetService("RunService").Stepped:Wait()
  594. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement