Counter Blox 1st (Working)
Counter Blox 1st (Working)
loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/
main/source.lua"))()
local Window = Library.CreateLib("Ylerps Counter Blox Hub", "Ocean")
-- MAIN
local Main = Window:NewTab("Main")
local settings = {
Aimbot = true,
Aiming = false,
Aimbot_AimPart = "Head",
Aimbot_TeamCheck = true,
Aimbot_Draw_FOV = true,
Aimbot_FOV_Radius = 200,
Aimbot_FOV_Color = Color3.fromRGB(255,255,255)
}
dwUIS.InputBegan:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton2 then
settings.Aiming = true
end
end)
dwUIS.InputEnded:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton2 then
settings.Aiming = false
end
end)
dwRunService.RenderStepped:Connect(function()
if settings.Aiming then
if v ~= dwLocalPlayer and
v.Character and
v.Character:FindFirstChild("HumanoidRootPart") and
v.Character:FindFirstChild("Humanoid") and
v.Character:FindFirstChild("Humanoid").Health > 0 then
if is_onscreen then
dist = mag
closest_char = char
end
end
end
end
end
dwCamera.CFrame = CFrame.new(dwCamera.CFrame.Position,
closest_char[settings.Aimbot_AimPart].Position)
end
end
end)
end)
end)
-- // Services
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local GuiService = game:GetService("GuiService")
local RunService = game:GetService("RunService")
-- // Vars
local Heartbeat = RunService.Heartbeat
local LocalPlayer = Players.LocalPlayer
local CurrentCamera = Workspace.CurrentCamera
local Mouse = LocalPlayer:GetMouse()
-- // Optimisation Vars (ugly)
local Drawingnew = Drawing.new
local Color3fromRGB = Color3.fromRGB
local Vector2new = Vector2.new
local GetGuiInset = GuiService.GetGuiInset
local Randomnew = Random.new
local mathfloor = math.floor
local CharacterAdded = LocalPlayer.CharacterAdded
local CharacterAddedWait = CharacterAdded.Wait
local WorldToViewportPoint = CurrentCamera.WorldToViewportPoint
local RaycastParamsnew = RaycastParams.new
local EnumRaycastFilterTypeBlacklist = Enum.RaycastFilterType.Blacklist
local Raycast = Workspace.Raycast
local GetPlayers = Players.GetPlayers
local Instancenew = Instance.new
local IsDescendantOf = Instancenew("Part").IsDescendantOf
local FindFirstChildWhichIsA = Instancenew("Part").FindFirstChildWhichIsA
local FindFirstChild = Instancenew("Part").FindFirstChild
-- // Show FOV
local circle = Drawingnew("Circle")
circle.Transparency = 1
circle.Thickness = 2
circle.Color = Color3fromRGB(255, 255, 255)
circle.Filled = false
function ValiantAimHacks.updateCircle()
if (circle) then
-- // Set Circle Properties
circle.Visible = ValiantAimHacks.ShowFOV
circle.Radius = (ValiantAimHacks.FOV * 3)
circle.Position = Vector2new(Mouse.X, Mouse.Y + GetGuiInset(GuiService).Y)
circle.NumSides = ValiantAimHacks.FOVSides
-- // Return circle
return circle
end
end
-- // Custom Functions
local calcChance = function(percentage)
percentage = mathfloor(percentage)
local chance = mathfloor(Randomnew().NextNumber(Randomnew(), 0, 1) * 100) / 100
return chance <= percentage / 100
end
-- // Return
return Visible
end
end
-- // Return
return false
end
-- // Check teams
function ValiantAimHacks.checkTeam(targetPlayerA, targetPlayerB)
-- // If player is not on your team
if (targetPlayerA.Team ~= targetPlayerB.Team) then
-- // Return
return false
end
-- // Check if player is blacklisted
function ValiantAimHacks.checkPlayer(targetPlayer)
for i = 1, #ValiantAimHacks.BlacklistedPlayers do
local v = ValiantAimHacks.BlacklistedPlayers[i]
if (v ~= targetPlayer) then
return true
end
end
-- // Return
return false
end
if (targetPlayer.UserId == v) then
return true
end
end
-- // Return
return false
end
-- // Blacklist player
function ValiantAimHacks.BlacklistPlayer(Player)
local BlacklistedPlayers = ValiantAimHacks.BlacklistedPlayers
BlacklistedPlayers[#BlacklistedPlayers + 1] = Player
return true
end
function ValiantAimHacks.UnblacklistPlayer(Player)
local BlacklistedPlayers = ValiantAimHacks.BlacklistedPlayers
for i = 1, #BlacklistedPlayers do
local BlacklistedPlayer = BlacklistedPlayers[i]
-- //
return false
end
function ValiantAimHacks.WhitelistPlayer(PlayerId)
local WhitelistedPUIDs = ValiantAimHacks.WhitelistedPUIDs
for i = 1, #WhitelistedPUIDs do
local WhitelistedPUID = WhitelistedPUIDs[i]
WhitelistedPUIDs[#WhitelistedPUIDs + 1] = PlayerId
return true
end
function ValiantAimHacks.UnwhitelistPlayer(PlayerId)
local WhitelistedPUIDs = ValiantAimHacks.WhitelistedPUIDs
for i = 1, #WhitelistedPUIDs do
local WhitelistedPUID = WhitelistedPUIDs[i]
-- //
return false
end
return nil
end
function ValiantAimHacks.getCharacter(Player)
return Player.Character
end
function ValiantAimHacks.checkHealth(Player)
local Character = ValiantAimHacks.getCharacter(Player)
local Humanoid = FindFirstChildWhichIsA(Character, "Humanoid")
function ValiantAimHacks.checkSilentAim()
return (ValiantAimHacks.SilentAimEnabled == true and ValiantAimHacks.Selected
~= LocalPlayer and ValiantAimHacks.SelectedPart ~= nil)
end
function ValiantAimHacks.getClosestTargetPartToCursor(Character)
local TargetParts = ValiantAimHacks.TargetPart
if (TargetPart) then
local PartPos, onScreen = WorldToViewportPoint(CurrentCamera,
TargetPart.Position)
local Magnitude = (Vector2new(PartPos.X, PartPos.Y) -
Vector2new(Mouse.X, Mouse.Y)).Magnitude
function ValiantAimHacks.getClosestPlayerToCursor()
local TargetPart = nil
local ClosestPlayer = nil
local Chance = calcChance(ValiantAimHacks.HitChance)
local ShortestDistance = 1/0
if (not Chance) then
ValiantAimHacks.Selected = LocalPlayer
ValiantAimHacks.SelectedPart = nil
return LocalPlayer
end
ClosestPlayer = Player
ShortestDistance = Magnitude
TargetPart = TargetPartTemp
end
end
end
end
-- // End
ValiantAimHacks.Selected = ClosestPlayer
ValiantAimHacks.SelectedPart = TargetPart
end
-- // Heartbeat Function
Heartbeat:Connect(function()
ValiantAimHacks.updateCircle()
ValiantAimHacks.getClosestPlayerToCursor()
end)
return ValiantAimHacks
end)
local MainSection = Main:NewSection("Esp")
function boxesp()
game:GetService("RunService").RenderStepped:Connect(function()
if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil
and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and
v.Character.Humanoid.Health > 0 then
local Vector, onScreen =
camera:worldToViewportPoint(v.Character.HumanoidRootPart.Position)
if onScreen then
BoxOutline.Size = Vector2.new(1000 / RootPosition.Z,
HeadPosition.Y - LegPosition.Y)
BoxOutline.Position = Vector2.new(RootPosition.X -
BoxOutline.Size.X / 2, RootPosition.Y - BoxOutline.Size.Y / 2)
BoxOutline.Visible = true
else
BoxOutline.Visible = false
Box.Visible = false
end
else
BoxOutline.Visible = false
Box.Visible = false
end
end)
end
coroutine.wrap(boxesp)()
end
game.Players.PlayerAdded:Connect(function(v)
local BoxOutline = Drawing.new("Square")
BoxOutline.Visible = false
BoxOutline.Color = Color3.new(0,0,0)
BoxOutline.Thickness = 3
BoxOutline.Transparency = 1
BoxOutline.Filled = false
function boxesp()
game:GetService("RunService").RenderStepped:Connect(function()
if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil
and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and
v.Character.Humanoid.Health > 0 then
local Vector, onScreen =
camera:worldToViewportPoint(v.Character.HumanoidRootPart.Position)
if onScreen then
BoxOutline.Size = Vector2.new(1000 / RootPosition.Z,
HeadPosition.Y - LegPosition.Y)
BoxOutline.Position = Vector2.new(RootPosition.X -
BoxOutline.Size.X / 2, RootPosition.Y - BoxOutline.Size.Y / 2)
BoxOutline.Visible = true
else
BoxOutline.Visible = false
Box.Visible = false
end
else
BoxOutline.Visible = false
Box.Visible = false
end
end)
end
coroutine.wrap(boxesp)()
end)
---Created By 0x83
end)
function lineesp()
game:GetService("RunService").RenderStepped:Connect(function()
if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil
and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and
v.Character.Humanoid.Health > 0 then
local Vector, OnScreen =
camera:worldToViewportPoint(v.Character.HumanoidRootPart.Position)
if OnScreen then
Tracer.From = Vector2.new(camera.ViewportSize.X / 2,
camera.ViewportSize.Y / 1)
Tracer.To = Vector2.new(Vector.X, Vector.Y)
game.Players.PlayerAdded:Connect(function(v)
local Tracer = Drawing.new("Line")
Tracer.Visible = false
Tracer.Color = Color3.new(1,1,1)
Tracer.Thickness = 1
Tracer.Transparency = 1
function lineesp()
game:GetService("RunService").RenderStepped:Connect(function()
if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil
and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and
v.Character.Humanoid.Health > 0 then
local Vector, OnScreen =
camera:worldToViewportPoint(v.Character.HumanoidRootPart.Position)
if OnScreen then
Tracer.From = Vector2.new(camera.ViewportSize.X / 2,
camera.ViewportSize.Y / 1)
Tracer.To = Vector2.new(Vector.X, Vector.Y)