Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local KillAll = Instance.new("TextButton")
  4.  
  5. ScreenGui.Parent = gameCoreGui
  6.  
  7. Main.Name = "Main"
  8. Main.Parent = ScreenGui
  9. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  10. Main.Position = UDim2.new(0.223055288, 0, 0.237191647, 0)
  11. Main.Size = UDim2.new(0, 197, 0, 146)
  12.  
  13. KillAll.Name = "Kill All"
  14. KillAll.Parent = Main
  15. KillAll.BackgroundColor3 = Color3.new(1, 1, 1)
  16. KillAll.Position = UDim2.new(0.161285251, 0, 0.328689158, 0)
  17. KillAll.Size = UDim2.new(0, 132, 0, 50)
  18. KillAll.Font = Enum.Font.SourceSans
  19. KillAll.Text = "KILL ALL"
  20. KillAll.TextColor3 = Color3.new(0, 0, 0)
  21. KillAll.TextSize = 14
  22. spawn(function ()
  23. local script = Instance.new('Script')
  24. script.Parent = KillAll
  25. wait(0.1)
  26. for i, player in ipairs(game.Players:GetPlayers()) do
  27. if player.Character then
  28. local hum = player.Character:FindFirstChild('Humanoid')
  29. if hum then
  30. hum.Health = 0
  31. end
  32. end
  33. end
  34.  
  35.  
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement