Run it
Copy the script and paste it into your executor.
.()
Players = :()
Workspace = :()
RunService = :()
UserInputService = :()
Camera = .CurrentCamera
LocalPlayer = Players.LocalPlayer
playerGui = LocalPlayer:()
CONFIG = {
Enabled = ,
MaxDistance = ,
ShowName = ,
ShowDistance = ,
BoxESP = ,
BoxColor = .(, , ),
TextColor = .(, , ),
}
espMap = {}
itemsFolder = Workspace:()
scanThread =
renderConn =
gui =
(obj)
obj obj.Parent
obj:()
obj:()
obj:() ~=
()
items = {}
itemsFolder items
(parent)
_, child (parent:())
(child)
.(items, child)
child:() child:()
(child)
(itemsFolder)
items
(item)
espMap[item]
box = .()
box.Visible =
box.Color = CONFIG.BoxColor
box.Thickness =
box.Filled =
text = .()
text.Visible =
text.Color = CONFIG.TextColor
text.Size =
text.Center =
text.Outline =
text.OutlineColor = .(,,)
text.Font =
espMap[item] = {Box = box, Text = text}
(item)
d = espMap[item]
d
d.Box:()
d.Text:()
espMap[item] =
(item)
item:()
item.Position
item:()
p = item.PrimaryPart item:() item:()
p p.Position
()
itemsFolder
itemsFolder = Workspace:()
itemsFolder
current = ()
item, _ (espMap)
item.Parent
(item)
_, item (current)
espMap[item]
(item)
()
.()
()
()
CONFIG.Enabled
_, d (espMap)
d.Box.Visible =
d.Text.Visible =
char = LocalPlayer.Character
char
root = char:()
root
myPos = root.Position
item, d (espMap)
item item.Parent
(item)
pos = (item)
pos
d.Box.Visible =
d.Text.Visible =
dist = (pos - myPos).Magnitude
dist > CONFIG.MaxDistance
d.Box.Visible =
d.Text.Visible =
vec, onScreen = Camera:(pos)
onScreen
d.Box.Visible =
d.Text.Visible =
CONFIG.BoxESP
scale = / (vec.Z * + )
sz = .( * scale, * scale)
d.Box.Position = .(vec.X - sz.X/, vec.Y - sz.Y/)
d.Box.Size = sz
d.Box.Visible =
d.Box.Color = CONFIG.BoxColor
d.Box.Visible =
txt = item.Name
CONFIG.ShowDistance
txt = txt .. .. .(dist) ..
d.Text.Text = txt
d.Text.Position = .(vec.X, vec.Y - )
d.Text.Visible = CONFIG.ShowName CONFIG.ShowDistance
d.Text.Color = CONFIG.TextColor
()
gui gui.Parent gui:()
screenGui = .()
screenGui.Name =
screenGui.Parent = playerGui
screenGui.ResetOnSpawn =
frame = .()
frame.Size = .(, , , )
frame.Position = .(, -, , -)
frame.BackgroundColor3 = .(,,)
frame.BackgroundTransparency =
frame.Active =
frame.Draggable =
frame.Parent = screenGui
.().CornerRadius = .(, )
title = .()
title.Size = .(,,,)
title.BackgroundColor3 = .(,,)
title.Text =
title.TextColor3 = .(,,)
title.TextSize =
title.Font = .Font.GothamBold
title.Parent = frame
.().CornerRadius = .(, )
toggleBtn = .()
toggleBtn.Size = .(, , , )
toggleBtn.Position = .(, , , )
toggleBtn.BackgroundColor3 = CONFIG.Enabled .(,,) .(,,)
toggleBtn.Text = CONFIG.Enabled
toggleBtn.TextColor3 = .(,,)
toggleBtn.TextSize =
toggleBtn.Font = .Font.GothamBold
toggleBtn.Parent = frame
.().CornerRadius = .(, )
toggleBtn.MouseButton1Click:(()
CONFIG.Enabled = CONFIG.Enabled
toggleBtn.Text = CONFIG.Enabled
toggleBtn.BackgroundColor3 = CONFIG.Enabled .(,,) .(,,)
)
info = .()
info.Size = .(, -, , )
info.Position = .(, , , -)
info.BackgroundTransparency =
info.Text =
info.TextColor3 = .(,,)
info.TextSize =
info.Font = .Font.Gotham
info.Parent = frame
gui = screenGui
UserInputService.InputBegan:((i, gp)
gp
i.KeyCode == .KeyCode.RightShift gui
gui.Enabled = gui.Enabled
)
.(()
()
.()
itemsFolder = Workspace:()
itemsFolder
()
()
scanThread = .(autoScanLoop)
()
renderConn = RunService.RenderStepped:(updateESP)
)
()all item esp with button ( keyless)