Advertisement
NightGamingVN

Trap gun(UPDATE)

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