Advertisement
GalaxyDelta

Untitled

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