omg12

Untitled

Apr 7th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.09 KB | None | 0 0
  1. --=================================--
  2.  
  3.  
  4. -- EDIT BY NOOOB423 --
  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.  
  16.  
  17. local Pants = "rbxassetid://235837123"
  18. local Shirt = "rbxassetid://429232019"
  19. local Pants2 = "rbxassetid://235837123"
  20. local Shirt2 = "rbxassetid://435912776"
  21. local Pants3 = "rbxassetid://235837123"
  22. local Shirt3 = "rbxassetid://429232019"
  23. 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
  24. local Speed = 20*Scale
  25. local Gravity = 0.1
  26.  
  27. local Player = game.Players.LocalPlayer
  28. local Character = Player.Character
  29. local Humanoid = Character.Humanoid
  30. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  31. local Torso = Character.HumanoidRootPart
  32. local Mouse = game.Players.LocalPlayer:GetMouse()
  33. local RenderStepped = game:GetService("RunService").RenderStepped
  34. local Camera = Workspace.CurrentCamera
  35. Camera:ClearAllChildren()
  36. local Model = Instance.new("Model",Character)
  37. local IgnoreList = {Character,Workspace.Terrain}
  38.  
  39. Player.Character.Head.face.Texture = "rbxassetid://68437731"
  40.  
  41. if TrapShirt == true then
  42. Player.Character.Shirt.ShirtTexture = "rbxassetid://877679540"
  43. end
  44.  
  45. if AnimeHair == true then
  46. for i,v in pairs(Character:GetChildren()) do
  47. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  48. v:destroy()
  49. end
  50. end
  51.  
  52. local Hair = Instance.new("Part")
  53. Hair.Parent = Character
  54. Hair.Name = "Hair"
  55. Hair.Size = Vector3.new(1.592, 1.066, 1.302)
  56. Hair.CFrame = Character.Head.CFrame
  57. Hair:BreakJoints()
  58. Hair.CanCollide = false
  59. Hair.BrickColor = BrickColor.new("New Yeller")
  60. Hair.TopSurface = "Smooth"
  61. Hair.BottomSurface = "Smooth"
  62. Weld = Instance.new("Weld")
  63. Weld.Name = "Weld"
  64. Weld.Part0 = Character.Head
  65. Weld.Part1 = Hair
  66. Weld.Parent = Character.Head
  67. Weld.C0 = CFrame.new(0, -1.4, 0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  68. Mesh = Instance.new("SpecialMesh")
  69. Mesh.Parent = Hair
  70. Mesh.MeshId = "rbxassetid://592191753"
  71. Mesh.TextureId = "http://www.roblox.com/asset/?id=461231644"
  72. Mesh.Scale = Vector3.new(1,1,1)
  73. end
  74.  
  75.  
  76. z = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  77. z.SoundId = "rbxassetid://984640330"
  78. z.Looped = true
  79. z.Pitch = 1
  80. z.Volume = 5
  81. wait(.1)
  82. z:Play()
  83.  
  84. local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  85. local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  86. local RotationOffset = CFrame.Angles(math.rad(90),math.rad(0),0)
  87. local Gangster = false
  88.  
  89. local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  90. local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  91. local RotationOffsetHead = CFrame.Angles(0,0,0)
  92.  
  93. local Handle = Instance.new("Part",Model)
  94. Handle.CanCollide = false
  95. Handle.Name = "Handle"
  96. Handle.Position = Vector3.new(0,100,0)
  97. Handle:BreakJoints()
  98. Handle.FormFactor = "Custom"
  99. Handle.Size = Vector3.new(0.2,0.2,0.2)
  100. Handle.TopSurface = "SmoothNoOutlines"
  101. Handle.BottomSurface = "SmoothNoOutlines"
  102. Handle.FrontSurface = "SmoothNoOutlines"
  103. Handle.BackSurface = "SmoothNoOutlines"
  104. Handle.RightSurface = "SmoothNoOutlines"
  105. Handle.LeftSurface = "SmoothNoOutlines"
  106. Handle.BrickColor = BrickColor.new("Black")
  107. Handle.Material = "Neon"
  108. local Mesh = Instance.new("BlockMesh",Handle)
  109. Mesh.Scale = Vector3.new(0.25,1,0.4) / 0.2 * Scale
  110. local HandleWeld = Instance.new("Motor6D")
  111. HandleWeld.Part0 = Character["Right Arm"]
  112. HandleWeld.Part1 = Handle
  113. HandleWeld.C0 = CFrame.new(Vector3.new(0,-1,0)*Scale) * CFrame.Angles(math.rad(-105),0,0)
  114. HandleWeld.Parent = Handle
  115.  
  116. local Part = Instance.new("Part",Model)
  117. Part.CanCollide = false
  118. Part.Position = Vector3.new(0,100,0)
  119. Part:BreakJoints()
  120. Part.FormFactor = "Custom"
  121. Part.Size = Vector3.new(0.2,0.2,0.2)
  122. Part.TopSurface = "SmoothNoOutlines"
  123. Part.BottomSurface = "SmoothNoOutlines"
  124. Part.FrontSurface = "SmoothNoOutlines"
  125. Part.BackSurface = "SmoothNoOutlines"
  126. Part.RightSurface = "SmoothNoOutlines"
  127. Part.LeftSurface = "SmoothNoOutlines"
  128. Part.BrickColor = BrickColor.new("Black")
  129. Part.Material = "Neon"
  130. local Mesh = Instance.new("CylinderMesh",Part)
  131. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  132. local PartWeld = Instance.new("Motor6D")
  133. PartWeld.Part0 = Handle
  134. PartWeld.Part1 = Part
  135. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  136. PartWeld.Parent = Part
  137.  
  138. local Part = Instance.new("Part",Model)
  139. Part.CanCollide = false
  140. Part.Position = Vector3.new(0,100,0)
  141. Part:BreakJoints()
  142. Part.FormFactor = "Custom"
  143. Part.Size = Vector3.new(0.2,0.2,0.2)
  144. Part.TopSurface = "SmoothNoOutlines"
  145. Part.BottomSurface = "SmoothNoOutlines"
  146. Part.FrontSurface = "SmoothNoOutlines"
  147. Part.BackSurface = "SmoothNoOutlines"
  148. Part.RightSurface = "SmoothNoOutlines"
  149. Part.LeftSurface = "SmoothNoOutlines"
  150. Part.BrickColor = BrickColor.new("Black")
  151. Part.Material = "Neon"
  152. local Mesh = Instance.new("CylinderMesh",Part)
  153. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  154. local PartWeld = Instance.new("Motor6D")
  155. PartWeld.Part0 = Handle
  156. PartWeld.Part1 = Part
  157. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  158. PartWeld.Parent = Part
  159.  
  160. local Part = Instance.new("Part",Model)
  161. Part.CanCollide = false
  162. Part.Position = Vector3.new(0,100,0)
  163. Part:BreakJoints()
  164. Part.FormFactor = "Custom"
  165. Part.Size = Vector3.new(0.2,0.2,0.2)
  166. Part.TopSurface = "SmoothNoOutlines"
  167. Part.BottomSurface = "SmoothNoOutlines"
  168. Part.FrontSurface = "SmoothNoOutlines"
  169. Part.BackSurface = "SmoothNoOutlines"
  170. Part.RightSurface = "SmoothNoOutlines"
  171. Part.LeftSurface = "SmoothNoOutlines"
  172. Part.BrickColor = BrickColor.new("Black")
  173. Part.Material = "Neon"
  174. local Mesh = Instance.new("CylinderMesh",Part)
  175. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  176. local PartWeld = Instance.new("Motor6D")
  177. PartWeld.Part0 = Handle
  178. PartWeld.Part1 = Part
  179. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  180. PartWeld.Parent = Part
  181.  
  182. local Part = Instance.new("Part",Model)
  183. Part.CanCollide = false
  184. Part.Position = Vector3.new(0,100,0)
  185. Part:BreakJoints()
  186. Part.FormFactor = "Custom"
  187. Part.Size = Vector3.new(0.2,0.2,0.2)
  188. Part.TopSurface = "SmoothNoOutlines"
  189. Part.BottomSurface = "SmoothNoOutlines"
  190. Part.FrontSurface = "SmoothNoOutlines"
  191. Part.BackSurface = "SmoothNoOutlines"
  192. Part.RightSurface = "SmoothNoOutlines"
  193. Part.LeftSurface = "SmoothNoOutlines"
  194. Part.BrickColor = BrickColor.new("Black")
  195. Part.Material = "Neon"
  196. local Mesh = Instance.new("CylinderMesh",Part)
  197. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  198. local PartWeld = Instance.new("Motor6D")
  199. PartWeld.Part0 = Handle
  200. PartWeld.Part1 = Part
  201. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  202. PartWeld.Parent = Part
  203.  
  204. local Part = Instance.new("Part",Model)
  205. Part.CanCollide = false
  206. Part.Position = Vector3.new(0,100,0)
  207. Part:BreakJoints()
  208. Part.FormFactor = "Custom"
  209. Part.Size = Vector3.new(0.2,0.2,0.2)
  210. Part.TopSurface = "SmoothNoOutlines"
  211. Part.BottomSurface = "SmoothNoOutlines"
  212. Part.FrontSurface = "SmoothNoOutlines"
  213. Part.BackSurface = "SmoothNoOutlines"
  214. Part.RightSurface = "SmoothNoOutlines"
  215. Part.LeftSurface = "SmoothNoOutlines"
  216. Part.BrickColor = BrickColor.new("Black")
  217. Part.Material = "Neon"
  218. local Mesh = Instance.new("BlockMesh",Part)
  219. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  220. local PartWeld = Instance.new("Motor6D")
  221. PartWeld.Part0 = Handle
  222. PartWeld.Part1 = Part
  223. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,-0.175)*Scale) * CFrame.Angles(0,0,0)
  224. PartWeld.Parent = Part
  225.  
  226. local Part = Instance.new("Part",Model)
  227. Part.CanCollide = false
  228. Part.Position = Vector3.new(0,100,0)
  229. Part:BreakJoints()
  230. Part.FormFactor = "Custom"
  231. Part.Size = Vector3.new(0.2,0.2,0.2)
  232. Part.TopSurface = "SmoothNoOutlines"
  233. Part.BottomSurface = "SmoothNoOutlines"
  234. Part.FrontSurface = "SmoothNoOutlines"
  235. Part.BackSurface = "SmoothNoOutlines"
  236. Part.RightSurface = "SmoothNoOutlines"
  237. Part.LeftSurface = "SmoothNoOutlines"
  238. Part.BrickColor = BrickColor.new("Black")
  239. Part.Material = "Neon"
  240. local Mesh = Instance.new("BlockMesh",Part)
  241. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  242. local PartWeld = Instance.new("Motor6D")
  243. PartWeld.Part0 = Handle
  244. PartWeld.Part1 = Part
  245. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,0.175)*Scale) * CFrame.Angles(0,0,0)
  246. PartWeld.Parent = Part
  247.  
  248. local Part = Instance.new("Part",Model)
  249. Part.CanCollide = false
  250. Part.Position = Vector3.new(0,100,0)
  251. Part:BreakJoints()
  252. Part.FormFactor = "Custom"
  253. Part.Size = Vector3.new(0.2,0.2,0.2)
  254. Part.TopSurface = "SmoothNoOutlines"
  255. Part.BottomSurface = "SmoothNoOutlines"
  256. Part.FrontSurface = "SmoothNoOutlines"
  257. Part.BackSurface = "SmoothNoOutlines"
  258. Part.RightSurface = "SmoothNoOutlines"
  259. Part.LeftSurface = "SmoothNoOutlines"
  260. Part.BrickColor = BrickColor.new("Black")
  261. Part.Material = "Neon"
  262. local Mesh = Instance.new("BlockMesh",Part)
  263. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  264. local PartWeld = Instance.new("Motor6D")
  265. PartWeld.Part0 = Handle
  266. PartWeld.Part1 = Part
  267. PartWeld.C0 = CFrame.new(Vector3.new(-0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  268. PartWeld.Parent = Part
  269.  
  270. local Part = Instance.new("Part",Model)
  271. Part.CanCollide = false
  272. Part.Position = Vector3.new(0,100,0)
  273. Part:BreakJoints()
  274. Part.FormFactor = "Custom"
  275. Part.Size = Vector3.new(0.2,0.2,0.2)
  276. Part.TopSurface = "SmoothNoOutlines"
  277. Part.BottomSurface = "SmoothNoOutlines"
  278. Part.FrontSurface = "SmoothNoOutlines"
  279. Part.BackSurface = "SmoothNoOutlines"
  280. Part.RightSurface = "SmoothNoOutlines"
  281. Part.LeftSurface = "SmoothNoOutlines"
  282. Part.BrickColor = BrickColor.new("Black")
  283. Part.Material = "Neon"
  284. local Mesh = Instance.new("BlockMesh",Part)
  285. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  286. local PartWeld = Instance.new("Motor6D")
  287. PartWeld.Part0 = Handle
  288. PartWeld.Part1 = Part
  289. PartWeld.C0 = CFrame.new(Vector3.new(0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  290. PartWeld.Parent = Part
  291.  
  292. local Part = Instance.new("Part",Model)
  293. Part.CanCollide = false
  294. Part.Position = Vector3.new(0,100,0)
  295. Part:BreakJoints()
  296. Part.FormFactor = "Custom"
  297. Part.Size = Vector3.new(0.2,0.2,0.2)
  298. Part.TopSurface = "SmoothNoOutlines"
  299. Part.BottomSurface = "SmoothNoOutlines"
  300. Part.FrontSurface = "SmoothNoOutlines"
  301. Part.BackSurface = "SmoothNoOutlines"
  302. Part.RightSurface = "SmoothNoOutlines"
  303. Part.LeftSurface = "SmoothNoOutlines"
  304. Part.BrickColor = BrickColor.new("Black")
  305. Part.Material = "Neon"
  306. local Mesh = Instance.new("BlockMesh",Part)
  307. Mesh.Scale = Vector3.new(0.1,0.3,0.05) / 0.2 * Scale
  308. local PartWeld = Instance.new("Motor6D")
  309. PartWeld.Part0 = Handle
  310. PartWeld.Part1 = Part
  311. 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)
  312. PartWeld.Parent = Part
  313.  
  314. local Part = Instance.new("Part",Model)
  315. Part.CanCollide = false
  316. Part.Position = Vector3.new(0,100,0)
  317. Part:BreakJoints()
  318. Part.FormFactor = "Custom"
  319. Part.Size = Vector3.new(0.2,0.2,0.2)
  320. Part.TopSurface = "SmoothNoOutlines"
  321. Part.BottomSurface = "SmoothNoOutlines"
  322. Part.FrontSurface = "SmoothNoOutlines"
  323. Part.BackSurface = "SmoothNoOutlines"
  324. Part.RightSurface = "SmoothNoOutlines"
  325. Part.LeftSurface = "SmoothNoOutlines"
  326. Part.BrickColor = BrickColor.new("Black")
  327. Part.Material = "Neon"
  328. local Mesh = Instance.new("BlockMesh",Part)
  329. Mesh.Scale = Vector3.new(0.1,0.05,0.625) / 0.2 * Scale
  330. local PartWeld = Instance.new("Motor6D")
  331. PartWeld.Part0 = Handle
  332. PartWeld.Part1 = Part
  333. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.1,-0.435)*Scale)
  334. PartWeld.Parent = Part
  335.  
  336. for i = 0,80,10 do
  337. local Part = Instance.new("Part",Model)
  338. Part.CanCollide = false
  339. Part.Position = Vector3.new(0,100,0)
  340. Part:BreakJoints()
  341. Part.FormFactor = "Custom"
  342. Part.Size = Vector3.new(0.2,0.2,0.2)
  343. Part.TopSurface = "SmoothNoOutlines"
  344. Part.BottomSurface = "SmoothNoOutlines"
  345. Part.FrontSurface = "SmoothNoOutlines"
  346. Part.BackSurface = "SmoothNoOutlines"
  347. Part.RightSurface = "SmoothNoOutlines"
  348. Part.LeftSurface = "SmoothNoOutlines"
  349. Part.BrickColor = BrickColor.new("Black")
  350. Part.Material = "Neon"
  351. local Mesh = Instance.new("BlockMesh",Part)
  352. Mesh.Scale = Vector3.new(0.25,0.15,0.03555*2) / 0.2 * Scale
  353. local PartWeld = Instance.new("Motor6D")
  354. PartWeld.Part0 = Handle
  355. PartWeld.Part1 = Part
  356. 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)
  357. PartWeld.Parent = Part
  358. end
  359.  
  360. local Barrel = Instance.new("Part",Model)
  361. Barrel.CanCollide = false
  362. Barrel.Position = Vector3.new(0,100,0)
  363. Barrel:BreakJoints()
  364. Barrel.FormFactor = "Custom"
  365. Barrel.Size = Vector3.new(0.2,0.2,0.2)
  366. Barrel.TopSurface = "SmoothNoOutlines"
  367. Barrel.BottomSurface = "SmoothNoOutlines"
  368. Barrel.FrontSurface = "SmoothNoOutlines"
  369. Barrel.BackSurface = "SmoothNoOutlines"
  370. Barrel.RightSurface = "SmoothNoOutlines"
  371. Barrel.LeftSurface = "SmoothNoOutlines"
  372. Barrel.BrickColor = BrickColor.new("Black")
  373. Barrel.Material = "Neon"
  374. local Mesh = Instance.new("BlockMesh",Barrel)
  375. Mesh.Scale = Vector3.new(0.25,0.2,2) / 0.2 * Scale
  376. local BarrelWeld = Instance.new("Motor6D")
  377. BarrelWeld.Part0 = Handle
  378. BarrelWeld.Part1 = Barrel
  379. BarrelWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.5,-0.7)*Scale)
  380. BarrelWeld.Parent = Barrel
  381.  
  382. local Barrel1 = Barrel
  383.  
  384. local Barrel2 = Instance.new("Part",Model)
  385. Barrel2.CanCollide = false
  386. Barrel2.Position = Vector3.new(0,100,0)
  387. Barrel2:BreakJoints()
  388. Barrel2.FormFactor = "Custom"
  389. Barrel2.Size = Vector3.new(0.2,0.2,0.2)
  390. Barrel2.TopSurface = "SmoothNoOutlines"
  391. Barrel2.BottomSurface = "SmoothNoOutlines"
  392. Barrel2.FrontSurface = "SmoothNoOutlines"
  393. Barrel2.BackSurface = "SmoothNoOutlines"
  394. Barrel2.RightSurface = "SmoothNoOutlines"
  395. Barrel2.LeftSurface = "SmoothNoOutlines"
  396. Barrel2.BrickColor = BrickColor.new("Black")
  397. Barrel2.Material = "Neon"
  398. local Mesh = Instance.new("BlockMesh",Barrel2)
  399. Mesh.Scale = Vector3.new(0.25,0.25,2) / 0.2 * Scale
  400. local Barrel2Weld = Instance.new("Motor6D")
  401. Barrel2Weld.Part0 = Barrel
  402. Barrel2Weld.Part1 = Barrel2
  403. Barrel2Weld.C0 = CFrame.new(Vector3.new(0,0.225,0)*Scale)
  404. Barrel2Weld.Parent = Barrel2
  405.  
  406. local RealBarrel = Instance.new("Part",Model)
  407. RealBarrel.CanCollide = false
  408. RealBarrel.Position = Vector3.new(0,100,0)
  409. RealBarrel:BreakJoints()
  410. RealBarrel.FormFactor = "Custom"
  411. RealBarrel.Size = Vector3.new(0.2,0.2,0.2)
  412. RealBarrel.TopSurface = "SmoothNoOutlines"
  413. RealBarrel.BottomSurface = "SmoothNoOutlines"
  414. RealBarrel.FrontSurface = "SmoothNoOutlines"
  415. RealBarrel.BackSurface = "SmoothNoOutlines"
  416. RealBarrel.RightSurface = "SmoothNoOutlines"
  417. RealBarrel.LeftSurface = "SmoothNoOutlines"
  418. RealBarrel.BrickColor = BrickColor.new("Black")
  419. RealBarrel.Material = "Neon"
  420. local Mesh = Instance.new("CylinderMesh",RealBarrel)
  421. Mesh.Scale = Vector3.new(0.2,2,0.2) / 0.2 * Scale
  422. local RealBarrelWeld = Instance.new("Motor6D")
  423. RealBarrelWeld.Part0 = Barrel
  424. RealBarrelWeld.Part1 = RealBarrel
  425. RealBarrelWeld.C0 = CFrame.new(Vector3.new(0,0.1,-0.01)*Scale) * CFrame.Angles(math.rad(-90),0,0)
  426. RealBarrelWeld.Parent = RealBarrel
  427.  
  428. for i = 1,75,15 do
  429. local Part = Instance.new("Part",Model)
  430. Part.CanCollide = false
  431. Part.Position = Vector3.new(0,100,0)
  432. Part:BreakJoints()
  433. Part.FormFactor = "Custom"
  434. Part.Size = Vector3.new(0.2,0.2,0.2)
  435. Part.TopSurface = "SmoothNoOutlines"
  436. Part.BottomSurface = "SmoothNoOutlines"
  437. Part.FrontSurface = "SmoothNoOutlines"
  438. Part.BackSurface = "SmoothNoOutlines"
  439. Part.RightSurface = "SmoothNoOutlines"
  440. Part.LeftSurface = "SmoothNoOutlines"
  441. Part.BrickColor = BrickColor.new("Black")
  442. Part.Material = "Neon"
  443. local Mesh = Instance.new("BlockMesh",Part)
  444. Mesh.Scale = Vector3.new(0.05,0.065,0.05) / 0.2 * Scale
  445. local PartWeld = Instance.new("Motor6D")
  446. PartWeld.Part0 = Handle
  447. PartWeld.Part1 = Part
  448. 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)
  449. PartWeld.Parent = Part
  450. end
  451.  
  452. local Part = Instance.new("Part",Model)
  453. Part.CanCollide = false
  454. Part.Position = Vector3.new(0,100,0)
  455. Part:BreakJoints()
  456. Part.FormFactor = "Custom"
  457. Part.Size = Vector3.new(0.2,0.2,0.2)
  458. Part.TopSurface = "SmoothNoOutlines"
  459. Part.BottomSurface = "SmoothNoOutlines"
  460. Part.FrontSurface = "SmoothNoOutlines"
  461. Part.BackSurface = "SmoothNoOutlines"
  462. Part.RightSurface = "SmoothNoOutlines"
  463. Part.LeftSurface = "SmoothNoOutlines"
  464. Part.BrickColor = BrickColor.new("Toothpaste")
  465. Part.Material = "Neon"
  466. local Mesh = Instance.new("BlockMesh",Part)
  467. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  468. local PartWeld = Instance.new("Motor6D")
  469. PartWeld.Part0 = Barrel2
  470. PartWeld.Part1 = Part
  471. PartWeld.C0 = CFrame.new(Vector3.new(0.06,0.135,0.925)*Scale)
  472. PartWeld.Parent = Part
  473.  
  474. local Part = Instance.new("Part",Model)
  475. Part.CanCollide = false
  476. Part.Position = Vector3.new(0,100,0)
  477. Part:BreakJoints()
  478. Part.FormFactor = "Custom"
  479. Part.Size = Vector3.new(0.2,0.2,0.2)
  480. Part.TopSurface = "SmoothNoOutlines"
  481. Part.BottomSurface = "SmoothNoOutlines"
  482. Part.FrontSurface = "SmoothNoOutlines"
  483. Part.BackSurface = "SmoothNoOutlines"
  484. Part.RightSurface = "SmoothNoOutlines"
  485. Part.LeftSurface = "SmoothNoOutlines"
  486. Part.BrickColor = BrickColor.new("Toothpaste")
  487. Part.Material = "Neon"
  488. local Mesh = Instance.new("BlockMesh",Part)
  489. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  490. local PartWeld = Instance.new("Motor6D")
  491. PartWeld.Part0 = Barrel2
  492. PartWeld.Part1 = Part
  493. PartWeld.C0 = CFrame.new(Vector3.new(-0.06,0.135,0.925)*Scale)
  494. PartWeld.Parent = Part
  495.  
  496. local Part = Instance.new("Part",Model)
  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("Toothpaste")
  509. Part.Material = "Neon"
  510. local Mesh = Instance.new("BlockMesh",Part)
  511. Mesh.Scale = Vector3.new(0.025,0.1,0.1) / 0.2 * Scale
  512. local PartWeld = Instance.new("Motor6D")
  513. PartWeld.Part0 = Barrel2
  514. PartWeld.Part1 = Part
  515. PartWeld.C0 = CFrame.new(Vector3.new(0,0.135,-0.925)*Scale)
  516. PartWeld.Parent = Part
  517.  
  518. local Part = Instance.new("Part",Model)
  519. Part.CanCollide = false
  520. Part.Position = Vector3.new(0,100,0)
  521. Part:BreakJoints()
  522. Part.FormFactor = "Custom"
  523. Part.Size = Vector3.new(0.2,0.2,0.2)
  524. Part.Transparency = 1
  525. Part.TopSurface = "SmoothNoOutlines"
  526. Part.BottomSurface = "SmoothNoOutlines"
  527. Part.FrontSurface = "SmoothNoOutlines"
  528. Part.BackSurface = "SmoothNoOutlines"
  529. Part.RightSurface = "SmoothNoOutlines"
  530. Part.LeftSurface = "SmoothNoOutlines"
  531. Part.BrickColor = BrickColor.new("Magenta")
  532. Part.Material = "Neon"
  533. local Mesh = Instance.new("BlockMesh",Part)
  534. Mesh.Scale = Vector3.new(0.1,0.1,0.1) / 0.2 * Scale
  535. local PartWeld = Instance.new("Motor6D")
  536. PartWeld.Part0 = Barrel
  537. PartWeld.Part1 = Part
  538. PartWeld.C0 = CFrame.new(Vector3.new(0,0,-5)*Scale)
  539. PartWeld.Parent = Part
  540.  
  541. local Light = Instance.new("PointLight",Part)
  542. Light.Color = BrickColor.new("Gold").Color
  543. Light.Enabled = true
  544. Light.Shadows = true
  545. Light.Brightness = 0
  546. Light.Range = 6
  547.  
  548. local Part = Instance.new("Part",Model)
  549. Part.Material = "Neon"
  550. Part.CanCollide = false
  551. Part.Position = Vector3.new(0,100,0)
  552. Part:BreakJoints()
  553. Part.FormFactor = "Custom"
  554. Part.Size = Vector3.new(0.2,0.2,0.2)
  555. Part.TopSurface = "SmoothNoOutlines"
  556. Part.BottomSurface = "SmoothNoOutlines"
  557. Part.FrontSurface = "SmoothNoOutlines"
  558. Part.BackSurface = "SmoothNoOutlines"
  559. Part.RightSurface = "SmoothNoOutlines"
  560. Part.LeftSurface = "SmoothNoOutlines"
  561. Part.BrickColor = BrickColor.new("Really red")
  562. Part.Material = "Neon"
  563. Part.Transparency = 0.25
  564. local RecoilMesh = Instance.new("SpecialMesh",Part)
  565. RecoilMesh.MeshType = "FileMesh"
  566. RecoilMesh.MeshId = "http://www.roblox.com/Asset/?id=1323306"
  567. RecoilMesh.TextureId = "http://www.roblox.com/Asset/?id=98896228"
  568. RecoilMesh.Scale = Vector3.new(0.175,0,0.175) * Scale
  569. local PartWeld = Instance.new("Motor6D")
  570. PartWeld.Part0 = RealBarrel
  571. PartWeld.Part1 = Part
  572. PartWeld.C0 = CFrame.new(Vector3.new(0,0.95,0)*Scale)
  573. PartWeld.Parent = Part
  574.  
  575. function ShootBullet(Target,barrel)
  576. local barrel = barrel or Barrel
  577. local Bullet = Instance.new("Part",Workspace)
  578. Barrel.CanCollide = false
  579. Bullet.FormFactor = "Custom"
  580. Bullet.Size = Vector3.new(0.2,0.2,5)*Scale
  581. Bullet.TopSurface = "Smooth"
  582. Bullet.BottomSurface = "Smooth"
  583. Bullet.Anchored = true
  584. Bullet.CanCollide = false
  585. 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)
  586. Bullet.Transparency = 0.1
  587. Bullet.BrickColor = BrickColor.new("Really red")
  588. Bullet.Material = "Neon"
  589. --[[local Mesh = Instance.new("SpecialMesh",Bullet)
  590. Mesh.MeshType = "FileMesh"
  591. Mesh.Scale = Vector3.new(0.5,0.5,0.2)
  592. Mesh.MeshId = "http://www.roblox.com/asset/?id=2697549"
  593. --Mesh.TextureId = "http://www.roblox.com/asset/?id=2697544"]]
  594. local Mesh = Instance.new("BlockMesh",Bullet)
  595. Mesh.Scale = Vector3.new(0.2,0.2,5)*Scale/Bullet.Size
  596. IgnoreList[#IgnoreList+1] = Bullet
  597. RenderStepped:wait()
  598. for i = Speed,1000,Speed do -- Loop to do the bullet movement and stuff.
  599. local ray,Hit,Pos,SurfaceNormal;
  600. ray = Ray.new(Bullet.Position,((Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)).p-Bullet.Position).unit*Speed)
  601. Hit,Pos,SurfaceNormal = Workspace:FindPartOnRayWithIgnoreList(ray,IgnoreList)
  602. Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)
  603. if Hit ~= nil then
  604. 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"))
  605. if Hum ~= nil then
  606. player2 = Hit.Parent
  607. Hum:TakeDamage(5)
  608. if Hum.Parent.Torso == nil then
  609. q = Instance.new("Sound", Hum.Parent.UpperTorso)
  610. q.SoundId = "rbxassetid://153259684"
  611. q:Play()
  612.  
  613. elseif Hum.Parent.Torso ~= nil then
  614. q = Instance.new("Sound", Hum.Parent.Torso)
  615. q.SoundId = "rbxassetid://153259684"
  616. q:Play()
  617.  
  618. end
  619.  
  620. for i,v in pairs(player2:GetChildren()) do
  621. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  622. v:destroy()
  623. end
  624. end
  625.  
  626. local Hair = Instance.new("Part")
  627. Hair.Parent = player2
  628. Hair.Name = "Hair"
  629. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  630. Hair.CFrame = player2.Head.CFrame
  631. Hair:BreakJoints()
  632. Hair.CanCollide = false
  633. Hair.BrickColor = BrickColor.new("New Yeller")
  634. Hair.TopSurface = "Smooth"
  635. Hair.BottomSurface = "Smooth"
  636. Weld = Instance.new("Weld")
  637. Weld.Name = "Weld"
  638. Weld.Part0 = player2.Head
  639. Weld.Part1 = Hair
  640. Weld.Parent = player2.Head
  641. Weld.C0 = CFrame.new(0, -1.4, 0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  642. Mesh = Instance.new("SpecialMesh")
  643. Mesh.Parent = Hair
  644. Mesh.MeshId = "rbxassetid://592191753"
  645. Mesh.TextureId = "http://www.roblox.com/asset/?id=461231644"
  646. Mesh.Scale = Vector3.new(0.050, 0.050, 0.050)
  647. Hum.Parent.Head.face.Texture = "rbxassetid://299663091"
  648.  
  649. local num = math.random(1, 3)
  650. print(num)
  651. local charPants = player2:FindFirstChildOfClass("Pants")
  652. local charShirt = player2: FindFirstChildOfClass("Shirt")
  653. if charPants and charShirt then
  654. if num == 1 then
  655. charShirt.ShirtTemplate = Shirt
  656. charPants.PantsTemplate = Pants
  657. elseif num == 2 then
  658. charShirt.ShirtTemplate = Shirt2
  659. charPants.PantsTemplate = Pants2
  660. elseif num == 3 then
  661. charShirt.ShirtTemplate = Shirt3
  662. charPants.PantsTemplate = Pants3
  663. end
  664. end
  665. end
  666. break
  667. end
  668. RenderStepped:wait()
  669. end
  670. Bullet:Destroy()
  671. end
  672.  
  673. Mouse.Button1Down:connect(function()
  674. if not Down and not DB then
  675. Down = true
  676. while Down do
  677. if Humanoid.Health == 0 then break end
  678. if not DB then
  679. DB = true
  680. local Sound = Instance.new("Sound",Barrel)
  681. Sound.SoundId = "rbxassetid://188526056" -- 188526056
  682. Sound.Volume = 5*Scale
  683. Sound.Pitch = (math.random(70,110)/100)/((Scale < 0.25 and 0.25) or (Scale > 4 and 4) or Scale)
  684. Sound:Play()
  685. Spawn(function()
  686. ShootBullet(Mouse.Hit.p,Barrel1)
  687. end)
  688. RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255)
  689. PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0)
  690. local Shell = Instance.new("Part",Workspace)
  691. Shell.FormFactor = "Custom"
  692. Shell.BrickColor = BrickColor.new("Really red")
  693. Shell.Material = "Neon"
  694. Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale
  695. Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
  696. Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale
  697. local Mesh = Instance.new("CylinderMesh",Shell)
  698. Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size
  699. Spawn(function()
  700. wait(5)
  701. Shell:Destroy()
  702. end)
  703. for i = 1,20,7.5 do
  704. RotationOffset = RotationOffset*CFrame.Angles(math.rad(7.5),0,0)
  705. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,-0.15,0)*Scale)
  706. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,0.15)*Scale)
  707. Light.Brightness = Light.Brightness+38
  708. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,0.375,0)*Scale)
  709. RenderStepped:wait()
  710. end
  711. wait(0.02)
  712. for i = 1,20,3.75 do
  713. RotationOffset = RotationOffset*CFrame.Angles(math.rad(-3.75),0,0)
  714. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,0.075,0)*Scale)
  715. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,-0.075)*Scale)
  716. Light.Brightness = Light.Brightness-19
  717. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,-0.1875,0)*Scale)
  718. RenderStepped:wait()
  719. end
  720. wait(0.02)
  721. DB = false
  722. end
  723. end
  724. end
  725. end)
  726.  
  727. Mouse.Button1Up:connect(function()
  728. Down = false
  729. end)
  730.  
  731. Mouse.KeyDown:connect(function(Key)
  732. if Key:lower() == "g" and not DB then
  733. DB = true
  734. if Gangster == true then
  735. for i = 1,70,5 do
  736. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(-5),0)
  737. RenderStepped:wait()
  738. end
  739. Gangster = false
  740. else
  741. for i = 1,70,5 do
  742. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(5),0)
  743. RenderStepped:wait()
  744. end
  745. Gangster = true
  746. end
  747. DB = false
  748. end
  749. end)
  750.  
  751. local Weld = Instance.new("Weld")
  752. Weld.Part0 = Torso
  753. Weld.Part1 = Character["Right Arm"]
  754. Weld.Parent = Torso
  755.  
  756. local Weld2 = Instance.new("Weld")
  757. Weld2.Part0 = Torso
  758. Weld2.Part1 = Character.Head
  759. Weld2.Parent = Torso
  760.  
  761. local RA = Character["Right Arm"]
  762.  
  763.  
  764. game:GetService("RunService"):BindToRenderStep("Pistol",Enum.RenderPriority.Character.Value,function()
  765. local Point = Torso.CFrame:vectorToObjectSpace(Mouse.Hit.p-Torso.CFrame.p)
  766. if Point.Z > 0 then
  767. if Point.X > 0 then
  768. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  769. elseif Point.X < 0 then
  770. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  771. end
  772. end
  773.  
  774. local CFr = (Torso.CFrame*Part0Joint):toObjectSpace(CFrame.new((Torso.CFrame*Part0Joint).p,Mouse.Hit.p))--RayEnd))
  775. Weld.C0 = Part0Joint * (CFr-CFr.p) * RotationOffset
  776. Weld.C1 = Part1Joint
  777. Weld.Part0 = Torso
  778. Weld.Part1 = RA
  779. local CFr = (Torso.CFrame*Part0JointHead):toObjectSpace(CFrame.new((Torso.CFrame*Part0JointHead).p,Mouse.Hit.p))--RayEnd))
  780. Weld2.C0 = Part0JointHead * (CFr-CFr.p) * RotationOffsetHead
  781. Weld2.C1 = Part1JointHead
  782. Weld2.Part0 = Torso
  783. Weld2.Part1 = Character.Head
  784. local Last = Scale
  785. 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
  786. Speed = 20*Scale
  787. if Scale ~= Last then
  788. Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  789. Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  790. Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  791. Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  792. end
  793. end)
  794.  
  795. while true do
  796. wait(60)
  797. print("You're Using Kitchen Gun, Made By Nooob423 :D")
  798. end
Add Comment
Please, Sign In to add comment