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

Roblox Aimbot and ESP Script Guide

The document is a Lua script for a player tracking aimbot in a game, featuring settings for aimbot activation, field of view (FOV), and ESP (Extra Sensory Perception) functionalities. It creates a user interface with buttons to toggle aimbot and ESP, and displays player boxes and names on the screen. The script also includes functionality for dragging the GUI and updating player ESP when they join or leave the game.

Uploaded by

stormylol0010
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)
524 views4 pages

Roblox Aimbot and ESP Script Guide

The document is a Lua script for a player tracking aimbot in a game, featuring settings for aimbot activation, field of view (FOV), and ESP (Extra Sensory Perception) functionalities. It creates a user interface with buttons to toggle aimbot and ESP, and displays player boxes and names on the screen. The script also includes functionality for dragging the GUI and updating player ESP when they join or leave the game.

Uploaded by

stormylol0010
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 UserInputService = game:GetService("UserInputService")


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

local LocalPlayer = [Link]


local Mouse = LocalPlayer:GetMouse()

local Settings = {
Aimbot = false,
ToggleKey = [Link].MouseButton2,
FOV = 200,
SnapSpeed = 0.25,
TeamCheck = true,
AimPart = "Head",
ESP = true
}

local ESPBoxes = {}
local ESPNames = {}

local ScreenGui = [Link]("ScreenGui")


[Link] = "TrackingAimbot"
[Link] = [Link]

local MainFrame = [Link]("Frame")


[Link] = [Link](0, 220, 0, 180)
[Link] = [Link](0, 10, 0, 10)
MainFrame.BackgroundColor3 = [Link](35, 35, 35)
[Link] = 0
[Link] = ScreenGui

local UICorner = [Link]("UICorner")


[Link] = [Link](0, 10)
[Link] = MainFrame

local Title = [Link]("TextLabel")


[Link] = [Link](1, 0, 0, 35)
[Link] = 1
[Link] = "PLAYER TRACKER AIMBOT"
Title.TextColor3 = [Link](0, 1, 1)
[Link] = true
[Link] = [Link]
[Link] = MainFrame

local ToggleAimbot = [Link]("TextButton")


[Link] = [Link](1, -20, 0, 35)
[Link] = [Link](0, 10, 0, 45)
ToggleAimbot.BackgroundColor3 = [Link](200, 0, 0)
[Link] = "AIMBOT: OFF"
ToggleAimbot.TextColor3 = [Link](1, 1, 1)
[Link] = true
[Link] = [Link]
[Link] = MainFrame

local ToggleESP = [Link]("TextButton")


[Link] = [Link](1, -20, 0, 35)
[Link] = [Link](0, 10, 0, 90)
ToggleESP.BackgroundColor3 = [Link](0, 100, 200)
[Link] = "ESP: ON"
ToggleESP.TextColor3 = [Link](1, 1, 1)
[Link] = true
[Link] = [Link]
[Link] = MainFrame

local FOVLabel = [Link]("TextLabel")


[Link] = [Link](1, -20, 0, 30)
[Link] = [Link](0, 10, 0, 135)
[Link] = 1
[Link] = "FOV: 200"
FOVLabel.TextColor3 = [Link](1, 1, 1)
[Link] = true
[Link] = MainFrame

local FOVCircle = [Link]("Circle")


[Link] = 2
[Link] = 50
[Link] = [Link]
[Link] = false
[Link] = [Link](0, 255, 255)
[Link] = 0.6
[Link] = true

local function GetClosestPlayer()


local Closest = nil
local Shortest = [Link]

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


if player ~= LocalPlayer and [Link] and
[Link]:FindFirstChild("HumanoidRootPart") then
if [Link] and [Link] == [Link] then continue end

local part = [Link]:FindFirstChild([Link]) or


[Link]:FindFirstChild("Head")
if part then
local pos, onScreen = Camera:WorldToViewportPoint([Link])
if onScreen then
local dist = ([Link](pos.X, pos.Y) - [Link](Mouse.X,
Mouse.Y)).Magnitude
if dist < Shortest then
Closest = player
Shortest = dist
end
end
end
end
end
return Closest
end

local function CreateESP(player)


if ESPBoxes[player] then return end

local Box = [Link]("Square")


[Link] = 2
[Link] = false
[Link] = [Link](255, 0, 0)
[Link] = 1
local Name = [Link]("Text")
[Link] = 16
[Link] = true
[Link] = true
[Link] = [Link](255, 255, 255)
[Link] = 2

ESPBoxes[player] = Box
ESPNames[player] = Name
end

[Link]:Connect(function()
[Link] = [Link](Mouse.X, Mouse.Y + 36)

for player, box in pairs(ESPBoxes) do


if [Link] and [Link]:FindFirstChild("HumanoidRootPart") and
[Link] then
local root = [Link]
local head = [Link]:FindFirstChild("Head")
if head then
local headPos, onScreen = Camera:WorldToViewportPoint([Link])
if onScreen then
local size = (Camera:WorldToViewportPoint([Link] - [Link](0,
3, 0)).Y - Camera:WorldToViewportPoint([Link] + [Link](0, 3, 0)).Y) / 2
[Link] = [Link](size * 2, size * 4)
[Link] = [Link](headPos.X - size, headPos.Y - size * 2)
[Link] = true
[Link] = [Link] == [Link] and [Link](0, 255, 0)
or [Link](255, 0, 0)

ESPNames[player].Text = [Link]
ESPNames[player].Position = [Link](headPos.X, headPos.Y - size * 2 -
20)
ESPNames[player].Visible = true
else
[Link] = false
ESPNames[player].Visible = false
end
end
else
[Link] = false
ESPNames[player].Visible = false
end
end

if [Link] then
local target = GetClosestPlayer()
if target and [Link] then
local part = [Link]:FindFirstChild([Link]) or
[Link]:FindFirstChild("Head")
if part then
local pos = Camera:WorldToViewportPoint([Link])
local delta = [Link](pos.X - Mouse.X, pos.Y - Mouse.Y - 36)
mousemoverel(delta.X * [Link], delta.Y * [Link])
end
end
end
end)
for _, player in pairs(Players:GetPlayers()) do
if player ~= LocalPlayer then CreateESP(player) end
end
[Link]:Connect(CreateESP)
[Link]:Connect(function(player)
if ESPBoxes[player] then ESPBoxes[player]:Remove() end
if ESPNames[player] then ESPNames[player]:Remove() end
end)

ToggleAimbot.MouseButton1Click:Connect(function()
[Link] = not [Link]
[Link] = "AIMBOT: " .. ([Link] and "ON" or "OFF")
ToggleAimbot.BackgroundColor3 = [Link] and [Link](0, 170, 0) or
[Link](200, 0, 0)
end)

ToggleESP.MouseButton1Click:Connect(function()
[Link] = not [Link]
[Link] = "ESP: " .. ([Link] and "ON" or "OFF")
ToggleESP.BackgroundColor3 = [Link] and [Link](0, 100, 200) or
[Link](100, 0, 0)
end)

[Link]:Connect(function(input)
if [Link] == [Link] then
[Link] = not [Link]
[Link] = "AIMBOT: " .. ([Link] and "ON" or "OFF")
ToggleAimbot.BackgroundColor3 = [Link] and [Link](0, 170, 0)
or [Link](200, 0, 0)
end
end)

-- DRAG GUI
local dragging = false
local dragInput, dragStart, startPos

[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 then
dragging = true
dragStart = [Link]
startPos = [Link]
end
end)

[Link]:Connect(function(input)
if dragging and [Link] == [Link] then
local delta = [Link] - dragStart
[Link] = [Link]([Link], [Link] + delta.X,
[Link], [Link] + delta.Y)
end
end)

[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 then
dragging = false
end
end)

You might also like