Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
- local window = library.CreateLib("Novaz#5792", "BloodTheme")
- local main = window:NewTab("Main")
- local section = main:NewSection("Main")
- local section1 = main:NewSection("ESP")
- local main1 = window:NewTab("Misc")
- local section2 = main1:NewSection("Local Player")
- local plr = game.Players.LocalPlayer
- local function getclosestenemy()
- local closest = nil
- local maxdist = math.huge
- for i,v in pairs(game.Workspace.NPCs:GetChildren()) do
- if v.Name == "Tango" or v.Name == "Monsters" then
- for o,k in pairs(v:GetChildren()) do
- if k:IsA("Model") and k:FindFirstChild("HumanoidRootPart") then
- local magnitude = (k:FindFirstChild("HumanoidRootPart").Position - plr.Character.HumanoidRootPart.Position).Magnitude
- if magnitude < maxdist then
- closest = k
- maxdist = magnitude
- end
- end
- end
- end
- end
- return closest
- end
- local function getclosestenemytm()
- local closest = nil
- local maxdist = math.huge
- for i,v in pairs(game.Workspace.NPCs:GetChildren()) do
- if v.Name == "Tango" or v.Name == "Monsters" then
- for o,k in pairs(v:GetChildren()) do
- if k:IsA("Model") and k:FindFirstChild("HumanoidRootPart") then
- local screenpoint = game.Workspace.CurrentCamera:WorldToScreenPoint(k:FindFirstChild("HumanoidRootPart").Position)
- local distance = (Vector2.new(game.Players.LocalPlayer:GetMouse().x, game.Players.LocalPlayer:GetMouse().y) - Vector2.new(screenpoint.x, screenpoint.y)).Magnitude
- if distance < maxdist then
- closest = k
- maxdist = distance
- end
- end
- end
- end
- end
- return closest
- end
- section:NewToggle("Silent Aim", "", function(c)
- d = c
- while d and task.wait() do
- pcall(function()
- plr.Character:FindFirstChildOfClass("Tool").Main:FireServer("DAMAGE", {getclosestenemytm():FindFirstChild("Head"), getclosestenemytm():FindFirstChild("Head").Position, 0, false})
- end)
- end
- end)
- section:NewToggle("Kill Closest", "", function(a)
- b = a
- while b and task.wait() do
- pcall(function()
- if tonumber(plr.PlayerGui.Crosshair.Counter.StoredAmmo.Text) >= 10 then
- plr.Character:FindFirstChildOfClass("Tool").Main:FireServer("AMMO")
- plr.Character:FindFirstChildOfClass("Tool").Main:FireServer("MUZZLE", plr.Character:FindFirstChildOfClass("Tool").Handle.Barrel)
- plr.Character:FindFirstChildOfClass("Tool").Main:FireServer("DAMAGE", {getclosestenemy():FindFirstChild("Head"), getclosestenemy():FindFirstChild("Head").Position, 0, false})
- elseif tonumber(plr.PlayerGui.Crosshair.Counter.StoredAmmo.Text) < 10 then
- task.wait()
- local oldpos = plr.Character.HumanoidRootPart.Position
- wait(.1)
- plr.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Maps["Chaos Facility"].Misc.Ammo.Box.Main.CFrame
- wait(.5)
- fireproximityprompt(game:GetService("Workspace").Maps["Chaos Facility"].Misc.Ammo.Box.Main:FindFirstChild("Template"))
- wait(.5)
- plr.Character.HumanoidRootPart.CFrame = CFrame.new(oldpos)
- end
- end)
- end
- end)
- section:NewToggle("Instant Reload", "", function(q)
- r = q
- while r and task.wait() do
- pcall(function()
- plr.Character:FindFirstChildOfClass("Tool").Main:FireServer("AMMO")
- end)
- end
- end)
- section:NewButton("Fill Up Ammo", "", function()
- pcall(function()
- local oldpos = plr.Character.HumanoidRootPart.Position
- wait(.1)
- plr.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").Maps["Chaos Facility"].Misc.Ammo.Box.Main.CFrame
- wait(.5)
- fireproximityprompt(game:GetService("Workspace").Maps["Chaos Facility"].Misc.Ammo.Box.Main:FindFirstChild("Template"))
- wait(.5)
- plr.Character.HumanoidRootPart.CFrame = CFrame.new(oldpos)
- end)
- end)
- section1:NewToggle("Enemy ESP", "", function(o)
- oo = o
- while oo and task.wait() do
- pcall(function()
- for i,v in pairs(game.Workspace.NPCs:GetChildren()) do
- if v.Name == "Tango" or v.Name == "Monsters" then
- for o,k in pairs(v:GetChildren()) do
- if (not k:FindFirstChildOfClass("Highlight")) and k.Parent.Name == "Tango" then
- local Highlight = Instance.new("Highlight")
- Highlight.Parent = k
- Highlight.Adornee = k
- Highlight.OutlineColor = Color3.fromRGB(1, 1, 1)
- Highlight.OutlineTransparency = 0
- Highlight.FillTransparency = 1
- elseif (not k:FindFirstChildOfClass("Highlight")) and k.Parent.Name == "Monsters" then
- local Highlight = Instance.new("Highlight")
- Highlight.Parent = k
- Highlight.Adornee = k
- Highlight.OutlineColor = Color3.fromRGB(255, 0, 0)
- Highlight.OutlineTransparency = 0
- Highlight.FillTransparency = 1
- end
- end
- end
- end
- end)
- end
- end)
Add Comment
Please, Sign In to add comment