local CoolPlr = game.Players.LocalPlayer local Gui = Instance.new("ScreenGui", CoolPlr.PlayerGui) if CoolPlr then wait(0.1) local Turn = false local Can = true local CoolButton = Instance.new("TextButton", Gui) local CoolFrame = Instance.new("Frame", Gui) Gui.Name = "cOOlGui" Gui.IgnoreGuiInset = true Gui.ResetOnSpawn = false Gui.DisplayOrder = 100000 CoolButton.Text = "cOOlGui" CoolButton.BackgroundColor3 = Color3.new(0,0,0) CoolButton.Font = Enum.Font.Arcade CoolButton.TextSize = 20 CoolButton.Name = "CoolGuiButtonOpen" CoolButton.TextColor3 = Color3.new(1,1,1) CoolButton.RichText = true CoolButton.SizeConstraint = Enum.SizeConstraint.RelativeXX CoolButton.Size = UDim2.new(0.1,0,0.1,0) CoolButton.Position = UDim2.new(0.018,0,0.458,0) local uistoke = Instance.new("UIStroke", CoolButton) uistoke.Thickness = 3 uistoke.Color = Color3.new(1,0,0) uistoke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border function getTarget(char, folder) folder = workspace.Living local Enemys = { } local Character = char local Count = 0 local Enemyspawn for i,model in pairs(workspace.Living:GetChildren()) do if model:FindFirstChild("Humanoid") and model:FindFirstChild("AI") then table.insert(Enemys, model) Count += 1 Enemyspawn = true end end wait(0.1) if Enemyspawn == false then wait(1) getTarget(Character, folder) end local Target = Enemys[math.random(1, Count)] wait(0.1) for number,targeter in pairs(Enemys) do if targeter == Target then local CharHRP = Target:FindFirstChild("HumanoidRootPart") local plrHRP = CoolPlr.Character:FindFirstChild("HumanoidRootPart") while Target.Humanoid.Health ~= 0 do CoolButton.Text = "KILL" print("Hi") wait(0.001) plrHRP.CFrame = CharHRP.CFrame end wait(0.1) table.remove(Enemys, number) getTarget(Character, folder) end end end function CheckEstatus(folder, name) if folder:FindFirstChild(name) then CoolButton.Text = "CharacterInGame" wait(0.1) local Character = folder:FindFirstChild(name) if Turn == true then wait(0.1) if Can == true then CoolButton.Text = "Starting" getTarget(Character) end else CoolButton.Text = "Canceled" end end end CoolButton.MouseButton1Click:Connect(function() Turn = not Turn local PlrName = CoolPlr.Name local Living = workspace:FindFirstChild("Living") if Living then CheckEstatus(Living, PlrName) end end) end