Advertisement
Guest User

Kill gui

a guest
Jun 25th, 2022
1,746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.62 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("KAIOD") then
  2.  
  3.     game:GetService("CoreGui"):FindFirstChild("KAIOD"):Destroy()
  4.  
  5.            _G.loopkill = false
  6.  
  7. end
  8.  
  9. local KAIOD = Instance.new("ScreenGui")
  10.  
  11. local Frame = Instance.new("ImageLabel")
  12.  
  13. local UIGradient = Instance.new("UIGradient")
  14.  
  15. local Kill = Instance.new("TextButton")
  16.  
  17. local Target = Instance.new("TextBox")
  18.  
  19. local Loop = Instance.new("TextButton")
  20.  
  21. local TextLabel = Instance.new("TextLabel")
  22.  
  23. local ImageLabel = Instance.new("ImageLabel")
  24.  
  25. local plr = game:GetService("Players").LocalPlayer
  26.  
  27. KAIOD.Name = "KAIOD"
  28.  
  29. KAIOD.Parent = game:GetService("CoreGui")
  30.  
  31. Frame.Name = "Frame"
  32.  
  33. Frame.Parent = KAIOD
  34.  
  35. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  36.  
  37. Frame.BackgroundTransparency = 1.000
  38.  
  39. Frame.Position = UDim2.new(0.0630208328, 0, 0.196662694, 0)
  40.  
  41. Frame.Size = UDim2.new(0, 237, 0, 352)
  42.  
  43. Frame.Image = "rbxassetid://3570695787"
  44.  
  45. Frame.ScaleType = Enum.ScaleType.Slice
  46.  
  47. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  48.  
  49. Frame.SliceScale = 0.120
  50.  
  51. Frame.Active = true
  52.  
  53. Frame.Draggable = true
  54.  
  55. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(0.51, Color3.fromRGB(20, 20, 20)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(25, 25, 25))}
  56.  
  57. UIGradient.Parent = Frame
  58.  
  59. Kill.Name = "Kill"
  60.  
  61. Kill.Parent = Frame
  62.  
  63. Kill.BackgroundColor3 = Color3.fromRGB(152, 0, 2)
  64.  
  65. Kill.Position = UDim2.new(0.278481007, 0, 0.529105186, 0)
  66.  
  67. Kill.Size = UDim2.new(0, 104, 0, 27)
  68.  
  69. Kill.Text = "Kill"
  70.  
  71. Kill.TextColor3 = Color3.fromRGB(161, 161, 161)
  72.  
  73. Kill.TextScaled = true
  74.  
  75. Kill.TextSize = 14.000
  76.  
  77. Kill.TextWrapped = true
  78.  
  79. Target.Name = "Target"
  80.  
  81. Target.Parent = Frame
  82.  
  83. Target.BackgroundColor3 = Color3.fromRGB(39, 39, 39)
  84.  
  85. Target.Position = UDim2.new(0.0759493634, 0, 0.355113626, 0)
  86.  
  87. Target.Size = UDim2.new(0, 200, 0, 45)
  88.  
  89. Target.Font = Enum.Font.SourceSans
  90.  
  91. Target.PlaceholderColor3 = Color3.fromRGB(218, 218, 218)
  92.  
  93. Target.PlaceholderText = "Target Name|DisplayName"
  94.  
  95. Target.Text = ""
  96.  
  97. Target.TextColor3 = Color3.fromRGB(218, 218, 218)
  98.  
  99. Target.TextSize = 19.000
  100.  
  101. Loop.Name = "Loop"
  102.  
  103. Loop.Parent = Frame
  104.  
  105. Loop.BackgroundColor3 = Color3.fromRGB(152, 0, 2)
  106.  
  107. Loop.Position = UDim2.new(0.278481007, 0, 0.662157595, 0)
  108.  
  109. Loop.Size = UDim2.new(0, 104, 0, 27)
  110.  
  111. Loop.Text = "Loop"
  112.  
  113. Loop.TextColor3 = Color3.fromRGB(161, 161, 161)
  114.  
  115. Loop.TextScaled = true
  116.  
  117. Loop.TextSize = 14.000
  118.  
  119. Loop.TextWrapped = true
  120.  
  121. TextLabel.Parent = Frame
  122.  
  123. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  124.  
  125. TextLabel.BackgroundTransparency = 1.000
  126.  
  127. TextLabel.Position = UDim2.new(0.0759493634, 0, 0.838068187, 0)
  128.  
  129. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  130.  
  131. TextLabel.Font = Enum.Font.SourceSans
  132.  
  133. TextLabel.Text = "Note: Can do random\nor single"
  134.  
  135. TextLabel.TextColor3 = Color3.fromRGB(121, 121, 121)
  136.  
  137. TextLabel.TextSize = 21.000
  138.  
  139. TextLabel.TextWrapped = true
  140.  
  141. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  142.  
  143. TextLabel.TextYAlignment = Enum.TextYAlignment.Top
  144.  
  145. ImageLabel.Parent = Frame
  146.  
  147. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  148.  
  149. ImageLabel.BackgroundTransparency = 0.800
  150.  
  151. ImageLabel.Position = UDim2.new(0.295358658, 0, 0.0454545468, 0)
  152.  
  153. ImageLabel.Size = UDim2.new(0, 96, 0, 96)
  154.  
  155. ImageLabel.Image = ""
  156.  
  157.  
  158.  
  159. local Player = function(Ev)
  160.  
  161.            if Ev == "" then
  162.  
  163.                       return nil
  164.  
  165.            elseif Ev == "random" then
  166.  
  167.                       return game:GetService("Players"):GetPlayers()[math.random(1, #game:GetService("Players"):GetPlayers())]
  168.  
  169.            else
  170.  
  171.                       for _, v in pairs(game:GetService("Players"):GetPlayers()) do
  172.  
  173.                                  if v.Name:lower():sub(1, #Ev) == Ev:lower() or v.DisplayName:lower():sub(1, #Ev) == Ev then
  174.  
  175.                                             return v
  176.  
  177.                                  end
  178.  
  179.                       end
  180.  
  181.            end
  182.  
  183. end
  184.  
  185.  
  186.  
  187. Target.Focused:Connect(function()
  188.  
  189.            while Target:IsFocused() and wait() do
  190.  
  191.                       local User = Player(Target.Text)
  192.  
  193.                       if User ~= nil then
  194.  
  195.                                  ImageLabel.Image = game:GetService("Players"):GetUserThumbnailAsync(User.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
  196.  
  197.                       end
  198.  
  199.            end
  200.  
  201. end)
  202.  
  203.  
  204.  
  205. Target.FocusLost:Connect(function()
  206.  
  207.            while wait() do
  208.  
  209.                       if Target:IsFocused() then break end
  210.  
  211.                       if Target.Text ~= "random" then break end
  212.  
  213.                       ImageLabel.Image = game:GetService("Players"):GetUserThumbnailAsync(Player(Target.Text).UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
  214.  
  215.            end
  216.  
  217. end)
  218.  
  219.  
  220.  
  221. Kill.MouseButton1Click:Connect(function()
  222.  
  223. plr.Character.Humanoid:UnequipTools()
  224.  
  225.            local Humanoid = plr.Character.Humanoid:Clone()
  226.  
  227.            local Target = Player(Target.Text)
  228.  
  229.            local Tool = plr.Backpack:FindFirstChildOfClass("Tool")
  230.  
  231.  
  232.  
  233.    plr.Character.Animate.Disabled = true
  234.  
  235. plr.Character.Humanoid:Destroy()
  236.  
  237.            Humanoid.Parent = plr.Character
  238.  
  239.            Tool.Parent = plr.Character
  240.  
  241.     game.Players.LocalPlayer.Character.Humanoid:ChangeState(15)
  242.  
  243. firetouchinterest(Target.Character.HumanoidRootPart, Tool.Handle, 0);
  244.  
  245. end)
  246.  
  247.  
  248.  
  249. Loop.MouseButton1Click:Connect(function()
  250.  
  251.            if _G.loopkill then
  252.  
  253.                       _G.loopkill = false
  254.  
  255.                       Loop.Text = "Loop"
  256.  
  257.            else
  258.  
  259.                       _G.loopkill = true
  260.  
  261.                       Loop.Text = "Unloop"
  262.  
  263.                       local Target = Player(Target.Text)
  264.  
  265.                      
  266.  
  267.                       repeat
  268.  
  269.                                  if not game:GetService("Players"):FindFirstChild(Target.Name) then
  270.  
  271.                                             _G.loopkill = false
  272.  
  273.                                  game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Notification", Text = Target.Name .. " has left the game"})
  274.  
  275.                                  end
  276.  
  277.                                 
  278.  
  279.                                  pcall(function()
  280.  
  281.                                  plr.Character.Humanoid:UnequipTools()
  282.  
  283.                                             local Humanoid = plr.Character.Humanoid:Clone()
  284.  
  285.                                             local Tool = plr.Backpack:FindFirstChildOfClass("Tool")
  286.  
  287.  
  288.  
  289.                                     plr.Character.Animate.Disabled = true
  290.  
  291.                                  plr.Character.Humanoid:Destroy()
  292.  
  293.                                             Humanoid.Parent = plr.Character
  294.  
  295.                                             Tool.Parent = plr.Character
  296.  
  297.                                  firetouchinterest(Target.Character.HumanoidRootPart, Tool.Handle, 0); wait(0.1)
  298.  
  299.                                     plr.Character.Humanoid.Health = 0
  300.  
  301.                                             plr.Character = nil
  302.  
  303.                                  end)
  304.  
  305.                                 
  306.  
  307.                                plr.CharacterAdded:Wait()
  308.  
  309.                       plr.Character:WaitForChild("Humanoid")
  310.  
  311.                       until not _G.loopkill
  312.  
  313.            end
  314.  
  315. end)
  316.  
  317.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement