Run it
Copy the script and paste it into your executor.
Settings = {
Box_Thickness = ,
Autothickness =
}
Space = :()
Player = :().LocalPlayer
Camera = Space.CurrentCamera
PlayerGui = Player:()
espActive =
allConnections = {}
allParts = {}
allDrawings = {}
(ratio)
ratio = .(ratio, , )
ratio >=
t = ( - ratio) *
.(t, , )
t = ratio *
.(, t, )
(color, thickness)
line = .()
line.Visible =
line.From = .(,)
line.To = .(,)
line.Color = color
line.Thickness = thickness
line.Transparency =
line
(size)
t = .()
t.Visible =
t.Center =
t.Outline =
t.Size = size
t.Font = .Fonts.UI
t.Transparency =
t.Color = .(,,)
t
(lib, state)
_, v (lib) v.Visible = state
(lib, color)
_, v (lib) v.Color = color
(plr)
() plr.Character ~=
plr.Character:() ~=
Library = {
TL1 = (.(,,), Settings.Box_Thickness),
TL2 = (.(,,), Settings.Box_Thickness),
TR1 = (.(,,), Settings.Box_Thickness),
TR2 = (.(,,), Settings.Box_Thickness),
BL1 = (.(,,), Settings.Box_Thickness),
BL2 = (.(,,), Settings.Box_Thickness),
BR1 = (.(,,), Settings.Box_Thickness),
BR2 = (.(,,), Settings.Box_Thickness),
}
nameText = ()
hpText = ()
distText = ()
_, v (Library) .(allDrawings, v)
.(allDrawings, nameText)
.(allDrawings, hpText)
.(allDrawings, distText)
oripart = .()
oripart.Parent = Space
oripart.Transparency =
oripart.CanCollide =
oripart.Anchored =
oripart.Size = .(,,)
.(allParts, oripart)
()
c
c = :().RenderStepped:(()
char = plr.Character
hum = char char:()
hrp = char char:()
espActive
(Library, )
nameText.Visible =
hpText.Visible =
distText.Visible =
char hum hrp hum.Health >
_, vis = Camera:(hrp.Position)
vis
teamCol = plr.Team plr.TeamColor.Color .(,,)
(Library, teamCol)
oripart.Size = .(hrp.Size.X, hrp.Size.Y * , hrp.Size.Z)
oripart.CFrame = .(hrp.CFrame.Position, Camera.CFrame.Position)
SizeX = oripart.Size.X
SizeY = oripart.Size.Y
TL = Camera:((oripart.CFrame * .( SizeX, SizeY, )).p)
TR = Camera:((oripart.CFrame * .(-SizeX, SizeY, )).p)
BL = Camera:((oripart.CFrame * .( SizeX, -SizeY, )).p)
BR = Camera:((oripart.CFrame * .(-SizeX, -SizeY, )).p)
ratio = (Camera.CFrame.p - hrp.Position).Magnitude
offset = .(/ratio * , , )
Library.TL1.From = .(TL.X,TL.Y) ; Library.TL1.To = .(TL.X+offset,TL.Y)
Library.TL2.From = .(TL.X,TL.Y) ; Library.TL2.To = .(TL.X,TL.Y+offset)
Library.TR1.From = .(TR.X,TR.Y) ; Library.TR1.To = .(TR.X-offset,TR.Y)
Library.TR2.From = .(TR.X,TR.Y) ; Library.TR2.To = .(TR.X,TR.Y+offset)
Library.BL1.From = .(BL.X,BL.Y) ; Library.BL1.To = .(BL.X+offset,BL.Y)
Library.BL2.From = .(BL.X,BL.Y) ; Library.BL2.To = .(BL.X,BL.Y-offset)
Library.BR1.From = .(BR.X,BR.Y) ; Library.BR1.To = .(BR.X-offset,BR.Y)
Library.BR2.From = .(BR.X,BR.Y) ; Library.BR2.To = .(BR.X,BR.Y-offset)
(Library, )
Settings.Autothickness
lhrp = Player.Character Player.Character:()
dist = lhrp (lhrp.Position - hrp.Position).Magnitude
val = .(/dist * , , )
_, x (Library) x.Thickness = val
_, x (Library) x.Thickness = Settings.Box_Thickness
topY = .(TL.Y, TR.Y)
botY = .(BL.Y, BR.Y)
midX = (TL.X + TR.X) /
nameText.Text = plr.DisplayName
nameText.Color = teamCol
nameText.Position = .(midX, topY - )
nameText.Visible =
hpRatio = .(hum.Health / hum.MaxHealth, , )
hpText.Text = .(hum.Health) .. .. .(hum.MaxHealth)
hpText.Color = (hpRatio)
hpText.Position = .(midX, botY + )
hpText.Visible =
lhrp2 = Player.Character Player.Character:()
studs = lhrp2 .((hrp.Position - lhrp2.Position).Magnitude)
distText.Text = (studs)
distText.Color = teamCol
distText.Position = .(midX, botY + )
distText.Visible =
(Library, )
nameText.Visible =
hpText.Visible =
distText.Visible =
(Library, )
nameText.Visible =
hpText.Visible =
distText.Visible =
:():(plr.Name) ==
_, v (Library) v:()
nameText:() ; hpText:() ; distText:()
oripart:()
c:()
)
.(allConnections, c)
.(Updater)()
gui = .(, PlayerGui)
gui.Name =
gui.ResetOnSpawn =
gui.ZIndexBehavior = .ZIndexBehavior.Sibling
panel = .(, gui)
panel.Size = .(, , , )
panel.Position = .(, , , -)
panel.BackgroundColor3 = .(, , )
panel.BorderSizePixel =
panel.Active =
panel.Draggable =
.(, panel).CornerRadius = .(, )
stroke = .(, panel)
stroke.Color = .(, , ) ; stroke.Thickness =
titleBar = .(, panel)
titleBar.Size = .(, , , )
titleBar.BackgroundColor3 = .(, , )
titleBar.BorderSizePixel =
.(, titleBar).CornerRadius = .(, )
titleLbl = .(, titleBar)
titleLbl.Size = .(, -, , )
titleLbl.Position = .(, , , )
titleLbl.BackgroundTransparency =
titleLbl.Text =
titleLbl.TextColor3 = .(, , )
titleLbl.TextSize =
titleLbl.Font = .Font.GothamBold
titleLbl.TextXAlignment = .TextXAlignment.Left
(yPos, text, r, g, b)
btn = .(, panel)
btn.Size = .(, -, , )
btn.Position = .(, , , yPos)
btn.BackgroundColor3 = .(r, g, b)
btn.BorderSizePixel =
btn.Text = text
btn.TextColor3 = .(,,)
btn.TextSize =
btn.Font = .Font.GothamBold
.(, btn).CornerRadius = .(, )
btn
toggleBtn = (, , , , )
closeBtn = (, , , , )
toggleBtn.MouseButton1Click:(()
espActive = espActive
espActive
toggleBtn.Text =
toggleBtn.BackgroundColor3 = .(, , )
toggleBtn.Text =
toggleBtn.BackgroundColor3 = .(, , )
)
closeBtn.MouseButton1Click:(()
_, c (allConnections) c:()
_, d (allDrawings) (() d:() )
_, p (allParts) (() p:() )
gui:()
)
_, v (:():())
v.Name ~= Player.Name .(Main)(v)
:().PlayerAdded:((newplr)
.(Main)(newplr)
)
Universal