gilward

Dual Ragdoll Pistols

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