Advertisement
RobloxScriptzzz

Dual Pistols

Jul 16th, 2018
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.73 KB | None | 0 0
  1. mouse = game.Players.LocalPlayer:GetMouse()
  2. isshootingwithfirstgun = true
  3. game.Players.LocalPlayer.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
  4. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  5. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  6. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  7. rhandweld.C1 = CFrame.new(0,1,0)
  8. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  9. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  10. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  11. lhandweld.C1 = CFrame.new(0,1,0)
  12. --Converted with ttyyuu12345's model to script plugin v4
  13. function sandbox(var,func)
  14. local env = getfenv(func)
  15. local newenv = setmetatable({},{
  16. __index = function(self,k)
  17. if k=="script" then
  18. return var
  19. else
  20. return env[k]
  21. end
  22. end,
  23. })
  24. setfenv(func,newenv)
  25. return func
  26. end
  27. cors = {}
  28. mas = Instance.new("Model",game:GetService("Lighting"))
  29. Model0 = Instance.new("Model")
  30. Part1 = Instance.new("Part")
  31. Part2 = Instance.new("Part")
  32. Part3 = Instance.new("Part")
  33. Weld4 = Instance.new("Weld")
  34. Weld5 = Instance.new("Weld")
  35. Model0.Name = "Glock"
  36. Model0.Parent = mas
  37. Part1.Parent = Model0
  38. Part1.Material = Enum.Material.Glass
  39. Part1.BrickColor = BrickColor.new("Black")
  40. Part1.Name = "up"
  41. Part1.Rotation = Vector3.new(0, 0, -90)
  42. Part1.Size = Vector3.new(0.199999958, 1.74999976, 0.449999988)
  43. Part1.CFrame = CFrame.new(-3.10613155, 1.13166213, -9.12499809, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  44. Part1.BottomSurface = Enum.SurfaceType.Smooth
  45. Part1.TopSurface = Enum.SurfaceType.Smooth
  46. Part1.Color = Color3.new(0.180392, 0.180392, 0.184314)
  47. Part1.Position = Vector3.new(-3.10613155, 1.13166213, -9.12499809)
  48. Part1.Orientation = Vector3.new(0, 0, -90)
  49. Part1.Color = Color3.new(0.180392, 0.180392, 0.184314)
  50. Part2.Parent = Model0
  51. Part2.Material = Enum.Material.Glass
  52. Part2.BrickColor = BrickColor.new("Really black")
  53. Part2.Rotation = Vector3.new(0, 0, -90)
  54. Part2.Size = Vector3.new(0.349999964, 1.74999976, 0.449999988)
  55. Part2.CFrame = CFrame.new(-3.10613203, 0.856638014, -9.12499809, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  56. Part2.BottomSurface = Enum.SurfaceType.Smooth
  57. Part2.TopSurface = Enum.SurfaceType.Smooth
  58. Part2.Color = Color3.new(0, 0, 0)
  59. Part2.Position = Vector3.new(-3.10613203, 0.856638014, -9.12499809)
  60. Part2.Orientation = Vector3.new(0, 0, -90)
  61. Part2.Color = Color3.new(0, 0, 0)
  62. Part3.Parent = Model0
  63. Part3.Material = Enum.Material.Glass
  64. Part3.BrickColor = BrickColor.new("Bright yellow")
  65. Part3.Name = "Handl"
  66. Part3.Rotation = Vector3.new(0, 0, -15)
  67. Part3.Size = Vector3.new(0.449999988, 1, 0.349999964)
  68. Part3.CFrame = CFrame.new(-3.88113117, 0.556637883, -9.12499809, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872, 0, 0, 0, 1)
  69. Part3.BottomSurface = Enum.SurfaceType.Smooth
  70. Part3.TopSurface = Enum.SurfaceType.Smooth
  71. Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
  72. Part3.Position = Vector3.new(-3.88113117, 0.556637883, -9.12499809)
  73. Part3.Orientation = Vector3.new(0, 0, -15)
  74. Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
  75. Part1:BreakJoints()
  76. Part2:BreakJoints()
  77. Part3:BreakJoints()
  78. Weld4.Parent = Part3
  79. Weld4.C0 = CFrame.new(0.670945883, 0.490362346, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
  80. Weld4.Part0 = Part3
  81. Weld4.Part1 = Part2
  82. Weld5.Parent = Part3
  83. Weld5.C0 = CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
  84. Weld5.Part0 = Part3
  85. Weld5.Part1 = Part1
  86. for i,v in pairs(mas:GetChildren()) do
  87. v.Parent = workspace
  88. pcall(function() v:MakeJoints() end)
  89. end
  90. mas:Destroy()
  91. for i,v in pairs(cors) do
  92. spawn(function()
  93. pcall(v)
  94. end)
  95. end
  96. for i,v in pairs(Model0:GetChildren()) do
  97. if v.ClassName == "Part" then
  98. v.CanCollide = false
  99. end
  100. end
  101. local weld = Instance.new("Weld", Part1)
  102. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  103. weld.Part1 = Part3
  104. weld.C0 = CFrame.new(-0.0413382053, -1.06609058, -0.169539452, 0.0437759161, 0.0173978098, 0.998889983, -0.962771356, -0.266229749, 0.0468300879, 0.266748905, -0.963752568, 0.0050956551)
  105. ---
  106. --Converted with ttyyuu12345's model to script plugin v4
  107. function sandbox(var,func)
  108. local env = getfenv(func)
  109. local newenv = setmetatable({},{
  110. __index = function(self,k)
  111. if k=="script" then
  112. return var
  113. else
  114. return env[k]
  115. end
  116. end,
  117. })
  118. setfenv(func,newenv)
  119. return func
  120. end
  121. cors = {}
  122. mas = Instance.new("Model",game:GetService("Lighting"))
  123. Model00 = Instance.new("Model")
  124. Part11 = Instance.new("Part")
  125. Part22 = Instance.new("Part")
  126. Part33 = Instance.new("Part")
  127. Weld44 = Instance.new("Weld")
  128. Weld55 = Instance.new("Weld")
  129. Model00.Name = "Glock2"
  130. Model00.Parent = mas
  131. Part11.Parent = Model00
  132. Part11.Material = Enum.Material.Glass
  133. Part11.BrickColor = BrickColor.new("Black")
  134. Part11.Name = "up"
  135. Part11.Rotation = Vector3.new(0, 0, -90)
  136. Part11.Size = Vector3.new(0.199999958, 1.74999976, 0.449999988)
  137. Part11.CFrame = CFrame.new(-3.10613155, 1.13166213, -9.12499809, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  138. Part11.BottomSurface = Enum.SurfaceType.Smooth
  139. Part11.TopSurface = Enum.SurfaceType.Smooth
  140. Part11.Color = Color3.new(0.180392, 0.180392, 0.184314)
  141. Part11.Position = Vector3.new(-3.10613155, 1.13166213, -9.12499809)
  142. Part11.Orientation = Vector3.new(0, 0, -90)
  143. Part11.Color = Color3.new(0.180392, 0.180392, 0.184314)
  144. Part22.Parent = Model00
  145. Part22.Material = Enum.Material.Glass
  146. Part22.BrickColor = BrickColor.new("Really black")
  147. Part22.Rotation = Vector3.new(0, 0, -90)
  148. Part22.Size = Vector3.new(0.349999964, 1.74999976, 0.449999988)
  149. Part22.CFrame = CFrame.new(-3.10613203, 0.856638014, -9.12499809, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  150. Part22.BottomSurface = Enum.SurfaceType.Smooth
  151. Part22.TopSurface = Enum.SurfaceType.Smooth
  152. Part22.Color = Color3.new(0, 0, 0)
  153. Part22.Position = Vector3.new(-3.10613203, 0.856638014, -9.12499809)
  154. Part22.Orientation = Vector3.new(0, 0, -90)
  155. Part22.Color = Color3.new(0, 0, 0)
  156. Part33.Parent = Model00
  157. Part33.Material = Enum.Material.Glass
  158. Part33.BrickColor = BrickColor.new("Bright yellow")
  159. Part33.Name = "Handl"
  160. Part33.Rotation = Vector3.new(0, 0, -15)
  161. Part33.Size = Vector3.new(0.449999988, 1, 0.349999964)
  162. Part33.CFrame = CFrame.new(-3.88113117, 0.556637883, -9.12499809, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872, 0, 0, 0, 1)
  163. Part33.BottomSurface = Enum.SurfaceType.Smooth
  164. Part33.TopSurface = Enum.SurfaceType.Smooth
  165. Part33.Color = Color3.new(0.960784, 0.803922, 0.188235)
  166. Part33.Position = Vector3.new(-3.88113117, 0.556637883, -9.12499809)
  167. Part33.Orientation = Vector3.new(0, 0, -15)
  168. Part33.Color = Color3.new(0.960784, 0.803922, 0.188235)
  169. Part11:BreakJoints()
  170. Part22:BreakJoints()
  171. Part33:BreakJoints()
  172. Weld44.Parent = Part33
  173. Weld44.C0 = CFrame.new(0.670945883, 0.490362346, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
  174. Weld44.Part0 = Part33
  175. Weld44.Part1 = Part22
  176. Weld55.Parent = Part33
  177. Weld55.C0 = CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
  178. Weld55.Part0 = Part33
  179. Weld55.Part1 = Part11
  180. for i,v in pairs(mas:GetChildren()) do
  181. v.Parent = workspace
  182. pcall(function() v:MakeJoints() end)
  183. end
  184. mas:Destroy()
  185. for i,v in pairs(cors) do
  186. spawn(function()
  187. pcall(v)
  188. end)
  189. end
  190. for i,v in pairs(Model0:GetChildren()) do
  191. if v.ClassName == "Part" then
  192. v.CanCollide = false
  193. end
  194. end
  195. for i,v in pairs(Model00:GetChildren()) do
  196. if v.ClassName == "Part" then
  197. v.CanCollide = false
  198. end
  199. end
  200. local welded = Instance.new("Weld", Part11)
  201. welded.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  202. welded.Part1 = Part33
  203. welded.C0 = CFrame.new(-0.0413382053, -1.06609058, -0.169539452, 0.0437759161, 0.0173978098, 0.998889983, -0.962771356, -0.266229749, 0.0468300879, 0.266748905, -0.963752568, 0.0050956551)
  204. function fpstoggle()
  205. if not fps then
  206. fps = true
  207. else
  208. fps = false
  209. end
  210. end
  211. game.Players.LocalPlayer.Character.Archivable = true
  212. local music = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  213. local musicrandom = math.random(1,5)
  214. if musicrandom == 1 then
  215. music.SoundId = "rbxassetid://0"
  216. end
  217. if musicrandom == 2 then
  218. music.SoundId = "rbxassetid://0"
  219. end
  220. if musicrandom == 3 then
  221. music.SoundId = "rbxassetid://0"
  222. end
  223. if musicrandom == 4 then
  224. music.SoundId = "rbxassetid://0"
  225. end
  226. if musicrandom == 5 then
  227. music.SoundId = "rbxassetid://0"
  228. end
  229. music.Looped = true
  230. music.Volume = 10
  231. music:Play()
  232. local shooot = Instance.new("Sound", Part1)
  233. shooot.SoundId = "rbxassetid://680140087"
  234. shooot.Volume = 7
  235. local hand = game.Players.LocalPlayer.Character["Right Arm"]:Clone()
  236. hand.Parent = workspace.CurrentCamera
  237. local hand2 = game.Players.LocalPlayer.Character["Left Arm"]:Clone()
  238. hand2.Parent = workspace.CurrentCamera
  239. local deathplr = Instance.new("Sound", game.Players.LocalPlayer.Character)
  240. deathplr.SoundId = "rbxassetid://785201669"
  241. deathplr.Volume = 16
  242. fps = false
  243. using = false
  244. function fpsswitch(key)
  245. key = key:lower()
  246. if key == "z" then
  247. if fps then
  248. fps = false
  249. else
  250. fps = true
  251. end
  252. end
  253. end
  254. mouse.KeyDown:connect(fpsswitch)
  255. function shoot()
  256. if not using then
  257. if isshootingwithfirstgun then
  258. isshootingwithfirstgun = false
  259. using = true
  260. shooot:Play()
  261. local missle = Instance.new("Part", workspace)
  262. missle:BreakJoints()
  263. missle.Name = "bullet"
  264. missle.CanCollide = false
  265. missle.Material = "Neon"
  266. missle.Size = Vector3.new(0.1,0.1,3)
  267. missle.CFrame = Part2.CFrame * CFrame.new(0,2.5,0)
  268. missle.Transparency = 0.3
  269. missle.CFrame = CFrame.new(missle.Position, mouse.Hit.p)
  270. local vel = Instance.new("BodyVelocity", missle)
  271. vel.Velocity = mouse.Hit.lookVector * math.random(600,600) + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  272. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  273. local function hit(part)
  274. local hitval = math.random(25,40)
  275. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  276. if humanoid then
  277. if humanoid.Health == math.huge or humanoid.Health >= 600 then
  278. humanoid.Health = 100
  279. end
  280. if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  281. humanoid.MaxHealth = 100
  282. end
  283. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  284.  
  285. else
  286. if humanoid.Health < hitval then
  287. local isded = deathplr:Clone()
  288. isded.Parent = humanoid.Parent.Head
  289. isded:Play()
  290. humanoid.JumpPower = 0
  291. humanoid.PlatformStand = true
  292. humanoid.WalkSpeed = 0
  293. for i,v in pairs(humanoid.Parent:GetChildren()) do
  294. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  295. v:Remove()
  296. end
  297. end
  298. local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
  299. if humpart then
  300. humpart:destroy()
  301. end
  302. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  303. if findlefthip then
  304. findlefthip:Remove()
  305. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  306. glue.Part0 = humanoid.Parent.Torso
  307. glue.Part1 = humanoid.Parent["Left Leg"]
  308. glue.Name = "Left leg"
  309. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  310. collider.Position = Vector3.new(0,999,0)
  311. collider.Size = Vector3.new(1.5, 1, 1)
  312. collider.Shape = "Cylinder"
  313. local weld = Instance.new("Weld", collider)
  314. weld.Part0 = humanoid.Parent["Left Leg"]
  315. weld.Part1 = collider
  316. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  317. collider.TopSurface = "Smooth"
  318. collider.BottomSurface = "Smooth"
  319. collider.formFactor = "Symmetric"
  320. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  321. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  322. collider.Transparency = 1
  323. end
  324. --
  325. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  326. if findrighthip then
  327. findrighthip:Remove()
  328. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  329. glue.Part0 = humanoid.Parent.Torso
  330. glue.Part1 = humanoid.Parent["Right Leg"]
  331. glue.Name = "Right leg"
  332. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  333. collider.Position = Vector3.new(0,999,0)
  334. collider.Size = Vector3.new(1.5, 1, 1)
  335. collider.Shape = "Cylinder"
  336. local weld = Instance.new("Weld", collider)
  337. weld.Part0 = humanoid.Parent["Right Leg"]
  338. weld.Part1 = collider
  339. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  340. collider.TopSurface = "Smooth"
  341. collider.BottomSurface = "Smooth"
  342. collider.formFactor = "Symmetric"
  343. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  344. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  345. collider.Transparency = 1
  346. end
  347. --
  348. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  349. if findrightshoulder then
  350. findrightshoulder:Remove()
  351. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  352. glue.Part0 = humanoid.Parent.Torso
  353. glue.Part1 = humanoid.Parent["Right Arm"]
  354. glue.Name = "Right arm"
  355. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  356. collider.Position = Vector3.new(0,999,0)
  357. collider.Size = Vector3.new(1.5, 1, 1)
  358. collider.Shape = "Cylinder"
  359. local weld = Instance.new("Weld", collider)
  360. weld.Part0 = humanoid.Parent["Right Arm"]
  361. weld.Part1 = collider
  362. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  363. collider.TopSurface = "Smooth"
  364. collider.BottomSurface = "Smooth"
  365. collider.formFactor = "Symmetric"
  366. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  367. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  368. collider.Transparency = 1
  369. end
  370. --
  371. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  372. if findleftshoulder then
  373. findleftshoulder:Remove()
  374. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  375. glue.Part0 = humanoid.Parent.Torso
  376. glue.Part1 = humanoid.Parent["Left Arm"]
  377. glue.Name = "Left arm"
  378. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  379. collider.Position = Vector3.new(0,999,0)
  380. collider.Size = Vector3.new(1.5, 1, 1)
  381. collider.Shape = "Cylinder"
  382. local weld = Instance.new("Weld", collider)
  383. weld.Part0 = humanoid.Parent["Left Arm"]
  384. weld.Part1 = collider
  385. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  386. collider.TopSurface = "Smooth"
  387. collider.BottomSurface = "Smooth"
  388. collider.formFactor = "Symmetric"
  389. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  390. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  391. collider.Transparency = 1
  392. end
  393. local findhead = humanoid.Parent:findFirstChild("Head")
  394. if findhead then
  395. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  396. attachment.Position = Vector3.new(0, -0.5, 0)
  397. attachment.Name = "lol"
  398. attachment.Visible = false
  399. humanoid.Parent.Torso.NeckAttachment.Visible = false
  400. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  401. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  402. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  403. ball.Attachment1 = attachment
  404. ball.LimitsEnabled = true
  405. ball.TwistLimitsEnabled = true
  406. ball.UpperAngle = 90
  407. ball.Restitution = 0.5
  408. ball.TwistUpperAngle = 90
  409. ball.TwistLowerAngle = -90
  410. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  411. collidepartofleftleg.Name = "Bone"
  412. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  413. collidepartofleftleg.Transparency = 1
  414. collidepartofleftleg:BreakJoints()
  415. local weeld = Instance.new("Weld", collidepartofleftleg)
  416. weeld.Part0 = collidepartofleftleg
  417. weeld.Part1 = humanoid.Parent["Head"]
  418. if humanoid.Parent.Torso:findFirstChild("Neck") then
  419. humanoid.Parent.Torso.Neck:destroy()
  420. end
  421. end
  422. wait(10)
  423. humanoid.Health = 0
  424. else
  425. humanoid.Health = humanoid.Health - hitval
  426. end
  427. end
  428. else
  429. if part.Name == "Shotgun" or "bullet" then
  430.  
  431. else
  432. missle:destroy()
  433. end
  434. end
  435. end
  436. missle.Touched:connect(hit)
  437. for i = 0,1 , 0.25 do
  438. rhandweld.C1 = rhandweld.C1 * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
  439. Weld5.C0 = Weld5.C0:lerp(CFrame.new(-0.172976017, 0.548959255, -1.1920929e-07, 0.258818805, 0.965925217, -5.66244125e-07, -0.965925753, 0.258818984, -1.11758709e-07, -5.0291419e-08, -6.2584877e-07, 1.00000143),i)
  440. game:GetService("RunService").RenderStepped:wait()
  441. end
  442. for i = 0,1 , 0.25 do
  443. rhandweld.C1 = rhandweld.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  444. Weld5.C0 = Weld5.C0:lerp(CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1),i)
  445. game:GetService("RunService").RenderStepped:wait()
  446. end
  447. using = false
  448. else
  449. isshootingwithfirstgun = true
  450. using = true
  451. shooot:Play()
  452. local missle = Instance.new("Part", workspace)
  453. missle:BreakJoints()
  454. missle.Name = "bullet"
  455. missle.CanCollide = false
  456. missle.Material = "Neon"
  457. missle.Size = Vector3.new(0.1,0.1,3)
  458. missle.CFrame = Part22.CFrame * CFrame.new(0,2.5,0)
  459. missle.Transparency = 0.3
  460. missle.CFrame = CFrame.new(missle.Position, mouse.Hit.p)
  461. local vel = Instance.new("BodyVelocity", missle)
  462. vel.Velocity = mouse.Hit.lookVector * math.random(600,600) + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  463. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  464. local function hit(part)
  465. local hitval = math.random(25,40)
  466. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  467. if humanoid then
  468. if humanoid.Health == math.huge or humanoid.Health >= 600 then
  469. humanoid.Health = 100
  470. end
  471. if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  472. humanoid.MaxHealth = 100
  473. end
  474. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  475.  
  476. else
  477. if humanoid.Health < hitval then
  478. local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
  479. if humpart then
  480. humpart:destroy()
  481. end
  482. for i,v in pairs(humanoid.Parent:GetChildren()) do
  483. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  484. v:Remove()
  485. end
  486. end
  487. local isded = deathplr:Clone()
  488. isded.Parent = humanoid.Parent.Head
  489. isded:Play()
  490. humanoid.JumpPower = 0
  491. humanoid.PlatformStand = true
  492. humanoid.WalkSpeed = 0
  493. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  494. if findlefthip then
  495. findlefthip:Remove()
  496. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  497. glue.Part0 = humanoid.Parent.Torso
  498. glue.Part1 = humanoid.Parent["Left Leg"]
  499. glue.Name = "Left leg"
  500. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  501. collider.Position = Vector3.new(0,999,0)
  502. collider.Size = Vector3.new(1.5, 1, 1)
  503. collider.Shape = "Cylinder"
  504. local weld = Instance.new("Weld", collider)
  505. weld.Part0 = humanoid.Parent["Left Leg"]
  506. weld.Part1 = collider
  507. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  508. collider.TopSurface = "Smooth"
  509. collider.BottomSurface = "Smooth"
  510. collider.formFactor = "Symmetric"
  511. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  512. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  513. collider.Transparency = 1
  514. end
  515. --
  516. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  517. if findrighthip then
  518. findrighthip:Remove()
  519. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  520. glue.Part0 = humanoid.Parent.Torso
  521. glue.Part1 = humanoid.Parent["Right Leg"]
  522. glue.Name = "Right leg"
  523. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  524. collider.Position = Vector3.new(0,999,0)
  525. collider.Size = Vector3.new(1.5, 1, 1)
  526. collider.Shape = "Cylinder"
  527. local weld = Instance.new("Weld", collider)
  528. weld.Part0 = humanoid.Parent["Right Leg"]
  529. weld.Part1 = collider
  530. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  531. collider.TopSurface = "Smooth"
  532. collider.BottomSurface = "Smooth"
  533. collider.formFactor = "Symmetric"
  534. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  535. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  536. collider.Transparency = 1
  537. end
  538. --
  539. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  540. if findrightshoulder then
  541. findrightshoulder:Remove()
  542. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  543. glue.Part0 = humanoid.Parent.Torso
  544. glue.Part1 = humanoid.Parent["Right Arm"]
  545. glue.Name = "Right arm"
  546. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  547. collider.Position = Vector3.new(0,999,0)
  548. collider.Size = Vector3.new(1.5, 1, 1)
  549. collider.Shape = "Cylinder"
  550. local weld = Instance.new("Weld", collider)
  551. weld.Part0 = humanoid.Parent["Right Arm"]
  552. weld.Part1 = collider
  553. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  554. collider.TopSurface = "Smooth"
  555. collider.BottomSurface = "Smooth"
  556. collider.formFactor = "Symmetric"
  557. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  558. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  559. collider.Transparency = 1
  560. end
  561. --
  562. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  563. if findleftshoulder then
  564. findleftshoulder:Remove()
  565. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  566. glue.Part0 = humanoid.Parent.Torso
  567. glue.Part1 = humanoid.Parent["Left Arm"]
  568. glue.Name = "Left arm"
  569. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  570. collider.Position = Vector3.new(0,999,0)
  571. collider.Size = Vector3.new(1.5, 1, 1)
  572. collider.Shape = "Cylinder"
  573. local weld = Instance.new("Weld", collider)
  574. weld.Part0 = humanoid.Parent["Left Arm"]
  575. weld.Part1 = collider
  576. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  577. collider.TopSurface = "Smooth"
  578. collider.BottomSurface = "Smooth"
  579. collider.formFactor = "Symmetric"
  580. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  581. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  582. collider.Transparency = 1
  583. end
  584. local findhead = humanoid.Parent:findFirstChild("Head")
  585. if findhead then
  586. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  587. attachment.Position = Vector3.new(0, -0.5, 0)
  588. attachment.Name = "lol"
  589. attachment.Visible = false
  590. humanoid.Parent.Torso.NeckAttachment.Visible = false
  591. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  592. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  593. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  594. ball.Attachment1 = attachment
  595. ball.LimitsEnabled = true
  596. ball.TwistLimitsEnabled = true
  597. ball.UpperAngle = 90
  598. ball.Restitution = 0.5
  599. ball.TwistUpperAngle = 90
  600. ball.TwistLowerAngle = -90
  601. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  602. collidepartofleftleg.Name = "Bone"
  603. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  604. collidepartofleftleg.Transparency = 1
  605. collidepartofleftleg:BreakJoints()
  606. local weeld = Instance.new("Weld", collidepartofleftleg)
  607. weeld.Part0 = collidepartofleftleg
  608. weeld.Part1 = humanoid.Parent["Head"]
  609. if humanoid.Parent.Torso:findFirstChild("Neck") then
  610. humanoid.Parent.Torso.Neck:destroy()
  611. end
  612. end
  613. wait(10)
  614. humanoid.Health = 0
  615. else
  616. humanoid.Health = humanoid.Health - hitval
  617. end
  618. end
  619. else
  620. if part.Name == "Shotgun" or "bullet" then
  621.  
  622. else
  623. missle:destroy()
  624. end
  625. end
  626. end
  627. missle.Touched:connect(hit)
  628. for i = 0,1 , 0.25 do
  629. lhandweld.C1 = lhandweld.C1 * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
  630. Weld55.C0 = Weld55.C0:lerp(CFrame.new(-0.172976017, 0.548959255, -1.1920929e-07, 0.258818805, 0.965925217, -5.66244125e-07, -0.965925753, 0.258818984, -1.11758709e-07, -5.0291419e-08, -6.2584877e-07, 1.00000143),i)
  631. game:GetService("RunService").RenderStepped:wait()
  632. end
  633. for i = 0,1 , 0.25 do
  634. lhandweld.C1 = lhandweld.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  635. Weld55.C0 = Weld55.C0:lerp(CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1),i)
  636. game:GetService("RunService").RenderStepped:wait()
  637. end
  638. using = false
  639. end
  640. end
  641. end
  642. mouse.Button1Down:connect(shoot)
  643. function ragdoll()
  644. music:Stop()
  645. game.Players.LocalPlayer.Character.Archivable = true
  646. clone = game.Players.LocalPlayer.Character:Clone()
  647. clone.Parent = workspace
  648. for i,v in pairs(clone:GetChildren()) do
  649. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  650. v:destroy()
  651. end
  652. for i,p in pairs(v:GetChildren()) do
  653. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  654. p:destroy()
  655. end
  656. end
  657. end
  658. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  659. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  660. t:destroy()
  661. end
  662. end
  663. vel = Instance.new("BodyVelocity", clone.Torso)
  664. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  665. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  666. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  667. using = false
  668. hit = Instance.new("Sound", clone.Torso)
  669. hit.SoundId = "rbxassetid://260430060"
  670. hit.Volume = 0
  671. hit1 = Instance.new("Sound", clone.Torso)
  672. hit1.SoundId = "rbxassetid://138087186"
  673. hit1.Volume = 0
  674. hit2 = Instance.new("Sound", clone.Torso)
  675. hit2.SoundId = "rbxassetid://131237241"
  676. hit2.Volume = 0
  677. hit3 = Instance.new("Sound", clone.Torso)
  678. hit3.SoundId = "rbxassetid://278062209"
  679. hit3.Volume = 0
  680. hit3.TimePosition = 0.33
  681. ded = Instance.new("Sound", clone.Torso)
  682. ded.SoundId = "rbxassetid://884348443"
  683. ded.Volume =10
  684. local leftarm = clone:findFirstChild("Left Arm")
  685. local rightrm = clone:findFirstChild("Right Arm")
  686. local leftleg = clone:findFirstChild("Left Leg")
  687. local rightleg = clone:findFirstChild("Right Leg")
  688. local head = clone:findFirstChild("Head")
  689. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  690. if g.ClassName == "Part" then
  691. g:destroy()
  692. end
  693. end
  694. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  695. if h.ClassName == "Accesory" then
  696. h:destroy()
  697. end
  698. end
  699. game.Workspace.CurrentCamera.CameraSubject = head
  700. if head then
  701. local attachment = Instance.new("Attachment", clone.Head)
  702. attachment.Position = Vector3.new(0, -0.5, 0)
  703. attachment.Name = "lol"
  704. attachment.Visible = false
  705. clone.Torso.NeckAttachment.Visible = false
  706. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  707. local ball = Instance.new("BallSocketConstraint", clone)
  708. ball.Attachment0 = clone.Torso.NeckAttachment
  709. ball.Attachment1 = attachment
  710. ball.LimitsEnabled = true
  711. ball.TwistLimitsEnabled = true
  712. ball.UpperAngle = 90
  713. ball.Restitution = 0.5
  714. ball.TwistUpperAngle = 90
  715. ball.TwistLowerAngle = -90
  716. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  717. collidepartofleftleg.Name = "Bone"
  718. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  719. collidepartofleftleg.Transparency = 1
  720. collidepartofleftleg:BreakJoints()
  721. local weeld = Instance.new("Weld", collidepartofleftleg)
  722. weeld.Part0 = collidepartofleftleg
  723. weeld.Part1 = clone["Head"]
  724. end
  725. if leftleg ~= nil then
  726. local glue = Instance.new("Glue", clone.Torso)
  727. glue.Part0 = clone.Torso
  728. glue.Part1 = leftleg
  729. glue.Name = "Left leg"
  730. local collider = Instance.new("Part", leftleg)
  731. collider.Position = Vector3.new(0,999,0)
  732. collider.Size = Vector3.new(1.5, 1, 1)
  733. collider.Shape = "Cylinder"
  734. local weld = Instance.new("Weld", collider)
  735. weld.Part0 = leftleg
  736. weld.Part1 = collider
  737. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  738. collider.TopSurface = "Smooth"
  739. collider.BottomSurface = "Smooth"
  740. collider.formFactor = "Symmetric"
  741. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  742. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  743. collider.Transparency = 1
  744. end
  745. ------------
  746. if rightleg ~= nil then
  747. local glue1 = Instance.new("Glue", clone.Torso)
  748. glue1.Part0 = clone.Torso
  749. glue1.Part1 = rightleg
  750. glue1.Name = "Right leg"
  751. local collider1 = Instance.new("Part", rightleg)
  752. collider1.Position = Vector3.new(0,999,0)
  753. collider1.Size = Vector3.new(1.5, 1, 1)
  754. collider1.Shape = "Cylinder"
  755. local weld1 = Instance.new("Weld", collider1)
  756. weld1.Part0 = rightleg
  757. weld1.Part1 = collider1
  758. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  759. collider1.TopSurface = "Smooth"
  760. collider1.BottomSurface = "Smooth"
  761. collider1.formFactor = "Symmetric"
  762. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  763. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  764. collider1.Transparency = 1
  765. end
  766. ------------
  767. if rightrm ~= nil then
  768. local glue11 = Instance.new("Glue", clone.Torso)
  769. glue11.Part0 = clone.Torso
  770. glue11.Part1 = rightrm
  771. glue11.Name = "Right shoulder"
  772. local collider11 = Instance.new("Part", rightrm)
  773. collider11.Position = Vector3.new(0,9999,0)
  774. collider11.Size = Vector3.new(1.5,1,1)
  775. collider11.Shape = "Cylinder"
  776. local weld11 = Instance.new("Weld", collider11)
  777. weld11.Part0 = rightrm
  778. weld11.Part1 = collider11
  779. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  780. collider11.TopSurface = "Smooth"
  781. collider11.BottomSurface = "Smooth"
  782. collider11.formFactor = "Symmetric"
  783. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  784. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  785. collider11.Transparency = 1
  786. end
  787. ------------
  788. if leftarm ~= nil then
  789. local glue111 = Instance.new("Glue", clone.Torso)
  790. glue111.Part0 = clone.Torso
  791. glue111.Part1 = leftarm
  792. glue111.Name = "Left shoulder"
  793. local collider111 = Instance.new("Part", leftarm)
  794. collider111.Position = Vector3.new(0,9999,0)
  795. collider111.Size = Vector3.new(1.5,1,1)
  796. collider111.Shape = "Cylinder"
  797. local weld111 = Instance.new("Weld", collider111)
  798. weld111.Part0 = leftarm
  799. weld111.Part1 = collider111
  800. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  801. collider111.TopSurface = "Smooth"
  802. collider111.BottomSurface = "Smooth"
  803. collider111.formFactor = "Symmetric"
  804. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  805. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  806. collider111.Transparency = 1
  807. ----------------
  808. sensoring = Instance.new("Part", clone.Torso)
  809. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  810. sensoring.CanCollide = false
  811. sensoring.Position = clone.Torso.Position
  812. local welder = Instance.new("Weld", sensoring)
  813. welder.Part0 = clone.Torso
  814. welder.Part1 = sensoring
  815. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  816. sensoring.Transparency = 1
  817. -----------------
  818. sensoring1 = Instance.new("Part", clone.Torso)
  819. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  820. sensoring1.CanCollide = false
  821. sensoring1.Position = clone.Torso.Position
  822. local welder1 = Instance.new("Weld", sensoring)
  823. welder1.Part0 = clone.Torso
  824. welder1.Part1 = sensoring1
  825. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  826. sensoring1.Transparency = 1
  827. end
  828. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  829. ded:Play()
  830. vel:destroy()
  831. wait(0.5)
  832. local function touch()
  833. if not using then
  834. using = true
  835. local Math = math.random(1,4)
  836. if Math == 1 then
  837. hit:Play()
  838. end
  839. if Math == 2 then
  840. hit1:Play()
  841. end
  842. if Math == 3 then
  843. hit2:Play()
  844. end
  845. if Math == 4 then
  846. hit3:Play()
  847. end
  848. wait(0.1)
  849. using = false
  850. end
  851. end
  852. sensoring.Touched:connect(touch)
  853. sensoring1.Touched:connect(touch)
  854. wait(0.5)
  855. while true do
  856. clone.Head.CanCollide = false
  857. game:GetService("RunService").Stepped:wait()
  858. end
  859. end
  860.  
  861. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  862. while true do
  863. game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.Torso.Position.y,mouse.Hit.p.z))
  864. lhandweld.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0) * CFrame.Angles(1.5,0,0.1)
  865. rhandweld.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0) * CFrame.Angles(1.5,0,-0.1)
  866. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
  867. hand.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame
  868. hand2.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame
  869. if Model0.Parent == nil then
  870. Model0.Parent = workspace
  871. end
  872. if hand.Parent == nil then
  873. hand.Parent = workspace
  874. end
  875. if music.Parent == nil then
  876. music.Parent = game.Players.LocalPlayer.Character.Head
  877. end
  878. if shooot.Parent == nil then
  879. shooot.Parent = Part2
  880. end
  881. if fps then
  882. game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
  883. Model0.Parent = workspace
  884. Model00.Parent = workspace
  885. hand.Transparency = 0
  886. hand2.Transparency = 0
  887. else
  888. game.Players.LocalPlayer.CameraMode = "Classic"
  889. Model0.Parent = game.Players.LocalPlayer.Character
  890. Model00.Parent = game.Players.LocalPlayer.Character
  891. hand.Transparency = 1
  892. hand2.Transparency = 1
  893. end
  894. game:GetService("RunService").RenderStepped:wait()
  895. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement