0% found this document useful (0 votes)
21 views8 pages

Nullsaken ESP Script Overview

The document contains a Lua script for a game that implements an ESP (Extra Sensory Perception) feature, allowing players to see other players and objects through visual indicators. It sets up various visual elements such as player names, health bars, and distance indicators, along with customizable settings for appearance and functionality. The script also includes functionality for handling player additions and removals, as well as optimizations for rendering performance.

Uploaded by

vimems522
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)
21 views8 pages

Nullsaken ESP Script Overview

The document contains a Lua script for a game that implements an ESP (Extra Sensory Perception) feature, allowing players to see other players and objects through visual indicators. It sets up various visual elements such as player names, health bars, and distance indicators, along with customizable settings for appearance and functionality. The script also includes functionality for handling player additions and removals, as well as optimizations for rendering performance.

Uploaded by

vimems522
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

--[Main Variables]

local plrs = game["Players"]


local rs = game["RunService"]
local client = {}

for I,V in pairs(getgc(true)) do


if type(V) == "table" then
if rawget(V, "gammo") then
[Link] = V
elseif rawget(V,"basecframe") then
[Link] = V
elseif rawget(V,"setbasewalkspeed") then
[Link] = V
elseif rawget(V,"updateammo") then
[Link] = V
end
elseif type(V) == "function" then
if [Link](V).name == "getbodyparts" then
[Link] = [Link](V, 1)
end
end
if [Link] and [Link] and [Link] and [Link] then
break end
end

local plr = [Link]


local mouse = plr:GetMouse()
local camera = [Link]
local worldToViewportPoint = [Link]

--[Optimisation Variables]

local Drawingnew = [Link]


local Color3fromRGB = [Link]
local Vector3new = [Link]
local Vector2new = [Link]
local mathfloor = [Link]
local mathceil = [Link]

--[Setup Table]

local img_link =
"[Link]
rs:fit:1200:1200:1/g:ce/aHR0cHM6Ly9pbWcx/LmNndHJhZGVyLmNv/bS9pdGVtcy8yNzQz/
MjE3L2ExNzMxNDcw/YTAvYW1vbmctdXMt/aW1wb3N0b3ItcGFj/ay0zZC1tb2RlbC1s/
b3ctcG9seS1yaWdn/ZWQtZmJ4LW1hLXNw/cC1tZWwtdGJzY2Vu/ZS5qcGc"

writefile("[Link]", img_link)

local img_tt = readfile("[Link]")

local esp = {
players = {},
objects = {},
chams = {},
enabled = true,
teamcheck = false,
fontsize = 13,
font = 2,
settings = {
name = {enabled = true, outline = true, displaynames = true, color =
Color3fromRGB(255, 255, 255)},
box = {enabled = true, outline = true, filled = false, color =
Color3fromRGB(255, 255, 255)},
imagebox = {enabled = false, image = img_tt},
healthbar = {enabled = true, size = 1, outline = true},
healthtext = {enabled = true, outline = true, color = Color3fromRGB(255,
255, 255)},
distance = {enabled = true, outline = true, color = Color3fromRGB(255, 255,
255)},
viewangle = {enabled = true, outline = true, color = Color3fromRGB(255,
255, 255)},
},
settings_chams = {
enabled = true,
outline = true,
fill_color = Color3fromRGB(255, 255, 255),
outline_color = Color3fromRGB(0, 0, 0),
fill_transparency = 1,
outline_transparency = 1,
autocolor = true,
autocolor_outline = true,
settings_autocolor = {
visible = Color3fromRGB(0, 255, 0),
visibleFillTransparency = 0.5,
visibleOutlineTransparency = 0.5,
invisible = Color3fromRGB(255, 0, 0),
invisibleFillTransparency = 1,
invisibleOutlineTransparency = 0
}
}
}

local self_cham = {
enabled = true,
outline = true,
fill_color = Color3fromRGB(255, 255, 255),
fill_transparency = 0.5,
outline_color = Color3fromRGB(0, 0, 0),
outline_transparency = 0,
}

local self_cham_instance = [Link]("Highlight", [Link])

[Link] = function(type, properties)


local newDrawing = Drawingnew(type)

for i,v in next, properties or {} do


newDrawing[i] = v
end

return newDrawing
end

[Link] = function(properties)
local newCham = [Link]("Highlight", [Link])

for i,v in next, properties or {} do


newCham[i] = v
end
print("new")

return newCham
end

function IsAlive(player)
if [Link][player] and [Link][player].head then
return true
end
return false
end

[Link] = function(player)
if IsAlive(player) and [Link][player] then
local HeadPos = [Link][player].[Link]
local Hit = workspace:FindPartOnRayWithIgnoreList([Link]([Link].p,
HeadPos - [Link].p), {
[Link],
[Link],
[Link],
camera,
[Link]
})
return Hit == nil
end
return false
end

[Link] = function(v)
if [Link] == [Link] then
return true
end

return false
end

function [Link](Player)
return [Link]:getplayerhealth(Player)
end
function [Link](Player)
local Character = [Link][Player]

return Character and [Link], Character and [Link]


end

[Link] = function(v)
[Link][v] = {
name = [Link]("Text", {Color = Color3fromRGB(255, 255, 255),
Outline = true, Center = true, Size = 13, Font = 2}),
boxOutline = [Link]("Square", {Color = Color3fromRGB(0, 0, 0),
Thickness = 3}),
box = [Link]("Square", {Color = Color3fromRGB(255, 255, 255),
Thickness = 1}),
image = [Link]("Image", {Data = game:HttpGet(img_link)}),
healthBarOutline = [Link]("Line", {Color = Color3fromRGB(0, 0, 0),
Thickness = 3}),
healthBar = [Link]("Line", {Color = Color3fromRGB(255, 255, 255),
Thickness = 1}),
healthText = [Link]("Text", {Color = Color3fromRGB(255, 255, 255),
Outline = true, Center = true, Size = 13, Font = 2}),
distance = [Link]("Text", {Color = Color3fromRGB(255, 255, 255),
Outline = true, Center = true, Size = 13, Font = 2}),
viewAngle = [Link]("Line", {Color = Color3fromRGB(255, 255, 255),
Thickness = 1}),
cham = [Link]({FillColor = esp.settings_chams.fill_color, OutlineColor
= esp.settings_chams.outline_color, FillTransparency =
esp.settings_chams.fill_transparency, OutlineTransparency =
esp.settings_chams.outline_transparency})
}
end

for _,v in ipairs(plrs:GetPlayers()) do


if v ~= plr then
[Link](v)
end
end

[Link]:Connect(function(v)
[Link](v)
end)

[Link]:Connect(function(v)
for i2,v2 in pairs([Link][v]) do
pcall(function()
v2:Remove()
v2:Destroy()
end)
end

[Link][v] = nil
end)

local mainLoop = [Link]:Connect(function()


for i,v in pairs([Link]) do
local character,torso = [Link](i)
if i ~= plr and character and torso then
local hrp = torso -- btw this is just torso not hrp too lazy i dont
wanna change a lot of things
local head = [Link][i].head
local Health,MaxHealth = [Link](i)

local Vector, onScreen = camera:WorldToViewportPoint([Link])

local Size = (camera:WorldToViewportPoint([Link] - Vector3new(0,


3, 0)).Y - camera:WorldToViewportPoint([Link] + Vector3new(0, 2.6, 0)).Y) / 2
local BoxSize = Vector2new(mathfloor(Size * 1.5), mathfloor(Size *
1.9))
local BoxPos = Vector2new(mathfloor(Vector.X - Size * 1.5 / 2),
mathfloor(Vector.Y - Size * 1.6 / 2))

local BottomOffset = BoxSize.Y + BoxPos.Y + 1


if onScreen and esp.settings_chams.enabled then -- not sure ab this
[Link] = [Link]
[Link] = esp.settings_chams.enabled
[Link] = esp.settings_chams.autocolor and
[Link](i) and
esp.settings_chams.settings_autocolor.visibleOutlineTransparency or
esp.settings_chams.autocolor and not [Link](i) and
esp.settings_chams.settings_autocolor.invisibleOutlineTransparency or
esp.settings_chams.outline and esp.settings_chams.outline_transparency
[Link] = esp.settings_chams.autocolor and
esp.settings_chams.autocolor_outline and [Link](i) and
esp.settings_chams.settings_autocolor.visible or esp.settings_chams.autocolor and
esp.settings_chams.autocolor_outline and not [Link](i) and
esp.settings_chams.settings_autocolor.invisible or esp.settings_chams.outline_color
[Link] = esp.settings_chams.autocolor and
[Link](i) and esp.settings_chams.settings_autocolor.visible or
esp.settings_chams.autocolor and not [Link](i) and
esp.settings_chams.settings_autocolor.invisible or esp.settings_chams.fill_color
[Link] = esp.settings_chams.autocolor and
[Link](i) and esp.settings_chams.settings_autocolor.visibleFillTransparency
or esp.settings_chams.autocolor and not [Link](i) and
esp.settings_chams.settings_autocolor.invisibleFillTransparency or
esp.settings_chams.fill_transparency
else
[Link] = false
end

if onScreen and [Link] then


if [Link] then
[Link] = Vector2new(BoxSize.X / 2 + BoxPos.X, BoxPos.Y
- 16)
[Link] = [Link]
[Link] = [Link]

[Link] = [Link]
[Link] = [Link]

if [Link] then
[Link] = [Link]
else
[Link] = [Link]
end

[Link] = true
else
[Link] = false
end

if [Link] and [Link] and


[Link]:FindFirstChild("HumanoidRootPart") then
[Link] = Vector2new(BoxSize.X / 2 + BoxPos.X,
BottomOffset)
[Link] = [Link]
[Link] = "[" .. mathfloor(([Link] -
[Link]).Magnitude) .. "m]"
[Link] = [Link]
BottomOffset = BottomOffset + 15

[Link] = [Link]
[Link] = [Link]

[Link] = true
else
[Link] = false
end

if [Link] then
[Link] = BoxSize
[Link] = BoxPos
[Link] = [Link]

[Link] = BoxSize
[Link] = BoxPos
[Link] = [Link]
[Link] = true
else
[Link] = false
[Link] = false
end

if [Link] then
[Link] = BoxSize
[Link] = BoxPos
[Link] = true
else
[Link] = false
end

if [Link] then
[Link] = Vector2new((BoxPos.X - 5), BoxPos.Y +
BoxSize.Y)
[Link] = Vector2new([Link].X,
[Link].Y - (Health / MaxHealth) * BoxSize.Y)
[Link] = Color3fromRGB(255 - 255 / (MaxHealth /
Health), 255 / (MaxHealth / Health), 0)
[Link] = true
[Link] = [Link]

[Link] = Vector2new([Link].X,
BoxPos.Y + BoxSize.Y + 1)
[Link] = Vector2new([Link].X,
([Link].Y - 1 * BoxSize.Y) -1)
[Link] = [Link]
[Link] = [Link] + 2
else
[Link] = false
[Link] = false
end

if [Link] then
[Link] = tostring(mathfloor((Health / MaxHealth) *
100 + 0.5))
[Link] = Vector2new((BoxPos.X - 20), (BoxPos.Y +
BoxSize.Y - 1 * BoxSize.Y) -1)
[Link] = [Link]
[Link] = [Link]

[Link] = [Link]
[Link] = [Link]

[Link] = true
else
[Link] = false
end

if [Link] and head and [Link] then


[Link] =
Vector2new(camera:worldToViewportPoint([Link].p).X,
camera:worldToViewportPoint([Link].p).Y)
[Link] =
Vector2new(camera:worldToViewportPoint(([Link] + ([Link] *
10)).p).X, camera:worldToViewportPoint(([Link] + ([Link] *
10)).p).Y)
[Link] = [Link]
[Link] = true
else
[Link] = false
end

if [Link] then
if [Link](i) then
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
else
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
end
end
else
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
end
else
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = false
end
end
end)

getgenv().esp = esp
getgenv().self_cham = self_cham

You might also like