Advertisement
zombieslayerwtf

Anime Gun [Leaked]

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