moathon

crash the server

Mar 15th, 2021 (edited)
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.57 KB | None | 0 0
  1. local victim = game.Workspace.moathon.Humanoid
  2. local health = victim.Health
  3. local newbody = victim.Parent:Clone()
  4. local body = victim.Parent
  5. local parts = body:GetDescendants()
  6. game.Workspace.moathon.Archivable = true
  7. local newbody = game.Workspace.moathon:Clone()
  8. newbody.Parent = script
  9. local newparts = newbody:GetDescendants()
  10. local death = Instance.new("Part")
  11. death.Parent = game.Workspace
  12. death.Touched:connect(function(part)
  13.     local ee = death:Clone()
  14.     death.Position = death.Position + Vector3.new(0,1,0)
  15.     victim:TakeDamage(1)
  16.     ee.name = "ee"
  17.     ee.Parent = game.Workspace
  18.     ee.Transparency = 1
  19.     if part.Parent:FindFirstChild("Humanoid") == true then
  20.         part.Parent.Humanoid:TakeDamage(1000000000)
  21.     end
  22. end)
  23. victim.HealthChanged:connect(function()
  24.     local damage = health-victim.Health
  25.     if damage > 0 and victim.Health ~= health then
  26.         print("Dealt "..damage)
  27.         victim:TakeDamage(-damage/3)
  28.         --victim.Health = victim.Health + (damage/2)
  29.         health = victim.Health
  30.         local crash = Instance.new("Part")
  31.         crash.Parent = game.Workspace
  32.         crash.Transparency = 1
  33.         local exprosion = Instance.new("Fire")
  34.         exprosion.Parent = crash
  35.         local fire = Instance.new("Explosion")
  36.         fire.Parent = crash
  37.         local gg = game.Workspace:FindFirstChild("ee")
  38.         gg.Parent = nil
  39.         crash.Parent = nil
  40.     end
  41. end)
  42. victim.Died:connect(function()
  43.     local regen = script:GetDescendants()
  44.     for i = 1, #regen do
  45.         regen[i].Parent = parts[i].Parent
  46.         parts[i].Parent = nil
  47.     end
  48. end)
  49.  
  50. while true do
  51.     victim:TakeDamage(1)
  52.     local ahahaha = script:Clone()
  53.     ahahaha.Parent = game.Workspace
  54. end
Add Comment
Please, Sign In to add comment