Facebook
From Aqua Motmot, 6 Years ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 278
  1. --By Rufus14
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. gun = Instance.new("Part", game.Players.LocalPlayer.Character)
  4. gun.Size = Vector3.new(0.5, 1, 2)
  5. gun.CanCollide = false
  6. gun:BreakJoints()
  7. swooshing = Instance.new("Sound", gun)
  8. swooshing.SoundId = "rbxassetid://280667448"
  9. swooshing.EmitterSize = 1
  10. swooshing.PlaybackSpeed = 0.9
  11. swooshing.Volume = 10
  12. weld = Instance.new("Weld", gun)
  13. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  14. weld.Part1 = gun
  15. weld.C0 = weld.C0 * CFrame.new(-0.2,-1.7,-0.25) * CFrame.Angles(0,1.6,-1.53)
  16. mesh = Instance.new("SpecialMesh", gun)
  17. mesh.MeshId = "rbxassetid://623102664"
  18. mesh.TextureId = "rbxassetid://623102879"
  19. mesh.Scale = Vector3.new(0.01,0.01,0.01)
  20. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  21. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  22. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  23. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  24. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  25. shooting = false
  26. for i = 1,2 do
  27.         wait()
  28.         rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  29. end
  30. for i = 1,2 do
  31.         wait()
  32.         rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  33. end
  34. swooshing:Play()
  35. for i = 1,7 do
  36.         wait()
  37.         rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.17)
  38. end
  39. for i = 1,2 do
  40.         wait()
  41.         rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  42. end
  43. for i = 1,2 do
  44.         wait()
  45.         rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  46. end
  47. function shoot()
  48.         if not shooting then
  49.                 shooting = true
  50.                 local shotsound = Instance.new("Sound", gun)
  51.                 shotsound.EmitterSize = 1
  52.                 shotsound.SoundId = "rbxassetid://139593133"
  53.                 shotsound.Volume = 3
  54.                 shotsound:Play()
  55.                 local missle = Instance.new("Part", workspace)
  56.                 missle.Size = Vector3.new(0.05,0.05,0.05)
  57.                 missle.CanCollide = false
  58.                 missle.BrickColor = BrickColor.new("New Yeller")
  59.                 missle.Shape = "Ball"
  60.                 missle.CFrame = gun.CFrame * CFrame.new(0,0.5,0)
  61.                 missle:BreakJoints()
  62.                 local velo = Instance.new("BodyVelocity", missle)
  63.                 velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  64.                 velo.Velocity = mouse.Hit.lookVector * 190
  65.                 for i = 1,2 do
  66.                         weld.C0 = weld.C0 * CFrame.Angles(0,0,0.14)
  67.                         rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.14)
  68.                 end
  69.                 for i = 1,2 do
  70.                         wait()
  71.                         weld.C0 = weld.C0 * CFrame.Angles(0,0,-0.07)
  72.                         rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.07)
  73.                 end
  74.                 local function kill(part)
  75.                         local hum = part.Parent:findFirstChild("Humanoid")
  76.                         local torso = part.Parent:findFirstChild("Torso")
  77.                         local larm = part.Parent:findFirstChild("Left Arm")
  78.                         local rarm = part.Parent:findFirstChild("Right Arm")
  79.                         local lleg = part.Parent:findFirstChild("Left Leg")
  80.                         local rleg = part.Parent:findFirstChild("Right Leg")
  81.                         missle:destroy()
  82.                         if hum ~= nil then
  83.                                 if torso then
  84.                                         hum.Health = hum.Health - math.random(25,68)
  85.                                         local shotsound1 = Instance.new("Sound", torso)
  86.                                         shotsound1:Play()
  87.                                         shotsound1.EmitterSize = 2
  88.                                         shotsound1.SoundId = "rbxassetid://144884872"
  89.                                         shotsound1.Volume = 8
  90.                                         shotsound1:Play()
  91.                                         local shotsound1 = Instance.new("Sound", torso)
  92.                                         shotsound1:Play()
  93.                                         shotsound1.EmitterSize = 2
  94.                                         shotsound1.SoundId = "rbxassetid://175272131"
  95.                                         shotsound1.Volume = 8
  96.                                         shotsound1:Play()
  97.                                         using = false
  98. hit = Instance.new("Sound", torso)
  99. hit.SoundId = "rbxassetid://260430060"
  100. hit.Volume = 5
  101. hit1 = Instance.new("Sound", torso)
  102. hit1.SoundId = "rbxassetid://138087186"
  103. hit1.Volume = 5
  104. hit2 = Instance.new("Sound", torso)
  105. hit2.SoundId = "rbxassetid://131237241"
  106. hit2.Volume = 5
  107. hit3 = Instance.new("Sound", torso)
  108. hit3.SoundId = "rbxassetid://278062209"
  109. hit3.Volume = 5
  110. hit3.TimePosition = 0.33
  111. print("You killed "..hum.Parent.Name)
  112. hum.PlatformStand = true
  113. ----------
  114. local lhip = torso:findFirstChild("Left Hip")
  115. if lhip then
  116. ---
  117. torso["Left Hip"]:destroy()
  118. local head = game.Players.LocalPlayer.Character.Head
  119. local glue = Instance.new("Glue", torso)
  120. glue.Part0 = torso
  121. glue.Part1 = torso.Parent["Left Leg"]
  122. glue.Name = "Left leg"
  123. local collider = Instance.new("Part", torso.Parent["Left Leg"])
  124. collider.Position = Vector3.new(0,999,0)
  125. collider.Size = Vector3.new(1.7, 1, 1)
  126. collider.Shape = "Cylinder"
  127. local weld = Instance.new("Weld", collider)
  128. weld.Part0 = torso.Parent["Left Leg"]
  129. weld.Part1 = collider
  130. weld.C0 = CFrame.Angles(0, 0, 80)
  131. collider.TopSurface = "Smooth"
  132. collider.BottomSurface = "Smooth"
  133. collider.formFactor = "Symmetric"
  134. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  135. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  136. collider.Transparency = 1
  137. end
  138. local rhip = torso:findFirstChild("Right Hip")
  139. if rhip then
  140. ------------
  141. torso["Right Hip"]:destroy()
  142. local glue1 = Instance.new("Glue", torso)
  143. glue1.Part0 = torso
  144. glue1.Part1 = torso.Parent["Right Leg"]
  145. glue1.Name = "Right leg"
  146. local collider1 = Instance.new("Part", torso.Parent["Right Leg"])
  147. collider1.Position = Vector3.new(0,9999,0)
  148. collider1.Size = Vector3.new(1.7, 1, 1)
  149. collider1.Shape = "Cylinder"
  150. local weld1 = Instance.new("Weld", collider1)
  151. weld1.Part0 = torso.Parent["Right Leg"]
  152. weld1.Part1 = collider1
  153. weld1.C0 = CFrame.Angles(0, 0, 80)
  154. collider1.TopSurface = "Smooth"
  155. collider1.BottomSurface = "Smooth"
  156. collider1.formFactor = "Symmetric"
  157. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  158. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  159. collider1.Transparency = 1
  160. end
  161. ------------
  162. local rshoulder = torso:findFirstChild("Right Shoulder")
  163. if rshoulder then
  164. torso["Right Shoulder"]:destroy()
  165. local glue11 = Instance.new("Glue", torso)
  166. glue11.Part0 = torso
  167. glue11.Part1 = torso.Parent["Right Arm"]
  168. glue11.Name = "Right shoulder"
  169. local collider11 = Instance.new("Part", torso.Parent["Right Arm"])
  170. collider11.Position = Vector3.new(0,9999,0)
  171. collider11.Size = Vector3.new(1.8,1,1)
  172. collider11.Shape = "Cylinder"
  173. local weld11 = Instance.new("Weld", collider11)
  174. weld11.Part0 = torso.Parent["Right Arm"]
  175. weld11.Part1 = collider11
  176. weld11.C0 = CFrame.Angles(0, 0, 80)
  177. collider11.TopSurface = "Smooth"
  178. collider11.BottomSurface = "Smooth"
  179. collider11.formFactor = "Symmetric"
  180. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  181. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  182. collider11.Transparency = 1
  183. end
  184. ------------
  185. local lshoulder = torso:findFirstChild("Left Shoulder")
  186. if lshoulder then
  187. torso["Left Shoulder"]:destroy()
  188. local glue111 = Instance.new("Glue", torso)
  189. glue111.Part0 = torso
  190. glue111.Part1 = torso.Parent["Left Arm"]
  191. glue111.Name = "Left shoulder"
  192. local collider111 = Instance.new("Part", torso.Parent["Left Arm"])
  193. collider111.Position = Vector3.new(0,9999,0)
  194. collider111.Size = Vector3.new(1.8,1,1)
  195. collider111.Shape = "Cylinder"
  196. local weld111 = Instance.new("Weld", collider111)
  197. weld111.Part0 = torso.Parent["Left Arm"]
  198. weld111.Part1 = collider111
  199. weld111.C0 = CFrame.Angles(0, 0, 80)
  200. collider111.TopSurface = "Smooth"
  201. collider111.BottomSurface = "Smooth"
  202. collider111.formFactor = "Symmetric"
  203. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  204. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  205. collider111.Transparency = 1
  206. end
  207. -----------------
  208. local sensoring = Instance.new("Part", torso)
  209. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  210. sensoring.CanCollide = false
  211. sensoring.Position = torso.Position
  212. local welder = Instance.new("Weld", sensoring)
  213. welder.Part0 = torso
  214. welder.Part1 = sensoring
  215. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  216. sensoring.Transparency = 1
  217. -----------------
  218. local sensoring1 = Instance.new("Part", torso)
  219. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  220. sensoring1.CanCollide = false
  221. sensoring1.Position = torso.Position
  222. local welder1 = Instance.new("Weld", sensoring)
  223. welder1.Part0 = torso
  224. welder1.Part1 = sensoring1
  225. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  226. sensoring1.Transparency = 1
  227. local function touch()
  228.         if not using then
  229.                 using = true
  230.                 local Math = math.random(1,4)
  231.                 if Math == 1 then
  232.                         hit:Play()
  233.                 end
  234.                 if Math == 2 then
  235.                         hit1:Play()
  236.                 end
  237.                 if Math == 3 then
  238.                         hit2:Play()
  239.                 end
  240.                 if Math == 4 then
  241.                         hit3:Play()
  242.                 end
  243.                 wait(0.1)
  244.                 using = false
  245.         end
  246. end
  247. sensoring.Touched:connect(touch)
  248. sensoring1.Touched:connect(touch)
  249. if part.Name == "Head" then
  250.         local hed = Instance.new("Sound", torso)
  251.         hed.SoundId = "rbxassetid://147936251"
  252.         hed.Volume = 5
  253.         hed:Play()
  254.         hum.Health = 0.00001
  255.         for i,v in pairs(torso.Parent:GetChildren()) do
  256.                 if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  257.                         v:destroy()
  258.                 end
  259.         end
  260.         for i,v in pairs(torso.Parent.Head:GetChildren()) do
  261.                 if v.ClassName == "Decal" then
  262.                         v:destroy()
  263.                 end
  264.         end
  265.         torso.Parent.Head.Transparency = 1
  266.         wait(3)
  267.         hum.Health = 0
  268. end
  269. while true do
  270.         wait(0.3)
  271.         hum.PlatformStand = true
  272. end
  273.  
  274.                                         --di ent
  275.                                 end
  276.                         end
  277.                 end
  278.                 missle.Touched:connect(kill)
  279.                 for i = 1,2 do
  280.                         wait()
  281.                         weld.C0 = weld.C0 * CFrame.Angles(0,0,-0.07)
  282.                         rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.07)
  283.                 end
  284.                 shooting = false
  285.                 wait(3)
  286.                 shotsound:destroy()
  287.         end
  288. end
  289. mouse.Button1Down:connect(shoot)
  290. function ragdoll()
  291. game.Players.LocalPlayer.Character.Archivable = true
  292. clone = game.Players.LocalPlayer.Character:Clone()
  293. clone.Parent = workspace
  294. for i,v in pairs(clone:GetChildren()) do
  295.         if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  296.                 v:destroy()
  297.         end
  298.         for i,p in pairs(v:GetChildren()) do
  299.         if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  300.                 p:destroy()
  301.         end
  302. end
  303. end
  304. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  305.         if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  306.                 t:destroy()
  307.         end
  308. end
  309. vel = Instance.new("BodyVelocity", clone.Torso)
  310. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  311. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  312. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  313. using = false
  314. hit = Instance.new("Sound", clone.Torso)
  315. hit.SoundId = "rbxassetid://260430060"
  316. hit.Volume = 5
  317. hit1 = Instance.new("Sound", clone.Torso)
  318. hit1.SoundId = "rbxassetid://138087186"
  319. hit1.Volume = 5
  320. hit2 = Instance.new("Sound", clone.Torso)
  321. hit2.SoundId = "rbxassetid://131237241"
  322. hit2.Volume = 5
  323. hit3 = Instance.new("Sound", clone.Torso)
  324. hit3.SoundId = "rbxassetid://278062209"
  325. hit3.Volume = 5
  326. hit3.TimePosition = 0.33
  327. ded = Instance.new("Sound", clone.Torso)
  328. ded.SoundId = "rbxassetid://418892870"
  329. ded.Volume = 5
  330. local leftarm = clone:findFirstChild("Left Arm")
  331. local rightrm = clone:findFirstChild("Right Arm")
  332. local leftleg = clone:findFirstChild("Left Leg")
  333. local rightleg = clone:findFirstChild("Right Leg")
  334. local head = clone:findFirstChild("Head")
  335. local welding = Instance.new("Weld", clone.Torso)
  336. welding.Part0 = clone.Torso
  337. welding.Part1 = head
  338. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  339. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  340.         if g.ClassName == "Part" then
  341.                 g:destroy()
  342.         end
  343. end
  344. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  345.         if h.ClassName == "Accesory" then
  346.                 h:destroy()
  347.         end
  348. end
  349. game.Workspace.CurrentCamera.CameraSubject = head
  350. if leftleg ~= nil then
  351. local glue = Instance.new("Glue", clone.Torso)
  352. glue.Part0 = clone.Torso
  353. glue.Part1 = leftleg
  354. glue.Name = "Left leg"
  355. local collider = Instance.new("Part", leftleg)
  356. collider.Position = Vector3.new(0,999,0)
  357. collider.Size = Vector3.new(1.7, 1, 1)
  358. collider.Shape = "Cylinder"
  359. local weld = Instance.new("Weld", collider)
  360. weld.Part0 = leftleg
  361. weld.Part1 = collider
  362. weld.C0 = CFrame.Angles(0, 0, 80)
  363. collider.TopSurface = "Smooth"
  364. collider.BottomSurface = "Smooth"
  365. collider.formFactor = "Symmetric"
  366. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  367. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  368. collider.Transparency = 1
  369. end
  370. ------------
  371. if rightleg ~= nil then
  372. local glue1 = Instance.new("Glue", clone.Torso)
  373. glue1.Part0 = clone.Torso
  374. glue1.Part1 = rightleg
  375. glue1.Name = "Right leg"
  376. local collider1 = Instance.new("Part", rightleg)
  377. collider1.Position = Vector3.new(0,999,0)
  378. collider1.Size = Vector3.new(1.7, 1, 1)
  379. collider1.Shape = "Cylinder"
  380. local weld1 = Instance.new("Weld", collider1)
  381. weld1.Part0 = rightleg
  382. weld1.Part1 = collider1
  383. weld1.C0 = CFrame.Angles(0, 0, 80)
  384. collider1.TopSurface = "Smooth"
  385. collider1.BottomSurface = "Smooth"
  386. collider1.formFactor = "Symmetric"
  387. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  388. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  389. collider1.Transparency = 1
  390. end
  391. ------------
  392. if rightrm ~= nil then
  393. local glue11 = Instance.new("Glue", clone.Torso)
  394. glue11.Part0 = clone.Torso
  395. glue11.Part1 = rightrm
  396. glue11.Name = "Right shoulder"
  397. local collider11 = Instance.new("Part", rightrm)
  398. collider11.Position = Vector3.new(0,9999,0)
  399. collider11.Size = Vector3.new(1.8,1,1)
  400. collider11.Shape = "Cylinder"
  401. local weld11 = Instance.new("Weld", collider11)
  402. weld11.Part0 = rightrm
  403. weld11.Part1 = collider11
  404. weld11.C0 = CFrame.Angles(0, 0, 80)
  405. collider11.TopSurface = "Smooth"
  406. collider11.BottomSurface = "Smooth"
  407. collider11.formFactor = "Symmetric"
  408. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  409. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  410. collider11.Transparency = 1
  411. end
  412. ------------
  413. if leftarm ~= nil then
  414. local glue111 = Instance.new("Glue", clone.Torso)
  415. glue111.Part0 = clone.Torso
  416. glue111.Part1 = leftarm
  417. glue111.Name = "Left shoulder"
  418. local collider111 = Instance.new("Part", leftarm)
  419. collider111.Position = Vector3.new(0,9999,0)
  420. collider111.Size = Vector3.new(1.8,1,1)
  421. collider111.Shape = "Cylinder"
  422. local weld111 = Instance.new("Weld", collider111)
  423. weld111.Part0 = leftarm
  424. weld111.Part1 = collider111
  425. weld111.C0 = CFrame.Angles(0, 0, 80)
  426. collider111.TopSurface = "Smooth"
  427. collider111.BottomSurface = "Smooth"
  428. collider111.formFactor = "Symmetric"
  429. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  430. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  431. collider111.Transparency = 1
  432. ----------------
  433. sensoring = Instance.new("Part", clone.Torso)
  434. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  435. sensoring.CanCollide = false
  436. sensoring.Position = clone.Torso.Position
  437. local welder = Instance.new("Weld", sensoring)
  438. welder.Part0 = clone.Torso
  439. welder.Part1 = sensoring
  440. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  441. sensoring.Transparency = 1
  442. -----------------
  443. sensoring1 = Instance.new("Part", clone.Torso)
  444. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  445. sensoring1.CanCollide = false
  446. sensoring1.Position = clone.Torso.Position
  447. local welder1 = Instance.new("Weld", sensoring)
  448. welder1.Part0 = clone.Torso
  449. welder1.Part1 = sensoring1
  450. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  451. sensoring1.Transparency = 1
  452. end
  453. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  454. ded:Play()
  455. vel:destroy()
  456. wait(0.5)
  457. local function touch()
  458.         if not using then
  459.                 using = true
  460.                 local Math = math.random(1,4)
  461.                 if Math == 1 then
  462.                         hit:Play()
  463.                 end
  464.                 if Math == 2 then
  465.                         hit1:Play()
  466.                 end
  467.                 if Math == 3 then
  468.                         hit2:Play()
  469.                 end
  470.                 if Math == 4 then
  471.                         hit3:Play()
  472.                 end
  473.                 wait(0.1)
  474.                 using = false
  475.         end
  476. end
  477. sensoring.Touched:connect(touch)
  478. sensoring1.Touched:connect(touch)
  479. wait(4.47)
  480. hit1.Volume = 0
  481. hit2.Volume = 0
  482. hit3.Volume = 0
  483. hit.Volume = 0
  484.                 end
  485.  
  486. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  487.  
  488. --di ent