Advertisement
Gametoy

Untitled

Feb 11th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.45 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("Bright yellow")
  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("Bright yellow")
  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("Bright yellow")
  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("Bright yellow")
  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. music.SoundId = "rbxassetid://226041794"
  215. music.Looped = true
  216. music.Volume = .5
  217. music:Play()
  218. local shooot = Instance.new("Sound", Part1)
  219. shooot.SoundId = "rbxassetid://680140087"
  220. shooot.Volume = .5
  221. local hand = game.Players.LocalPlayer.Character["Right Arm"]:Clone()
  222. hand.Parent = workspace.CurrentCamera
  223. local hand2 = game.Players.LocalPlayer.Character["Left Arm"]:Clone()
  224. hand2.Parent = workspace.CurrentCamera
  225. local deathplr = Instance.new("Sound", game.Players.LocalPlayer.Character)
  226. deathplr.SoundId = "rbxassetid://884348443"
  227. deathplr.Volume = .5
  228. fps = false
  229. using = false
  230. function fpsswitch(key)
  231. key = key:lower()
  232. if key == "z" then
  233. if fps then
  234. fps = false
  235. else
  236. fps = true
  237. end
  238. end
  239. end
  240. mouse.KeyDown:connect(fpsswitch)
  241. function shoot()
  242. if not using then
  243. if isshootingwithfirstgun then
  244. isshootingwithfirstgun = false
  245. using = true
  246. shooot:Play()
  247. local missle = Instance.new("Part", workspace)
  248. missle:BreakJoints()
  249. missle.Name = "bullet"
  250. missle.CanCollide = false
  251. missle.Material = "Glass"
  252. missle.Size = Vector3.new(0.1,0.1,3)
  253. missle.CFrame = Part2.CFrame * CFrame.new(0,2.5,0)
  254. missle.Transparency = 0.3
  255. missle.CFrame = CFrame.new(missle.Position, mouse.Hit.p)
  256. local vel = Instance.new("BodyVelocity", missle)
  257. vel.Velocity = mouse.Hit.lookVector * math.random(600,600) + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  258. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  259. local function hit(part)
  260. local hitval = math.random(25,40)
  261. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  262. if humanoid then
  263. if humanoid.Health == math.huge or humanoid.Health >= 600 then
  264. humanoid.Health = 100
  265. end
  266. if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  267. humanoid.MaxHealth = 100
  268. end
  269. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  270.  
  271. else
  272. if humanoid.Health < hitval then
  273. local isded = deathplr:Clone()
  274. isded.Parent = humanoid.Parent.Head
  275. isded:Play()
  276. humanoid.JumpPower = 0
  277. humanoid.PlatformStand = true
  278. humanoid.WalkSpeed = 0
  279. for i,v in pairs(humanoid.Parent:GetChildren()) do
  280. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  281. v:Remove()
  282. end
  283. end
  284. local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
  285. if humpart then
  286. humpart:destroy()
  287. end
  288. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  289. if findlefthip then
  290. findlefthip:Remove()
  291. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  292. glue.Part0 = humanoid.Parent.Torso
  293. glue.Part1 = humanoid.Parent["Left Leg"]
  294. glue.Name = "Left leg"
  295. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  296. collider.Position = Vector3.new(0,999,0)
  297. collider.Size = Vector3.new(1.5, 1, 1)
  298. collider.Shape = "Cylinder"
  299. local weld = Instance.new("Weld", collider)
  300. weld.Part0 = humanoid.Parent["Left Leg"]
  301. weld.Part1 = collider
  302. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  303. collider.TopSurface = "Smooth"
  304. collider.BottomSurface = "Smooth"
  305. collider.formFactor = "Symmetric"
  306. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  307. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  308. collider.Transparency = 1
  309. end
  310. --
  311. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  312. if findrighthip then
  313. findrighthip:Remove()
  314. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  315. glue.Part0 = humanoid.Parent.Torso
  316. glue.Part1 = humanoid.Parent["Right Leg"]
  317. glue.Name = "Right leg"
  318. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  319. collider.Position = Vector3.new(0,999,0)
  320. collider.Size = Vector3.new(1.5, 1, 1)
  321. collider.Shape = "Cylinder"
  322. local weld = Instance.new("Weld", collider)
  323. weld.Part0 = humanoid.Parent["Right Leg"]
  324. weld.Part1 = collider
  325. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  326. collider.TopSurface = "Smooth"
  327. collider.BottomSurface = "Smooth"
  328. collider.formFactor = "Symmetric"
  329. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  330. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  331. collider.Transparency = 1
  332. end
  333. --
  334. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  335. if findrightshoulder then
  336. findrightshoulder:Remove()
  337. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  338. glue.Part0 = humanoid.Parent.Torso
  339. glue.Part1 = humanoid.Parent["Right Arm"]
  340. glue.Name = "Right arm"
  341. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  342. collider.Position = Vector3.new(0,999,0)
  343. collider.Size = Vector3.new(1.5, 1, 1)
  344. collider.Shape = "Cylinder"
  345. local weld = Instance.new("Weld", collider)
  346. weld.Part0 = humanoid.Parent["Right Arm"]
  347. weld.Part1 = collider
  348. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  349. collider.TopSurface = "Smooth"
  350. collider.BottomSurface = "Smooth"
  351. collider.formFactor = "Symmetric"
  352. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  353. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  354. collider.Transparency = 1
  355. end
  356. --
  357. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  358. if findleftshoulder then
  359. findleftshoulder:Remove()
  360. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  361. glue.Part0 = humanoid.Parent.Torso
  362. glue.Part1 = humanoid.Parent["Left Arm"]
  363. glue.Name = "Left arm"
  364. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  365. collider.Position = Vector3.new(0,999,0)
  366. collider.Size = Vector3.new(1.5, 1, 1)
  367. collider.Shape = "Cylinder"
  368. local weld = Instance.new("Weld", collider)
  369. weld.Part0 = humanoid.Parent["Left Arm"]
  370. weld.Part1 = collider
  371. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  372. collider.TopSurface = "Smooth"
  373. collider.BottomSurface = "Smooth"
  374. collider.formFactor = "Symmetric"
  375. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  376. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  377. collider.Transparency = 1
  378. end
  379. local findhead = humanoid.Parent:findFirstChild("Head")
  380. if findhead then
  381. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  382. attachment.Position = Vector3.new(0, -0.5, 0)
  383. attachment.Name = "lol"
  384. attachment.Visible = false
  385. humanoid.Parent.Torso.NeckAttachment.Visible = false
  386. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  387. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  388. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  389. ball.Attachment1 = attachment
  390. ball.LimitsEnabled = true
  391. ball.TwistLimitsEnabled = true
  392. ball.UpperAngle = 90
  393. ball.Restitution = 0.5
  394. ball.TwistUpperAngle = 90
  395. ball.TwistLowerAngle = -90
  396. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  397. collidepartofleftleg.Name = "Bone"
  398. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  399. collidepartofleftleg.Transparency = 1
  400. collidepartofleftleg:BreakJoints()
  401. local weeld = Instance.new("Weld", collidepartofleftleg)
  402. weeld.Part0 = collidepartofleftleg
  403. weeld.Part1 = humanoid.Parent["Head"]
  404. if humanoid.Parent.Torso:findFirstChild("Neck") then
  405. humanoid.Parent.Torso.Neck:destroy()
  406. end
  407. end
  408. wait(10)
  409. humanoid.Health = 0
  410. else
  411. humanoid.Health = humanoid.Health - hitval
  412. end
  413. end
  414. else
  415. if part.Name == "Shotgun" or "bullet" then
  416.  
  417. else
  418. missle:destroy()
  419. end
  420. end
  421. end
  422. missle.Touched:connect(hit)
  423. for i = 0,1 , 0.25 do
  424. rhandweld.C1 = rhandweld.C1 * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
  425. 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)
  426. game:GetService("RunService").RenderStepped:wait()
  427. end
  428. for i = 0,1 , 0.25 do
  429. rhandweld.C1 = rhandweld.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  430. 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)
  431. game:GetService("RunService").RenderStepped:wait()
  432. end
  433. using = false
  434. else
  435. isshootingwithfirstgun = true
  436. using = true
  437. shooot:Play()
  438. local missle = Instance.new("Part", workspace)
  439. missle:BreakJoints()
  440. missle.Name = "bullet"
  441. missle.CanCollide = false
  442. missle.Material = "Neon"
  443. missle.Size = Vector3.new(0.1,0.1,3)
  444. missle.CFrame = Part22.CFrame * CFrame.new(0,2.5,0)
  445. missle.Transparency = 0.3
  446. missle.CFrame = CFrame.new(missle.Position, mouse.Hit.p)
  447. local vel = Instance.new("BodyVelocity", missle)
  448. vel.Velocity = mouse.Hit.lookVector * math.random(600,600) + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  449. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  450. local function hit(part)
  451. local hitval = math.random(25,40)
  452. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  453. if humanoid then
  454. if humanoid.Health == math.huge or humanoid.Health >= 600 then
  455. humanoid.Health = 100
  456. end
  457. if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  458. humanoid.MaxHealth = 100
  459. end
  460. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  461.  
  462. else
  463. if humanoid.Health < hitval then
  464. local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
  465. if humpart then
  466. humpart:destroy()
  467. end
  468. for i,v in pairs(humanoid.Parent:GetChildren()) do
  469. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  470. v:Remove()
  471. end
  472. end
  473. local isded = deathplr:Clone()
  474. isded.Parent = humanoid.Parent.Head
  475. isded:Play()
  476. humanoid.JumpPower = 0
  477. humanoid.PlatformStand = true
  478. humanoid.WalkSpeed = 0
  479. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  480. if findlefthip then
  481. findlefthip:Remove()
  482. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  483. glue.Part0 = humanoid.Parent.Torso
  484. glue.Part1 = humanoid.Parent["Left Leg"]
  485. glue.Name = "Left leg"
  486. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  487. collider.Position = Vector3.new(0,999,0)
  488. collider.Size = Vector3.new(1.5, 1, 1)
  489. collider.Shape = "Cylinder"
  490. local weld = Instance.new("Weld", collider)
  491. weld.Part0 = humanoid.Parent["Left Leg"]
  492. weld.Part1 = collider
  493. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  494. collider.TopSurface = "Smooth"
  495. collider.BottomSurface = "Smooth"
  496. collider.formFactor = "Symmetric"
  497. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  498. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  499. collider.Transparency = 1
  500. end
  501. --
  502. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  503. if findrighthip then
  504. findrighthip:Remove()
  505. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  506. glue.Part0 = humanoid.Parent.Torso
  507. glue.Part1 = humanoid.Parent["Right Leg"]
  508. glue.Name = "Right leg"
  509. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  510. collider.Position = Vector3.new(0,999,0)
  511. collider.Size = Vector3.new(1.5, 1, 1)
  512. collider.Shape = "Cylinder"
  513. local weld = Instance.new("Weld", collider)
  514. weld.Part0 = humanoid.Parent["Right Leg"]
  515. weld.Part1 = collider
  516. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  517. collider.TopSurface = "Smooth"
  518. collider.BottomSurface = "Smooth"
  519. collider.formFactor = "Symmetric"
  520. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  521. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  522. collider.Transparency = 1
  523. end
  524. --
  525. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  526. if findrightshoulder then
  527. findrightshoulder:Remove()
  528. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  529. glue.Part0 = humanoid.Parent.Torso
  530. glue.Part1 = humanoid.Parent["Right Arm"]
  531. glue.Name = "Right arm"
  532. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  533. collider.Position = Vector3.new(0,999,0)
  534. collider.Size = Vector3.new(1.5, 1, 1)
  535. collider.Shape = "Cylinder"
  536. local weld = Instance.new("Weld", collider)
  537. weld.Part0 = humanoid.Parent["Right Arm"]
  538. weld.Part1 = collider
  539. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  540. collider.TopSurface = "Smooth"
  541. collider.BottomSurface = "Smooth"
  542. collider.formFactor = "Symmetric"
  543. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  544. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  545. collider.Transparency = 1
  546. end
  547. --
  548. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  549. if findleftshoulder then
  550. findleftshoulder:Remove()
  551. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  552. glue.Part0 = humanoid.Parent.Torso
  553. glue.Part1 = humanoid.Parent["Left Arm"]
  554. glue.Name = "Left arm"
  555. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  556. collider.Position = Vector3.new(0,999,0)
  557. collider.Size = Vector3.new(1.5, 1, 1)
  558. collider.Shape = "Cylinder"
  559. local weld = Instance.new("Weld", collider)
  560. weld.Part0 = humanoid.Parent["Left Arm"]
  561. weld.Part1 = collider
  562. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  563. collider.TopSurface = "Smooth"
  564. collider.BottomSurface = "Smooth"
  565. collider.formFactor = "Symmetric"
  566. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  567. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  568. collider.Transparency = 1
  569. end
  570. local findhead = humanoid.Parent:findFirstChild("Head")
  571. if findhead then
  572. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  573. attachment.Position = Vector3.new(0, -0.5, 0)
  574. attachment.Name = "lol"
  575. attachment.Visible = false
  576. humanoid.Parent.Torso.NeckAttachment.Visible = false
  577. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  578. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  579. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  580. ball.Attachment1 = attachment
  581. ball.LimitsEnabled = true
  582. ball.TwistLimitsEnabled = true
  583. ball.UpperAngle = 90
  584. ball.Restitution = 0.5
  585. ball.TwistUpperAngle = 90
  586. ball.TwistLowerAngle = -90
  587. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  588. collidepartofleftleg.Name = "Bone"
  589. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  590. collidepartofleftleg.Transparency = 1
  591. collidepartofleftleg:BreakJoints()
  592. local weeld = Instance.new("Weld", collidepartofleftleg)
  593. weeld.Part0 = collidepartofleftleg
  594. weeld.Part1 = humanoid.Parent["Head"]
  595. if humanoid.Parent.Torso:findFirstChild("Neck") then
  596. humanoid.Parent.Torso.Neck:destroy()
  597. end
  598. end
  599. wait(10)
  600. humanoid.Health = 0
  601. else
  602. humanoid.Health = humanoid.Health - hitval
  603. end
  604. end
  605. else
  606. if part.Name == "Shotgun" or "bullet" then
  607.  
  608. else
  609. missle:destroy()
  610. end
  611. end
  612. end
  613. missle.Touched:connect(hit)
  614. for i = 0,1 , 0.25 do
  615. lhandweld.C1 = lhandweld.C1 * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
  616. 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)
  617. game:GetService("RunService").RenderStepped:wait()
  618. end
  619. for i = 0,1 , 0.25 do
  620. lhandweld.C1 = lhandweld.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  621. 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)
  622. game:GetService("RunService").RenderStepped:wait()
  623. end
  624. using = false
  625. end
  626. end
  627. end
  628. mouse.Button1Down:connect(shoot)
  629. function ragdoll()
  630. music:Stop()
  631. game.Players.LocalPlayer.Character.Archivable = true
  632. clone = game.Players.LocalPlayer.Character:Clone()
  633. clone.Parent = workspace
  634. for i,v in pairs(clone:GetChildren()) do
  635. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  636. v:destroy()
  637. end
  638. for i,p in pairs(v:GetChildren()) do
  639. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  640. p:destroy()
  641. end
  642. end
  643. end
  644. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  645. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  646. t:destroy()
  647. end
  648. end
  649. vel = Instance.new("BodyVelocity", clone.Torso)
  650. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  651. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  652. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  653. using = false
  654. hit = Instance.new("Sound", clone.Torso)
  655. hit.SoundId = "rbxassetid://260430060"
  656. hit.Volume = 0
  657. hit1 = Instance.new("Sound", clone.Torso)
  658. hit1.SoundId = "rbxassetid://138087186"
  659. hit1.Volume = 0
  660. hit2 = Instance.new("Sound", clone.Torso)
  661. hit2.SoundId = "rbxassetid://131237241"
  662. hit2.Volume = 0
  663. hit3 = Instance.new("Sound", clone.Torso)
  664. hit3.SoundId = "rbxassetid://278062209"
  665. hit3.Volume = 0
  666. hit3.TimePosition = 0.33
  667. ded = Instance.new("Sound", clone.Torso)
  668. ded.SoundId = "rbxassetid://884348443"
  669. ded.Volume =10
  670. local leftarm = clone:findFirstChild("Left Arm")
  671. local rightrm = clone:findFirstChild("Right Arm")
  672. local leftleg = clone:findFirstChild("Left Leg")
  673. local rightleg = clone:findFirstChild("Right Leg")
  674. local head = clone:findFirstChild("Head")
  675. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  676. if g.ClassName == "Part" then
  677. g:destroy()
  678. end
  679. end
  680. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  681. if h.ClassName == "Accesory" then
  682. h:destroy()
  683. end
  684. end
  685. game.Workspace.CurrentCamera.CameraSubject = head
  686. if head then
  687. local attachment = Instance.new("Attachment", clone.Head)
  688. attachment.Position = Vector3.new(0, -0.5, 0)
  689. attachment.Name = "lol"
  690. attachment.Visible = false
  691. clone.Torso.NeckAttachment.Visible = false
  692. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  693. local ball = Instance.new("BallSocketConstraint", clone)
  694. ball.Attachment0 = clone.Torso.NeckAttachment
  695. ball.Attachment1 = attachment
  696. ball.LimitsEnabled = true
  697. ball.TwistLimitsEnabled = true
  698. ball.UpperAngle = 90
  699. ball.Restitution = 0.5
  700. ball.TwistUpperAngle = 90
  701. ball.TwistLowerAngle = -90
  702. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  703. collidepartofleftleg.Name = "Bone"
  704. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  705. collidepartofleftleg.Transparency = 1
  706. collidepartofleftleg:BreakJoints()
  707. local weeld = Instance.new("Weld", collidepartofleftleg)
  708. weeld.Part0 = collidepartofleftleg
  709. weeld.Part1 = clone["Head"]
  710. end
  711. if leftleg ~= nil then
  712. local glue = Instance.new("Glue", clone.Torso)
  713. glue.Part0 = clone.Torso
  714. glue.Part1 = leftleg
  715. glue.Name = "Left leg"
  716. local collider = Instance.new("Part", leftleg)
  717. collider.Position = Vector3.new(0,999,0)
  718. collider.Size = Vector3.new(1.5, 1, 1)
  719. collider.Shape = "Cylinder"
  720. local weld = Instance.new("Weld", collider)
  721. weld.Part0 = leftleg
  722. weld.Part1 = collider
  723. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  724. collider.TopSurface = "Smooth"
  725. collider.BottomSurface = "Smooth"
  726. collider.formFactor = "Symmetric"
  727. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  728. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  729. collider.Transparency = 1
  730. end
  731. ------------
  732. if rightleg ~= nil then
  733. local glue1 = Instance.new("Glue", clone.Torso)
  734. glue1.Part0 = clone.Torso
  735. glue1.Part1 = rightleg
  736. glue1.Name = "Right leg"
  737. local collider1 = Instance.new("Part", rightleg)
  738. collider1.Position = Vector3.new(0,999,0)
  739. collider1.Size = Vector3.new(1.5, 1, 1)
  740. collider1.Shape = "Cylinder"
  741. local weld1 = Instance.new("Weld", collider1)
  742. weld1.Part0 = rightleg
  743. weld1.Part1 = collider1
  744. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  745. collider1.TopSurface = "Smooth"
  746. collider1.BottomSurface = "Smooth"
  747. collider1.formFactor = "Symmetric"
  748. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  749. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  750. collider1.Transparency = 1
  751. end
  752. ------------
  753. if rightrm ~= nil then
  754. local glue11 = Instance.new("Glue", clone.Torso)
  755. glue11.Part0 = clone.Torso
  756. glue11.Part1 = rightrm
  757. glue11.Name = "Right shoulder"
  758. local collider11 = Instance.new("Part", rightrm)
  759. collider11.Position = Vector3.new(0,9999,0)
  760. collider11.Size = Vector3.new(1.5,1,1)
  761. collider11.Shape = "Cylinder"
  762. local weld11 = Instance.new("Weld", collider11)
  763. weld11.Part0 = rightrm
  764. weld11.Part1 = collider11
  765. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  766. collider11.TopSurface = "Smooth"
  767. collider11.BottomSurface = "Smooth"
  768. collider11.formFactor = "Symmetric"
  769. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  770. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  771. collider11.Transparency = 1
  772. end
  773. ------------
  774. if leftarm ~= nil then
  775. local glue111 = Instance.new("Glue", clone.Torso)
  776. glue111.Part0 = clone.Torso
  777. glue111.Part1 = leftarm
  778. glue111.Name = "Left shoulder"
  779. local collider111 = Instance.new("Part", leftarm)
  780. collider111.Position = Vector3.new(0,9999,0)
  781. collider111.Size = Vector3.new(1.5,1,1)
  782. collider111.Shape = "Cylinder"
  783. local weld111 = Instance.new("Weld", collider111)
  784. weld111.Part0 = leftarm
  785. weld111.Part1 = collider111
  786. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  787. collider111.TopSurface = "Smooth"
  788. collider111.BottomSurface = "Smooth"
  789. collider111.formFactor = "Symmetric"
  790. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  791. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  792. collider111.Transparency = 1
  793. ----------------
  794. sensoring = Instance.new("Part", clone.Torso)
  795. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  796. sensoring.CanCollide = false
  797. sensoring.Position = clone.Torso.Position
  798. local welder = Instance.new("Weld", sensoring)
  799. welder.Part0 = clone.Torso
  800. welder.Part1 = sensoring
  801. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  802. sensoring.Transparency = 1
  803. -----------------
  804. sensoring1 = Instance.new("Part", clone.Torso)
  805. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  806. sensoring1.CanCollide = false
  807. sensoring1.Position = clone.Torso.Position
  808. local welder1 = Instance.new("Weld", sensoring)
  809. welder1.Part0 = clone.Torso
  810. welder1.Part1 = sensoring1
  811. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  812. sensoring1.Transparency = 1
  813. end
  814. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  815. ded:Play()
  816. vel:destroy()
  817. wait(0.5)
  818. local function touch()
  819. if not using then
  820. using = true
  821. local Math = math.random(1,4)
  822. if Math == 1 then
  823. hit:Play()
  824. end
  825. if Math == 2 then
  826. hit1:Play()
  827. end
  828. if Math == 3 then
  829. hit2:Play()
  830. end
  831. if Math == 4 then
  832. hit3:Play()
  833. end
  834. wait(0.1)
  835. using = false
  836. end
  837. end
  838. sensoring.Touched:connect(touch)
  839. sensoring1.Touched:connect(touch)
  840. wait(0.5)
  841. while true do
  842. clone.Head.CanCollide = false
  843. game:GetService("RunService").Stepped:wait()
  844. end
  845. end
  846.  
  847. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  848. while true do
  849. 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))
  850. 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)
  851. 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)
  852. 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)
  853. hand.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame
  854. hand2.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame
  855. if Model0.Parent == nil then
  856. Model0.Parent = workspace
  857. end
  858. if hand.Parent == nil then
  859. hand.Parent = workspace
  860. end
  861. if music.Parent == nil then
  862. music.Parent = game.Players.LocalPlayer.Character.Head
  863. end
  864. if shooot.Parent == nil then
  865. shooot.Parent = Part2
  866. end
  867. if fps then
  868. game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
  869. Model0.Parent = workspace
  870. Model00.Parent = workspace
  871. hand.Transparency = 0
  872. hand2.Transparency = 0
  873. else
  874. game.Players.LocalPlayer.CameraMode = "Classic"
  875. Model0.Parent = game.Players.LocalPlayer.Character
  876. Model00.Parent = game.Players.LocalPlayer.Character
  877. hand.Transparency = 1
  878. hand2.Transparency = 1
  879. end
  880. game:GetService("RunService").RenderStepped:wait()
  881. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement