H20_HYDRATION_V2

Anti oder

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