0% found this document useful (0 votes)
435 views4 pages

Roblox Aimbot and ESP Script Guide

The document is a Lua script for a Roblox game that implements an aimbot, hitbox adjustments, and ESP (Extra Sensory Perception) features. It includes a GUI for toggling these features, checks for enemy players, and manages hitbox sizes and visibility. The script also handles new player additions and updates the ESP for existing players based on the settings.

Uploaded by

vitordcaldeira
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
435 views4 pages

Roblox Aimbot and ESP Script Guide

The document is a Lua script for a Roblox game that implements an aimbot, hitbox adjustments, and ESP (Extra Sensory Perception) features. It includes a GUI for toggling these features, checks for enemy players, and manages hitbox sizes and visibility. The script also handles new player additions and updates the ESP for existing players based on the settings.

Uploaded by

vitordcaldeira
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local Players = game:GetService("Players")

local RunService = game:GetService("RunService")


local Workspace = game:GetService("Workspace")
local Camera = [Link]
local LocalPlayer = [Link]

local AimbotEnabled = false


local HitboxEnabled = false
local ESPEnabled = false
local TeamCheck = false
local WallCheck = false
local HitboxSize = [Link](7, 7, 7)
local ESPBoxes = {}

-- GUI
local gui = [Link]("ScreenGui", [Link])
local frame = [Link]("Frame", gui)
[Link] = [Link](0, 280, 0, 320)
[Link] = [Link](0.5, -140, 0.1, 0)
frame.BackgroundColor3 = [Link](255, 255, 255)
[Link] = 0.25
[Link] = 0
[Link] = true
[Link] = true
[Link] = true
[Link] = [Link](0.5, 0)

local title = [Link]("TextLabel", frame)


[Link] = [Link](1, 0, 0, 30)
[Link] = "🐱 Guilherme Menu PRO"
title.TextColor3 = [Link](0, 0, 0)
[Link] = 1
[Link] = [Link]
[Link] = 18

-- Cria botão estilo Pedrox


local function makeButton(name, yPos, callback)
local btn = [Link]("TextButton", frame)
[Link] = [Link](0.9, 0, 0, 35)
[Link] = [Link](0.05, 0, 0, yPos)
btn.BackgroundColor3 = [Link](230, 230, 230)
btn.TextColor3 = [Link](0, 0, 0)
[Link] = [Link]
[Link] = 14
[Link] = name
[Link] = 0
[Link] = true
[Link] = true
btn.MouseButton1Click:Connect(callback)
return btn
end

-- Enemy check
local function isEnemy(player)
return player ~= LocalPlayer and [Link] and (not TeamCheck or
[Link] ~= [Link])
end

-- Hitbox logic
local function toggleHitbox()
for _, player in pairs(Players:GetPlayers()) do
if isEnemy(player) then
local part = [Link]:FindFirstChild("Head") or
[Link]:FindFirstChild("UpperTorso")
if part then
if HitboxEnabled then
[Link] = HitboxSize
[Link] = 0.6
[Link] = [Link]
[Link] = [Link]("Bright red")
[Link] = false
else
[Link] = [Link](1, 1, 1)
[Link] = 0
[Link] = [Link]
[Link] = [Link]("Medium stone grey")
end
end
end
end
end

-- ESP
local function createESP(player)
local box = [Link]("BoxHandleAdornment")
[Link] = "ESPBox"
[Link] = [Link](4, 6, 1)
box.Color3 = [Link](1, 0, 0)
[Link] = true
[Link] = 5
[Link] = 0.5
[Link] = [Link]
[Link] = [Link]
ESPBoxes[player] = box
end

local function removeESP(player)


if ESPBoxes[player] then
ESPBoxes[player]:Destroy()
ESPBoxes[player] = nil
end
end

-- Wall Check
local function wallCheck(part)
local origin = [Link]
local direction = ([Link] - origin).Unit * ([Link] -
origin).Magnitude
local params = [Link]()
[Link] = {[Link], Camera}
[Link] = [Link]

local result = Workspace:Raycast(origin, direction, params)


return not result or [Link]:IsDescendantOf([Link])
end

-- Aimbot
local function getTarget()
local closest, shortest = nil, [Link]
for _, player in pairs(Players:GetPlayers()) do
if isEnemy(player) and [Link] then
local head = [Link]:FindFirstChild("Head")
if head then
local pos, onScreen =
Camera:WorldToViewportPoint([Link])
if onScreen then
local dist = ([Link](pos.X, pos.Y) -
[Link]([Link].X / 2, [Link].Y / 2)).Magnitude
if dist < shortest and (not WallCheck or
wallCheck(head)) then
closest = head
shortest = dist
end
end
end
end
end
return closest
end

-- Aimbot Lock
[Link]:Connect(function()
if AimbotEnabled then
local target = getTarget()
if target then
[Link] = [Link]([Link],
[Link])
end
end
end)

-- Botões
makeButton("Ativar/Desativar Aimbot", 0.15, function()
AimbotEnabled = not AimbotEnabled
end)

makeButton("Ativar/Desativar Hitbox", 0.30, function()


HitboxEnabled = not HitboxEnabled
toggleHitbox()
end)

makeButton("ESP: ON/OFF", 0.45, function()


ESPEnabled = not ESPEnabled
for _, p in pairs(Players:GetPlayers()) do
if p ~= LocalPlayer and [Link] then
if ESPEnabled and not [Link]:FindFirstChild("ESPBox") then
createESP(p)
elseif not ESPEnabled then
removeESP(p)
end
end
end
end)

makeButton("Team Check: ON/OFF", 0.60, function()


TeamCheck = not TeamCheck
end)
makeButton("Wall Check: ON/OFF", 0.75, function()
WallCheck = not WallCheck
end)

-- Jogadores novos
[Link]:Connect(function(player)
[Link]:Connect(function()
wait(1)
if HitboxEnabled then toggleHitbox() end
if ESPEnabled then createESP(player) end
end)
end)

for _, player in pairs(Players:GetPlayers()) do


if player ~= LocalPlayer then
if [Link] and ESPEnabled then createESP(player) end
end
end

You might also like