Advertisement
iiJosephCats205

GL0CK 17

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