local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
-- Variáveis de Estado
local AimbotEnabled, TeamCheckEnabled, FlyEnabled = false, false, false
local Accuracy, FlySpeed = 0.55, 0.5 -- 50% de velocidade padrão
local BodyVelocity, BodyGyro
-- === INTERFACE LZhin (FIXA X:551, Y:500) ===
local ScreenGui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
ScreenGui.Name = "LZhin_Ultimate"
ScreenGui.IgnoreGuiInset = true
local Frame = Instance.new("Frame", ScreenGui)
Frame.Size = UDim2.new(0, 220, 0, 350) -- Aumentado para os novos controles
Frame.Position = UDim2.new(0, 551, 0, 500)
Frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
Frame.BorderSizePixel = 0
local Title = Instance.new("TextLabel", Frame)
Title.Size = UDim2.new(1, 0, 0, 35)
Title.Text = "LZhin ✅"
Title.TextSize = 18
Title.Font = Enum.Font.GothamBold
Title.TextColor3 = Color3.fromRGB(0, 255, 150)
Title.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
-- Função auxiliar para botões
local function CreateButton(text, pos)
local btn = Instance.new("TextButton", Frame)
btn.Size = UDim2.new(0.9, 0, 0, 30)
btn.Position = pos
btn.Text = text
btn.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
btn.TextColor3 = Color3.new(1, 1, 1)
btn.Font = Enum.Font.Gotham
btn.BorderSizePixel = 0
return btn
end
local AimbotBtn = CreateButton("Aimbot: OFF", UDim2.new(0.05, 0, 0.12, 0))
local TeamBtn = CreateButton("Team Check: OFF", UDim2.new(0.05, 0, 0.22, 0))
local FlyBtn = CreateButton("Fly: OFF", UDim2.new(0.05, 0, 0.32, 0))
-- Função auxiliar para Sliders
local function CreateSlider(labelStr, pos, defaultVal)
local label = Instance.new("TextLabel", Frame)
label.Size = UDim2.new(1, 0, 0, 20)
label.Position = pos
label.Text = labelStr .. math.floor(defaultVal * 100) .. "%"
label.BackgroundTransparency = 1
label.TextColor3 = Color3.new(1, 1, 1)
label.Font = Enum.Font.Gotham
label.TextSize = 12
local back = Instance.new("Frame", Frame)
back.Size = UDim2.new(0.8, 0, 0, 6)
back.Position = pos + UDim2.new(0.1, 0, 0, 20)
back.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
local bar = Instance.new("Frame", back)
bar.Size = UDim2.new(defaultVal, 0, 1, 0)
bar.BackgroundColor3 = Color3.fromRGB(0, 255, 150)
bar.BorderSizePixel = 0
return label, back, bar
end
local AimLabel, AimBack, AimBar = CreateSlider("Precisão Aimbot: ", UDim2.new(0, 0, 0.45, 0), 0.55)
local FlyLabel, FlyBack, FlyBar = CreateSlider("Velocidade Fly: ", UDim2.new(0, 0, 0.65, 0), 0.50)
-- Lógica dos Sliders
local function SetupSlider(back, bar, label, prefix, callback)
local drag = false
back.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then drag = true end end)
UserInputService.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then drag = false end end)
UserInputService.InputChanged:Connect(function(i)
if drag and i.UserInputType == Enum.UserInputType.MouseMovement then
local percent = math.clamp((i.Position.X - back.AbsolutePosition.X) / back.AbsoluteSize.X, 0, 1)
if percent < 0.01 then percent = 0.01 end
bar.Size = UDim2.new(percent, 0, 1, 0)
label.Text = prefix .. math.floor(percent * 100) .. "%"
callback(percent)
end
end)
end
SetupSlider(AimBack, AimBar, AimLabel, "Precisão Aimbot: ", function(v) Accuracy = v end)
SetupSlider(FlyBack, FlyBar, FlyLabel, "Velocidade Fly: ", function(v) FlySpeed = v end)
-- Lógica de Botões
AimbotBtn.MouseButton1Click:Connect(function()
AimbotEnabled = not AimbotEnabled
AimbotBtn.Text = "Aimbot: " .. (AimbotEnabled and "ON" or "OFF")
AimbotBtn.BackgroundColor3 = AimbotEnabled and Color3.fromRGB(50, 150, 50) or Color3.fromRGB(150, 50, 50)
end)
TeamBtn.MouseButton1Click:Connect(function()
TeamCheckEnabled = not TeamCheckEnabled
TeamBtn.Text = "Team Check: " .. (TeamCheckEnabled and "ON" or "OFF")
TeamBtn.BackgroundColor3 = TeamCheckEnabled and Color3.fromRGB(50, 150, 50) or Color3.fromRGB(150, 50, 50)
end)
FlyBtn.MouseButton1Click:Connect(function()
FlyEnabled = not FlyEnabled
FlyBtn.Text = "Fly: " .. (FlyEnabled and "ON" or "OFF")
FlyBtn.BackgroundColor3 = FlyEnabled and Color3.fromRGB(50, 150, 50) or Color3.fromRGB(150, 50, 50)
local char = LocalPlayer.Character
local root = char and char:FindFirstChild("HumanoidRootPart")
if not root then return end
if FlyEnabled then
BodyVelocity = Instance.new("BodyVelocity", root)
BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BodyVelocity.Velocity = Vector3.new(0,0,0)
BodyGyro = Instance.new("BodyGyro", root)
BodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
BodyGyro.CFrame = root.CFrame
else
if BodyVelocity then BodyVelocity:Destroy() end
if BodyGyro then BodyGyro:Destroy() end
end
end)
-- === MOTOR LOOP ===
RunService.RenderStepped:Connect(function()
local char = LocalPlayer.Character
local root = char and char:FindFirstChild("HumanoidRootPart")
-- Lógica Fly
if FlyEnabled and root and BodyVelocity and BodyGyro then
local moveDir = Vector3.new(0,0,0)
if UserInputService:IsKeyDown(Enum.KeyCode.W) then moveDir = moveDir + Camera.CFrame.LookVector end
if UserInputService:IsKeyDown(Enum.KeyCode.S) then moveDir = moveDir - Camera.CFrame.LookVector end
if UserInputService:IsKeyDown(Enum.KeyCode.A) then moveDir = moveDir - Camera.CFrame.RightVector end
if UserInputService:IsKeyDown(Enum.KeyCode.D) then moveDir = moveDir + Camera.CFrame.RightVector end
BodyVelocity.Velocity = moveDir * (FlySpeed * 200) -- Escala de velocidade
BodyGyro.CFrame = Camera.CFrame
end
-- Lógica Aimbot (Otimizada)
if AimbotEnabled then
local target = nil
local shortestDist = math.huge
for _, p in pairs(Players:GetPlayers()) do
if p ~= LocalPlayer and p.Character and p.Character:FindFirstChild("Head") then
if TeamCheckEnabled and p.Team == LocalPlayer.Team then continue end
local pos, onScreen = Camera:WorldToViewportPoint(p.Character.Head.Position)
if onScreen then
local dist = (Vector2.new(pos.X, pos.Y) - Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)).Magnitude
if dist < shortestDist then target = p.Character.Head shortestDist = dist end
end
end
end
if target and math.random() <= Accuracy then
Camera.CFrame = CFrame.new(Camera.CFrame.Position, target.Position)
end
end
end)
Comments
No comments yet
Be the first to share your thoughts!