if not game.
CoreGui:FindFirstChild("LoadedAimbot") then
local loadedaimb = Instance.new("Folder", game.CoreGui)
loadedaimb.Name = "LoadedAimbot"
local fov = getgenv().Fov
local maxTransparency = 0.1 -- Transparência máxima dentro do círculo (0.1 = 10% de
transparência)
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local Cam = game.Workspace.CurrentCamera
local FOVring = Drawing.new("Circle")
FOVring.Visible = getgenv().CircleFov
FOVring.Thickness = 2
FOVring.Color = Color3.fromRGB(128, 0, 128) -- Cor roxa
FOVring.Filled = false
FOVring.Radius = fov
FOVring.Position = Cam.ViewportSize / 2
local function updateDrawings()
local camViewportSize = Cam.ViewportSize
FOVring.Position = camViewportSize / 2
end
local function onKeyDown(input)
if input.KeyCode == Enum.KeyCode.Delete then
RunService:UnbindFromRenderStep("FOVUpdate")
FOVring:Remove()
end
end
UserInputService.InputBegan:Connect(onKeyDown)
local function lookAt(target)
local lookVector = (target - Cam.CFrame.Position).unit
local newCFrame = CFrame.new(Cam.CFrame.Position, Cam.CFrame.Position +
lookVector)
Cam.CFrame = newCFrame
end
local function calculateTransparency(distance)
-- Ajuste a transparência com base na distância do centro do círculo
local maxDistance = fov -- A distância máxima do centro do círculo
local transparency = (1 - (distance / maxDistance)) * maxTransparency
return transparency
end
local function getClosestPlayerInFOV(trg_part)
local nearest = nil
local last = math.huge
local playerMousePos = Cam.ViewportSize / 2
for _, player in ipairs(Players:GetPlayers()) do
if player ~= Players.LocalPlayer then
local part = player.Character and
player.Character:FindFirstChild(trg_part)
if part then
local ePos, isVisible = Cam:WorldToViewportPoint(part.Position)
local distance = (Vector2.new(ePos.x, ePos.y) -
playerMousePos).Magnitude
if distance < last and isVisible and distance < fov then
last = distance
nearest = player
end
end
end
end
return nearest
end
local uilibrary =
loadstring(game:HttpGet("https://raw.githubusercontent.com/Kiet1308/tvkhub/main/
rac"))()
local windowz = uilibrary:CreateWindow("Universal DarkCheatClient", "Aimbot", true)
local Page = windowz:CreatePage("Aimbot")
local Pages = Pages:CreateSection("Aimbot")
Pages:CreateToggle("Aimbot Toggle", {Toggled=false , Description = false},
function(val)
if val then
if AimbotOn then AmbotOn:Disconnect() return end
wait(1.1)
AimbotOn = RunService.RenderStepped:Connect(function()
updateDrawings()
local closest = getClosestPlayerInFOV("Head")
if closest and closest.Character:FindFirstChild("Head") then
lookAt(closest.Character.Head.Position)
end
if closest then
local ePos, isVisible =
Cam:WorldToViewportPoint(closest.Character.Head.Position)
local distance = (Vector2.new(ePos.x, ePos.y) - (Cam.ViewportSize /
2)).Magnitude
FOVring.Transparency = calculateTransparency(distance)
else
FOVring.Transparency = 0.1 -- Mantenha completamente visível quando nenhum
jogador estiver no FOV
end
end)
else
if not AimbotOn then return end
if AimbotOn then
AimbotOn:Disconnect()
end
end
end)
Pages:CreateToggle("Circle Fov Visible", {Toggled=false , Description = false},
function(val)
getgenv().CircleFov = val
end)
Pages:CreateSlider("Circle Fov Transparency", {Min = 0, Max = 1, DefaultValue =
maxTransparency}, function(Value)
maxTransparency = Value
end)
Pages:CreateSlider("", {Min = 40, Max = 150, DefaultValue = 40}, function(Value)
getgenv().Fov = Value
end)
local gui = Instance.new("ScreenGui")
gui.Name = "ToggleUiDCCHub"
gui.Parent = game.CoreGui
local toggleui = Instance.new("TextButton")
toggleui.Size = UDim2.new(0, 75, 0, 75)
toggleui.Position = UDim2.new(0.01001973976, 0, 0.343832953, 0)
toggleui.BackgroundColor3 = Color3.fromRGB(28,28,28)
toggleui.Active = true
toggleui.Draggable = true
toggleui.Parent = gui
toggleui.Text = "Toggle Ui"
toggleui.TextSize = 18
toggleui.TextScaled = true
toggleui.TextColor3 = Color3.fromRGB(255,255,255)
toggleui.Font = Enum.Font.SourceSans
toggleui.ZIndex = 0
toggleui.MouseButton1Click:Connect(function()
uilibrary:ToggleUI()
end)
game:GetService("StarterGui"):SetCore("SendNotification",{["Title"] = "Loaded!",
["Text"] = "Credits to DarkCheatClient Devs."})
else
game:GetService("StarterGui"):SetCore("SendNotification",{["Title"] = "Error",
["Text"] = "Aimbot Has Already Loaded!"})
end