Run it
Copy the script and paste it into your executor.
().TeamESP (().TeamESP.destroy)
Players = :()
RunService = :()
UIS = :()
TweenService = :()
CollectionService = :()
ReplicatedStorage = :()
Teams = :()
LocalPlayer = Players.LocalPlayer
Camera = .CurrentCamera
CONFIG = {
keybind = .KeyCode.RightShift,
maxDistance = ,
spawnRadius = ,
teamCheck = ,
boxes = ,
corners = ,
names = ,
health = ,
distance = ,
tracers = ,
wallCheck = ,
teamColors = ,
debug = ,
teamColor = .(, , ),
enemyColor = .(, , ),
soloColor = .(, , ),
customTeamCheck = ,
}
C = {
bg = .(, , ),
panel = .(, , ),
surface = .(, , ),
stroke = .(, , ),
text = .(, , ),
muted = .(, , ),
accent = .(, , ),
team = CONFIG.teamColor,
enemy = CONFIG.enemyColor,
}
BORING = {
[] = , [] = ,
[] = , [] = ,
[] = , [] = , [] = ,
}
(class, props, parent)
inst = .(class)
k, v (props {}) inst[k] = v
parent inst.Parent = parent
inst
(inst)
ok = (()
inst.Parent = (gethui ()) :()
)
ok inst.Parent
inst.Parent = LocalPlayer:()
charFallback = {}
()
_, p (Players:())
p ~= LocalPlayer (p.Character p.Character.Parent)
found
_, d (:())
d:() d.Name:(p.Name, , )
found = d
charFallback[p] = found
charFallback[p] =
(plr)
ch = plr.Character
ch ch.Parent ch
charFallback[plr]
(char)
char ,
hum = char:()
root = char:()
char:()
char:()
char:()
root
_, d (char:())
d:() root = d
root, hum
ATTR_KEYS = {
, , , , , ,
, , , , , ,
, , , ,
}
TEAMISH = {
, , , , , ,
, , , , , ,
}
(v)
t = (v)
t == v.Name
t == v.Name
t == v
t == v ~= v
v == v ==
(v)
(inst)
_, k (ATTR_KEYS)
ok, v = (() inst:(k) )
ok
s = (v)
s s
(name)
n = name:()
_, w (TEAMISH)
n:(w, , )
(inst, depth)
ok, kids = (() inst:() )
ok
_, c (kids)
c:() (c.Name)
ok2, v = (() c.Value )
ok2
s = (v)
s s
depth >
_, c (kids)
c:() c:()
r = (c, depth - )
r r
(inst)
ok, tags = (() CollectionService:(inst) )
ok #tags ==
.(tags)
.(tags, )
rsIndex = { map = {}, at = }
()
now = .()
now - rsIndex.at <
rsIndex.at = now
map, seen = {},
(()
_, c (ReplicatedStorage:())
seen +=
seen >
c:()
ok, v = (() c.Value )
ok map[c.Name] = (v)
c:() c:() c:()
_, d (c:())
seen +=
seen >
d:()
ok, v = (() d.Value )
ok map[d.Name] = (v)
)
rsIndex.map = map
spawnAllies = {}
()
.(()
.()
myRoot = (LocalPlayer.Character)
myRoot
set, n = {},
_, p (Players:())
p ~= LocalPlayer
root = ((p))
root (root.Position - myRoot.Position).Magnitude <= CONFIG.spawnRadius
set[p.UserId] =
n +=
n >= n <=
spawnAllies = set
().TeamESP_lastSpawnGroup = n
)
SOURCES = {
{ name = , trust = , get = (p)
t = p.Team
t t.Name
},
{ name = , trust = , get = (p)
(p)
},
{ name = , trust = , get = (p)
ch = (p)
ch (ch)
},
{ name = , trust = , get = (p)
c = p.TeamColor
c
BORING[c.Name]
c.Name
},
{ name = , trust = , get = (p)
(p, )
},
{ name = , trust = , get = (p)
ch = (p)
ch (ch, )
},
{ name = , trust = , get = (p)
()
rsIndex.map[p.Name] rsIndex.map[(p.UserId)]
},
{ name = , trust = , get = (p)
ch = (p)
par = ch ch.Parent
par (par:() par:() par:())
par.Name
},
{ name = , trust = , get = (p)
ch = (p)
ch
shirt = ch:()
pants = ch:()
a, b = ,
shirt
ok, v = (() shirt.ShirtTemplate )
ok v a = v
pants
ok, v = (() pants.PantsTemplate )
ok v b = v
a == b ==
a .. .. b
},
{ name = , trust = , get = (p)
p == LocalPlayer
spawnAllies[p.UserId]
},
{ name = , trust = , get = (p)
ch = (p)
ch
bc = ch:()
bc
ok, c = (() bc.TorsoColor.Name )
ok c BORING[c] c
},
{ name = , trust = , get = (p) (p) },
{ name = , trust = , get = (p)
ch = (p)
ch (ch)
},
}
state = { candidates = {}, active = , forced = , overrides = {} }
(get, myKey)
set, n = {},
_, p (Players:())
p ~= LocalPlayer
ok, k = (get, p)
ok k == myKey
set[p] =
n +=
set, n
()
players = Players:()
mine = LocalPlayer
out = {}
_, s (SOURCES)
map, count = {},
_, p (players)
ok, k = (s.get, p)
ok k ~= k ~=
map[p] = k
count +=
myKey = map[mine]
myKey ~= count >=
groups, distinct = {},
p, k (map)
groups[k] ==
groups[k] = {}
distinct +=
.(groups[k], p)
same = .(#(groups[myKey] {}) - , )
others = .(count - , )
valid = distinct >= same >=
score =
valid
score = + .(distinct, ) * + .(same, )
+ ((others > same) ) + (s.trust )
distinct ==
sizes = {}
_, g (groups) .(sizes, #g)
.(sizes)
.(sizes[] - sizes[]) <= score +=
.(out, {
name = s.name, get = s.get, key = myKey,
same = same, others = others, distinct = distinct,
valid = valid, score = score, group = (myKey),
})
()
.(out, (a, b)
a.valid ~= b.valid a.valid
a.score > b.score
)
()
top = out[]
top top.valid
ref, refN = (top.get, top.key)
refN >
i = , .(#out, )
c = out[i]
c.valid
set, n = (c.get, c.key)
inter =
p (set) ref[p] inter +=
inter / .(refN + n - inter, ) >= c.score +=
()
state.candidates = out
()
state.active =
cands = state.candidates
#cands ==
state.forced
_, c (cands)
c.name == state.forced state.active = c
state.active = cands[]
(plr)
o = state.overrides[plr.UserId]
o o ==
CONFIG.customTeamCheck
ok, r = (CONFIG.customTeamCheck, plr, LocalPlayer)
ok r ~= r ==
a = state.active
a
ok, k = (a.get, plr)
ok k == a.key
(plr)
CONFIG.teamColors
ok, tc = (() plr.TeamColor )
ok tc BORING[tc.Name] tc.Color
CONFIG.teamColor
()
lines = {
():((.GameId), (.PlaceId)),
():(#Players:(), Backend Backend.name ),
():(#Teams:()),
():(#(() n = _ (spawnAllies) n += {n} )()),
():(state.active state.active.name ),
():(LocalPlayer.Name, LocalPlayer.UserId),
,
}
_, c (state.candidates)
.(lines, ():(
c.name, c.group, c.same, c.others, c.distinct, (c.valid), c.score))
.(lines, )
_, p (Players:())
parts = {}
_, s (SOURCES)
ok, v = (s.get, p)
ok v .(parts, s.name .. .. (v))
root = ((p))
.(lines, ():(
p.Name, p.UserId,
(p) (p).ClassName ,
root root.Name ,
#parts > .(parts, ) ))
.(lines, )
()
(class)
ok, o = (.new, class)
ok o o
()
{
name = ,
newBox = ()
o = ()
o
{
apply = (p)
o.Position = .(p.x, p.y)
o.Size = .(p.w, p.h)
o.Color = p.color
o.Visible = p.visible ~=
o.Thickness = p.thickness
o.Filled = p.filled ==
o.Transparency = p.filled
,
hide = () o.Visible = ,
remove = () (() o:() ) ,
}
,
newLine = ()
o = ()
o
{
apply = (p)
o.From = .(p.x1, p.y1)
o.To = .(p.x2, p.y2)
o.Color = p.color
o.Visible = p.visible ~=
o.Thickness = p.thickness
o.Transparency = p.alpha
,
hide = () o.Visible = ,
remove = () (() o:() ) ,
}
,
newText = (size)
o = ()
o
(()
o.Size = size
o.Center =
o.Outline =
o.OutlineColor = .(, , )
)
{
apply = (p)
o.Position = .(p.cx, p.cy)
o.Text = p.text
o.Color = p.color
o.Visible = p.visible ~=
,
hide = () o.Visible = ,
remove = () (() o:() ) ,
}
,
}
()
sg = .()
sg.Name =
sg.ResetOnSpawn =
sg.DisplayOrder =
(() sg.ScreenInsets = .ScreenInsets.None )
(sg)
{
name = ,
gui = sg,
newBox = ()
f = (, { BackgroundTransparency = , BorderSizePixel = }, sg)
stroke = (, { ApplyStrokeMode = .ApplyStrokeMode.Border, Thickness = }, f)
{
apply = (p)
f.Position = .(p.x, p.y)
f.Size = .(.(p.w, ), .(p.h, ))
f.Visible = p.visible ~=
p.filled
f.BackgroundColor3 = p.color
f.BackgroundTransparency =
stroke.Transparency =
f.BackgroundTransparency =
stroke.Color = p.color
stroke.Thickness = p.thickness
stroke.Transparency =
,
hide = () f.Visible = ,
remove = () f:() ,
}
,
newLine = ()
f = (, {
AnchorPoint = .(, ),
BackgroundColor3 = .(, , ),
BorderSizePixel = ,
}, sg)
{
apply = (p)
dx, dy = p.x2 - p.x1, p.y2 - p.y1
len = .(dx * dx + dy * dy)
f.Position = .((p.x1 + p.x2) * , (p.y1 + p.y2) * )
f.Size = .(.(len, ), p.thickness )
f.Rotation = .(.(dy, dx))
f.BackgroundColor3 = p.color
f.BackgroundTransparency = p.alpha
f.Visible = p.visible ~=
,
hide = () f.Visible = ,
remove = () f:() ,
}
,
newText = (size)
t = (, {
AnchorPoint = .(, ),
Size = .(, size + ),
BackgroundTransparency = ,
Font = .Font.GothamBold,
TextSize = size,
TextStrokeTransparency = ,
TextColor3 = .(, , ),
}, sg)
{
apply = (p)
t.Position = .(p.cx, p.cy)
t.Text = p.text
t.TextColor3 = p.color
t.Visible = p.visible ~=
,
hide = () t.Visible = ,
remove = () t:() ,
}
,
}
Backend =
cache = {}
conns = {}
(e)
_, p (e.parts) (p.remove)
e.parts = {}
(e)
_, p (e.parts) (p.hide)
()
Backend
e = { parts = {} }
(p) p .(e.parts, p) p
e.box = (Backend.())
e.corner = {}
i = , e.corner[i] = (Backend.())
e.tag = (Backend.())
e.name = (Backend.())
e.dist = (Backend.())
e.hpBg = (Backend.())
e.hp = (Backend.())
e.tracer = (Backend.())
e.box
e
()
_, e (cache) (e)
cache = {}
(mode)
b
mode ==
b = ()
mode ==
b = ()
b = () ()
b
(mode)
Backend Backend.gui (() Backend.gui:() )
()
Backend = (mode)
_, p (Players:())
p ~= LocalPlayer
e = ()
e cache[p] = e
refreshRoster ()
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.ZIndexBehavior = .ZIndexBehavior.Sibling
gui.DisplayOrder =
(() gui.ScreenInsets = .ScreenInsets.CoreUISafeInsets )
(gui)
panel = (, {
Name = ,
Size = .(, ),
AutomaticSize = .AutomaticSize.Y,
Position = .(, ),
BackgroundColor3 = .(, , ),
BorderSizePixel = ,
Active = ,
}, gui)
(, { CornerRadius = .(, ) }, panel)
(, { Color = C.stroke, Thickness = , ApplyStrokeMode = .ApplyStrokeMode.Border }, panel)
(, { Rotation = , Color = ColorSequence.(C.panel, C.bg) }, panel)
(, { SortOrder = .SortOrder.LayoutOrder }, panel)
header = (, {
Size = .(, , , ),
BackgroundTransparency = ,
LayoutOrder = ,
}, panel)
dot = (, {
Size = .(, ),
Position = .(, ),
BackgroundColor3 = C.accent,
BorderSizePixel = ,
}, header)
(, { CornerRadius = .(, ) }, dot)
(, {
Size = .(, -, , ),
Position = .(, ),
BackgroundTransparency = ,
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = C.text,
TextXAlignment = .TextXAlignment.Left,
Text = ,
}, header)
subtitle = (, {
Size = .(, -, , ),
Position = .(, ),
BackgroundTransparency = ,
Font = .Font.Gotham,
TextSize = ,
TextColor3 = C.muted,
TextXAlignment = .TextXAlignment.Left,
Text = ,
}, header)
diag = (, {
Size = .(, -, , ),
Position = .(, ),
BackgroundTransparency = ,
Font = .Font.Code,
TextSize = ,
TextColor3 = C.accent,
TextXAlignment = .TextXAlignment.Left,
Text = ,
}, header)
(order)
wrap = (, {
Size = .(, , , ),
BackgroundTransparency = ,
LayoutOrder = order,
}, panel)
(, { PaddingLeft = .(, ), PaddingRight = .(, ) }, wrap)
(, {
Size = .(, , , ),
BackgroundColor3 = C.stroke,
BackgroundTransparency = ,
BorderSizePixel = ,
}, wrap)
refreshRoster
(b)
(, { CornerRadius = .(, ) }, b)
(, { Color = C.stroke, Thickness = , ApplyStrokeMode = .ApplyStrokeMode.Border }, b)
b.MouseEnter:(()
TweenService:(b, TweenInfo.(), { BackgroundTransparency = }):()
)
b.MouseLeave:(()
TweenService:(b, TweenInfo.(), { BackgroundTransparency = }):()
)
sourceWrap = (, {
Size = .(, , , ),
BackgroundTransparency = ,
LayoutOrder = ,
}, panel)
(, {
PaddingLeft = .(, ), PaddingRight = .(, ),
PaddingTop = .(, ), PaddingBottom = .(, ),
}, sourceWrap)
sourceBtn = (, {
Size = .(, , , ),
BackgroundColor3 = C.surface,
BackgroundTransparency = ,
BorderSizePixel = ,
AutoButtonColor = ,
Font = .Font.GothamMedium,
TextSize = ,
TextColor3 = C.text,
TextXAlignment = .TextXAlignment.Left,
Text = ,
}, sourceWrap)
(sourceBtn)
()
btnRows = (, {
Size = .(, , , ),
AutomaticSize = .AutomaticSize.Y,
BackgroundTransparency = ,
LayoutOrder = ,
}, panel)
(, {
PaddingLeft = .(, ), PaddingRight = .(, ),
PaddingTop = .(, ), PaddingBottom = .(, ),
}, btnRows)
(, { SortOrder = .SortOrder.LayoutOrder, Padding = .(, ) }, btnRows)
(order)
r = (, {
Size = .(, , , ),
BackgroundTransparency = ,
LayoutOrder = order,
}, btnRows)
(, {
FillDirection = .FillDirection.Horizontal,
SortOrder = .SortOrder.LayoutOrder,
Padding = .(, ),
}, r)
r
(parent, order, label, onClick)
b = (, {
Size = .(, -, , ),
BackgroundColor3 = C.surface,
BackgroundTransparency = ,
BorderSizePixel = ,
AutoButtonColor = ,
Font = .Font.GothamMedium,
TextSize = ,
TextColor3 = C.text,
Text = label,
LayoutOrder = order,
}, parent)
(b)
b.MouseButton1Click:(onClick)
b
row1 = ()
row2 = ()
(row1, , , ()
(); (); ()
)
(row1, , , ()
text = ()
setclipboard (setclipboard, text)
writefile (writefile, , text)
(text)
)
rendererBtn = (row2, , , () )
markBtn = (row2, , , () )
markBtn.MouseButton1Click:(()
myRoot = (LocalPlayer.Character)
myRoot
scored = {}
_, p (Players:())
p ~= LocalPlayer
root = ((p))
root
.(scored, { p = p, d = (root.Position - myRoot.Position).Magnitude })
.(scored, (a, b) a.d < b.d )
i = , .(, #scored)
state.overrides[scored[i].p.UserId] =
()
)
()
toggleList = (, {
Size = .(, , , ),
AutomaticSize = .AutomaticSize.Y,
BackgroundTransparency = ,
LayoutOrder = ,
}, panel)
(, {
PaddingTop = .(, ), PaddingBottom = .(, ),
PaddingLeft = .(, ), PaddingRight = .(, ),
}, toggleList)
(, { SortOrder = .SortOrder.LayoutOrder, Padding = .(, ) }, toggleList)
(order, label, key)
row = (, {
Size = .(, , , ),
BackgroundColor3 = C.surface,
BackgroundTransparency = ,
BorderSizePixel = ,
AutoButtonColor = ,
Text = ,
LayoutOrder = order,
}, toggleList)
(, { CornerRadius = .(, ) }, row)
(, {
Size = .(, -, , ),
Position = .(, ),
BackgroundTransparency = ,
Font = .Font.GothamMedium,
TextSize = ,
TextColor3 = C.text,
TextXAlignment = .TextXAlignment.Left,
Text = label,
}, row)
pill = (, {
Size = .(, ),
Position = .(, -, , -),
BackgroundColor3 = C.stroke,
BorderSizePixel = ,
}, row)
(, { CornerRadius = .(, ) }, pill)
knob = (, {
Size = .(, ),
Position = .(, ),
BackgroundColor3 = C.muted,
BorderSizePixel = ,
}, pill)
(, { CornerRadius = .(, ) }, knob)
(on, instant)
info = TweenInfo.(instant , .EasingStyle.Quad, .EasingDirection.Out)
TweenService:(pill, info, { BackgroundColor3 = on C.accent C.stroke }):()
TweenService:(knob, info, {
Position = .(on , ),
BackgroundColor3 = on C.text C.muted,
}):()
(CONFIG[key], )
row.MouseEnter:(()
TweenService:(row, TweenInfo.(), { BackgroundTransparency = }):()
)
row.MouseLeave:(()
TweenService:(row, TweenInfo.(), { BackgroundTransparency = }):()
)
row.MouseButton1Click:(()
CONFIG[key] = CONFIG[key]
(CONFIG[key], )
key == key == ()
)
(, , )
(, , )
(, , )
(, , )
(, , )
(, , )
(, , )
(, , )
()
rosterHead = (, {
Size = .(, , , ),
BackgroundTransparency = ,
LayoutOrder = ,
}, panel)
(, { PaddingLeft = .(, ), PaddingRight = .(, ) }, rosterHead)
(, {
Size = .(, , , ),
BackgroundTransparency = ,
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = C.muted,
TextXAlignment = .TextXAlignment.Left,
Text = ,
}, rosterHead)
rosterWrap = (, {
Size = .(, , , ),
AutomaticSize = .AutomaticSize.Y,
BackgroundTransparency = ,
LayoutOrder = ,
}, panel)
(, {
PaddingLeft = .(, ), PaddingRight = .(, ),
PaddingBottom = .(, ),
}, rosterWrap)
rosterList = (, {
Size = .(, , , ),
AutomaticSize = .AutomaticSize.Y,
BackgroundTransparency = ,
}, rosterWrap)
(, { SortOrder = .SortOrder.LayoutOrder, Padding = .(, ) }, rosterList)
(, {
Size = .(, , , ),
BackgroundTransparency = ,
Font = .Font.Gotham,
TextSize = ,
TextColor3 = C.muted,
LayoutOrder = ,
Text = ,
}, panel)
rows = {}
(plr)
cur = state.overrides[plr.UserId]
cur ==
state.overrides[plr.UserId] =
cur ==
state.overrides[plr.UserId] =
state.overrides[plr.UserId] =
()
state.forced
sourceBtn.Text = ():(state.forced)
state.active
sourceBtn.Text = ():(state.active.name)
sourceBtn.Text =
sourceBtn.MouseButton1Click:(()
cands = state.candidates
#cands ==
state.forced =
idx =
i, c (cands)
c.name == state.forced idx = i
state.forced ==
idx =
idx >= #cands
idx =
idx +=
state.forced = (idx == ) cands[idx].name
()
()
()
)
rendererBtn.MouseButton1Click:(()
order = { , , }
cur =
i, v (order) v == CONFIG.renderer cur = i
CONFIG.renderer = order[(cur % #order) + ]
(CONFIG.renderer)
rendererBtn.Text = .. CONFIG.renderer
)
refreshRoster = ()
allies, enemies = {}, {}
_, plr (Players:())
plr ~= LocalPlayer
CONFIG.teamCheck (plr)
.(allies, plr)
.(enemies, plr)
(a, b) a.Name:() < b.Name:()
.(allies, byName)
.(enemies, byName)
a = state.active
a
subtitle.Text =
a.same == a.others a.others >
subtitle.Text = ():(a.group)
subtitle.Text = ():(a.group, #allies, #enemies)
()
rendererBtn.Text = .. (CONFIG.renderer)
_, row (rows) row:()
rows = {}
index =
(plr, ally)
index +=
root, hum = ((plr))
dead = ( root) (hum hum.Health <= )
row = (, {
Size = .(, , , ),
BackgroundColor3 = C.surface,
BackgroundTransparency = ,
BorderSizePixel = ,
AutoButtonColor = ,
Text = ,
LayoutOrder = index,
}, rosterList)
(, { CornerRadius = .(, ) }, row)
(, {
Size = .(, ),
Position = .(, , , -),
BackgroundColor3 = ally (plr) C.enemy,
BackgroundTransparency = dead ,
BorderSizePixel = ,
}, row).Parent = row
(, {
Size = .(, -, , ),
Position = .(, ),
BackgroundTransparency = ,
Font = .Font.GothamMedium,
TextSize = ,
TextColor3 = dead C.muted C.text,
TextXAlignment = .TextXAlignment.Left,
TextTruncate = .TextTruncate.AtEnd,
Text = plr.Name,
}, row)
manual = state.overrides[plr.UserId] ~=
(, {
Size = .(, ),
Position = .(, -, , ),
BackgroundTransparency = ,
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = ally (plr) C.enemy,
TextXAlignment = .TextXAlignment.Right,
Text = (ally ) .. (manual ),
}, row)
row.MouseEnter:(()
TweenService:(row, TweenInfo.(), { BackgroundTransparency = }):()
)
row.MouseLeave:(()
TweenService:(row, TweenInfo.(), { BackgroundTransparency = }):()
)
row.MouseButton1Click:(()
(plr)
()
)
.(rows, row)
shown =
_, plr (allies)
shown < shown += (plr, )
_, plr (enemies)
shown < shown += (plr, )
total = #allies + #enemies
total ==
.(rows, (, {
Size = .(, , , ),
BackgroundTransparency = ,
Font = .Font.Gotham,
TextSize = ,
TextColor3 = C.muted,
TextXAlignment = .TextXAlignment.Left,
LayoutOrder = ,
Text = ,
}, rosterList))
total > shown
.(rows, (, {
Size = .(, , , ),
BackgroundTransparency = ,
Font = .Font.Gotham,
TextSize = ,
TextColor3 = C.muted,
TextXAlignment = .TextXAlignment.Left,
LayoutOrder = index + ,
Text = ():(total - shown),
}, rosterList))
dragging, dragStart, startPos = , ,
header.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = panel.Position
input.Changed:(()
input.UserInputState == .UserInputState.End dragging =
)
)
UIS.InputChanged:((input)
dragging
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
delta = input.Position - dragStart
panel.Position = .(
startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y
)
)
UIS.InputBegan:((input, processed)
processed
input.KeyCode == CONFIG.keybind
panel.Visible = panel.Visible
)
rayParams = RaycastParams.()
rayParams.FilterType = .RaycastFilterType.Exclude
rayParams.IgnoreWater =
(char, target)
CONFIG.wallCheck
filter = { char }
LocalPlayer.Character .(filter, LocalPlayer.Character)
rayParams.FilterDescendantsInstances = filter
hit = :(Camera.CFrame.Position, target - Camera.CFrame.Position, rayParams)
hit ==
drawn, seen, warned = , ,
(f)
f >
.(, , ):(CONFIG.teamColor, (f - ) / )
CONFIG.enemyColor:(.(, , ), f / )
(plr, e, viewport)
char = (plr)
root, hum = (char)
char root (e)
hum hum.Health <= (e)
dist = (root.Position - Camera.CFrame.Position).Magnitude
dist > CONFIG.maxDistance (char, root.Position)
(e)
cf, size
ok = (()
cf, size = char:()
)
ok cf
cf = root.CFrame
size = root.Size
half = .(, size.Y * , )
topS, topOn = Camera:(cf.Position + half)
botS, botOn = Camera:(cf.Position - half)
(topOn botOn) (e)
right = Camera.CFrame.RightVector * (size.X * )
rS = Camera:(cf.Position + right)
lS = Camera:(cf.Position - right)
cx = (topS.X + botS.X) *
topY = .(topS.Y, botS.Y)
botY = .(topS.Y, botS.Y)
h = botY - topY
h < (e)
w = .(.(rS.X - lS.X), h * , )
x = cx - w *
ally = CONFIG.teamCheck (plr)
color = ( CONFIG.teamCheck CONFIG.soloColor)
(ally (plr) CONFIG.enemyColor)
drawn +=
e.box.({
x = x, y = topY, w = w, h = h,
color = color, visible = CONFIG.boxes, thickness = ,
})
L = .(.(w, h) * , , )
seg = {
{ x, topY, x + L, topY }, { x, topY, x, topY + L },
{ x + w, topY, x + w - L, topY }, { x + w, topY, x + w, topY + L },
{ x, topY + h, x + L, topY + h }, { x, topY + h, x, topY + h - L },
{ x + w, topY + h, x + w - L, topY + h }, { x + w, topY + h, x + w, topY + h - L },
}
i = ,
c = e.corner[i]
c
c.({
x1 = seg[i][], y1 = seg[i][], x2 = seg[i][], y2 = seg[i][],
color = color, visible = CONFIG.corners, thickness = , alpha = ,
})
e.tag.({ cx = cx, cy = topY - , text = ally ,
color = color, visible = CONFIG.names })
e.name.({ cx = cx, cy = topY - , text = plr.Name,
color = color, visible = CONFIG.names })
e.dist.({ cx = cx, cy = botY + , text = ():(.(dist + )),
color = .(, , ), visible = CONFIG.distance })
hum
frac = .(hum.Health / .(hum.MaxHealth, ), , )
bx = x -
e.hpBg.({ x = bx, y = topY, w = , h = h,
color = .(, , ), visible = CONFIG.health, filled = })
fh = .(h * frac, )
e.hp.({ x = bx, y = topY + (h - fh), w = , h = fh,
color = (frac), visible = CONFIG.health, filled = })
(e.hpBg.hide); (e.hp.hide)
e.tracer.({ x1 = viewport.X * , y1 = viewport.Y, x2 = cx, y2 = botY,
color = color, visible = CONFIG.tracers, thickness = , alpha = })
.(conns, RunService.RenderStepped:(()
Camera
drawn =
ok, err = (()
viewport = Camera.ViewportSize
seen =
plr, e (cache)
plr.Parent
seen +=
(plr, e, viewport)
)
ok warned
warned =
( .. (err))
diag.Text = .. (err):(, )
))
.(conns, RunService.Heartbeat:(()
diag.Text = ():(
Backend Backend.name ,
seen, drawn,
state.active state.active.name )
))
(plr)
plr == LocalPlayer cache[plr]
e = ()
e cache[plr] = e
(plr)
e = cache[plr]
e (e) cache[plr] =
.(conns, Players.PlayerAdded:((plr)
(plr); (); (); ()
))
.(conns, Players.PlayerRemoving:((plr)
(plr)
state.overrides[plr.UserId] =
spawnAllies[plr.UserId] =
(); (); ()
))
.(conns, :():(()
.CurrentCamera Camera = .CurrentCamera
))
.(conns, LocalPlayer.CharacterAdded:(()
(); (); ()
()
))
LocalPlayer.Character ()
Backend = (CONFIG.renderer)
_, plr (Players:()) (plr)
.(()
()
()
()
()
.()
()
()
()
()
)
api = {}
api.()
()
_, conn (conns) (() conn:() )
conns = {}
gui gui:() gui =
Backend Backend.gui Backend.gui:()
().TeamESP =
api.() ()
api.() (); (); (); ()
api.(name) state.forced = name; (); ()
api.(mode) CONFIG.renderer = mode; (mode)
api.(n)
myRoot = (LocalPlayer.Character)
myRoot
scored = {}
_, p (Players:())
p ~= LocalPlayer
root = ((p))
root .(scored, { p = p, d = (root.Position - myRoot.Position).Magnitude })
.(scored, (a, b) a.d < b.d )
i = , .(n , #scored)
state.overrides[scored[i].p.UserId] =
()
().TeamESP = api should work if it doesn't, I'm sorry it works for me it should glitch out on gun games so if you see a lot of allies on gun game its free for all no ally's

RO-CAM [NIGHTVISION]