Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
TweenService = :()
Workspace = :()
LocalPlayer = Players.LocalPlayer
PlayerGui = LocalPlayer:()
Camera = Workspace.CurrentCamera
IS_TOUCH_ONLY = UserInputService.TouchEnabled UserInputService.MouseEnabled
_, name ({ , })
old = PlayerGui:(name)
old
old:()
_, name ({ , })
(()
RunService:(name)
)
Textures = {
Window = ,
Header = ,
TileSize = ,
Transparency = ,
}
()
character = LocalPlayer.Character
tool = character character:()
tool
tool:()
PALETTE = {
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
.(, , ),
}
DEFAULTS = {
General = {
TeamCheck = ,
IgnoreFriends = ,
MaxDistance = ,
},
Aim = {
Enabled = ,
Mode = IS_TOUCH_ONLY ,
Part = ,
Priority = ,
FOV = ,
Smooth = ,
Adaptive = ,
Sticky = ,
Prediction = ,
AutoPing = ,
Humanize = ,
WallCheck = ,
MultiPoint = ,
},
Trigger = {
Enabled = ,
Mode = ,
Smart = ,
Reaction = ,
Jitter = ,
Chance = ,
CPS = ,
Burst = ,
Radius = ,
},
Visual = {
ESP = ,
Box = ,
Name = ,
Distance = ,
Health = ,
Tool = ,
Skeleton = ,
Chams = ,
Offscreen = ,
ColorMode = ,
Color = PALETTE[],
Tracer = ,
TracerFrom = ,
FOVCircle = ,
FOVFilled = ,
FOVLine = ,
FOVColor = PALETTE[],
},
UI = {
Accent = PALETTE[],
Texture = ,
Transparency = ,
HUD = ,
},
Keys = {
Menu = .KeyCode.RightShift,
Aim = .UserInputType.MouseButton2,
Trigger = .KeyCode.F,
},
}
(source)
copy = {}
key, value (source)
copy[key] = ((value) == (value) == ) (value) value
copy
S = (DEFAULTS)
OPT = {
AimMode = { , , },
AimPart = { , , },
Priority = { , , },
TriggerMode = { , },
Box = { , , },
ColorMode = { , , },
TracerFrom = { , , },
Texture = { , , },
}
unloaded =
connections = {}
(signal, callback)
connection = signal:(callback)
.(connections, connection)
connection
(Workspace:(), ()
Camera = Workspace.CurrentCamera
)
(className, props, children)
inst = .(className)
parent
key, value (props {})
key ==
parent = value
inst[key] = value
_, child (children {})
child.Parent = inst
inst.Parent = parent
inst
(inst, radius)
(, { CornerRadius = .(, radius), Parent = inst })
(inst, color, thickness, transparency)
(, {
Color = color,
Thickness = thickness ,
Transparency = transparency ,
ApplyStrokeMode = .ApplyStrokeMode.Border,
Parent = inst,
})
(inst, c0, c1, rotation)
(, {
Color = ColorSequence.(c0, c1),
Rotation = rotation ,
Parent = inst,
})
(color, factor)
.(.(color.R * factor, ), .(color.G * factor, ), .(color.B * factor, ))
(inst, duration, props, style)
info = TweenInfo.(duration, style .EasingStyle.Quad, .EasingDirection.Out)
t = TweenService:(inst, info, props)
t:()
t
(value)
value
themed = {}
(inst, prop, fn)
.(themed, { inst = inst, prop = prop, fn = fn })
inst[prop] = (S.UI.Accent)
()
accent = S.UI.Accent
i = #themed, , -
item = themed[i]
item.inst.Parent
item.inst[item.prop] = item.(accent)
.(themed, i)
Entities = {}
allCharacters = {}
filterDirty =
destroyDrawing
(respectCollide)
params = RaycastParams.()
params.FilterType = .RaycastFilterType.Exclude
params.RespectCanCollide = respectCollide
params
visParams, tempParams = (), ()
trigParams, trigTemp = (), ()
AIM_PARTS_R15 = {
, , , ,
, , , ,
}
AIM_PARTS_R6 = { , , , , , , }
BONES_R15 = {
{ , }, { , },
{ , }, { , }, { , },
{ , }, { , }, { , },
{ , }, { , }, { , },
{ , }, { , }, { , },
}
BONES_R6 = {
{ , }, { , }, { , },
{ , }, { , },
}
(entity)
entity.Character, entity.Humanoid, entity.Root, entity.Head, entity.Torso = , , , ,
entity.Parts, entity.Bones, entity.HeadList, entity.TorsoList = , , ,
entity.Highlight
entity.Highlight:()
entity.Highlight =
filterDirty =
(entity, character)
(entity)
.(()
humanoid = character:(, )
root = character:(, )
head = character:(, )
unloaded (humanoid root head) entity.Player.Character ~= character
r15 = humanoid.RigType == .HumanoidRigType.R15
r15
character:(, )
torso = character:(r15 ) root
parts = {}
_, name (r15 AIM_PARTS_R15 AIM_PARTS_R6)
part = character:(name)
part part:()
.(parts, part)
bones = {}
_, pair (r15 BONES_R15 BONES_R6)
a, b = character:(pair[]), character:(pair[])
a b
.(bones, { a, b })
highlight = .()
highlight.Name =
highlight.Adornee = character
highlight.DepthMode = .HighlightDepthMode.AlwaysOnTop
highlight.FillTransparency =
highlight.OutlineTransparency =
highlight.Enabled =
highlight.Parent = character
entity.Character, entity.Humanoid, entity.Root, entity.Head, entity.Torso = character, humanoid, root, head, torso
entity.Parts, entity.Bones = parts, bones
entity.HeadList, entity.TorsoList = { head }, { torso }
entity.Highlight = highlight
filterDirty =
)
(player)
player == LocalPlayer Entities[player]
entity = { Player = player, Visible = , IsFriend = }
Entities[player] = entity
(player.CharacterAdded, (character)
(entity, character)
)
(player.CharacterRemoving, ()
(entity)
)
player.Character
(entity, player.Character)
.(()
ok, result = (()
LocalPlayer:(player.UserId)
)
entity.IsFriend = ok result ==
)
(player)
entity = Entities[player]
entity
(entity)
destroyDrawing
(entity)
Entities[player] =
(entity)
humanoid, root = entity.Humanoid, entity.Root
humanoid ~= root ~= root.Parent ~= humanoid.Health >
(entity)
S.General.IgnoreFriends entity.IsFriend
S.General.TeamCheck
myTeam = LocalPlayer.Team
myTeam ~= entity.Player.Team == myTeam
()
IS_TOUCH_ONLY UserInputService.MouseBehavior == .MouseBehavior.LockCenter
Camera.ViewportSize /
UserInputService:()
(degrees)
half = .(.(degrees) / )
camHalf = .(.(Camera.FieldOfView) / )
half / camHalf * (Camera.ViewportSize.Y / )
pingSeconds, lastPingCheck = ,
()
now = .()
now - lastPingCheck >
lastPingCheck = now
ok, value = (()
LocalPlayer:()
)
ok (value) ==
pingSeconds = .(value, , )
pingSeconds
()
.(allCharacters)
mine = LocalPlayer.Character
mine
.(allCharacters, mine)
_, entity (Entities)
entity.Character
.(allCharacters, entity.Character)
visParams.FilterDescendantsInstances = allCharacters
trigParams.FilterDescendantsInstances = mine { mine } {}
filterDirty =
(origin, targetPos)
direction = targetPos - origin
params = visParams
extra
_ = ,
result = Workspace:(origin, direction, params)
result
part = result.Instance
part.Transparency <
extra
extra = .(allCharacters)
.(extra, part)
tempParams.FilterDescendantsInstances = extra
params = tempParams
SAMPLE_DIRS = {
.(, , ), .(-, , ), .(, , ), .(, -, ),
}
(part, origin, multi)
(origin, part.Position)
, part.Position
multi
half = part.Size *
cf = part.CFrame
_, dir (SAMPLE_DIRS)
point = cf:(dir * half)
(origin, point)
, point
lock = { entity = , point = }
keyHeld, hudAimHeld, aimToggled, triggerHeld = , , ,
()
A = S.Aim
A.Enabled
A.Mode ==
A.Mode ==
aimToggled
keyHeld hudAimHeld
scratchParts, scratchPx = {}, {}
(entity, origin, radius, camPos, wallCheck)
mode = S.Aim.Part
list
mode ==
list = entity.HeadList
mode ==
list = entity.TorsoList
list = entity.Parts
list
count =
i = , #list
part = list[i]
part.Parent
screen, onScreen = Camera:(part.Position)
onScreen
px = (.(screen.X, screen.Y) - origin).Magnitude
px <= radius
count = count +
scratchParts[count] = part
scratchPx[count] = px
_ = , count
best, bestPx = , .huge
i = , count
scratchPx[i] < bestPx
best, bestPx = i, scratchPx[i]
best
part = scratchParts[best]
scratchPx[best] = .huge
wallCheck
part, part.Position, bestPx
ok, point = (part, camPos, S.Aim.MultiPoint)
ok
part, point, bestPx
()
origin = ()
radius = (S.Aim.FOV)
camPos = Camera.CFrame.Position
maxDist = S.General.MaxDistance
wall = S.Aim.WallCheck
current = lock.entity
S.Aim.Sticky current (current) (current)
part, point = (current, origin, radius * , camPos, wall)
part (part.Position - camPos).Magnitude <= maxDist
current, part, point
bestEntity, bestPart, bestPoint, bestScore
_, entity (Entities)
(entity) (entity)
dist = (entity.Root.Position - camPos).Magnitude
dist <= maxDist
part, point, px = (entity, origin, radius, camPos, wall)
part
score
S.Aim.Priority ==
score = dist
S.Aim.Priority ==
score = entity.Humanoid.Health + px *
score = px
bestScore score < bestScore
bestEntity, bestPart, bestPoint, bestScore = entity, part, point, score
bestEntity, bestPart, bestPoint
(entity, point)
lead = S.Aim.Prediction
S.Aim.AutoPing
lead = lead + ()
lead <=
point
point + entity.Root.AssemblyLinearVelocity * lead
()
amount = S.Aim.Humanize
amount <=
.zero
t = .()
.(
.(t * , ),
.(t * , ),
.(t * , )
) * (amount * )
(point, dt)
camCF = Camera.CFrame
camPos = camCF.Position
offset = point - camPos
offset.Magnitude <
goal = .(camPos, point)
smooth = S.Aim.Smooth
alpha =
smooth >
speed = * ( - smooth / ) ^ +
S.Aim.Adaptive
angle = .(.(.(camCF.LookVector:(offset.Unit), -, )))
speed = speed * ( + .(angle / , , ))
alpha = - .(-speed * dt)
Camera.CFrame = camCF:(goal, .(alpha, , ))
(dt)
()
lock.entity, lock.point = ,
entity, _, point = ()
entity
lock.entity, lock.point = ,
aimPoint = (entity, point) + ()
lock.entity, lock.point = entity, aimPoint
(aimPoint, dt)
TRIG_OFFSETS = { .(, ), .(-, ), .(, ), .(, -) }
(part)
model = part:()
model
player = Players:(model)
player
Entities[player]
model = model:()
(x, y)
ray = Camera:(x, y)
direction = ray.Direction * S.General.MaxDistance
params = trigParams
extra
_ = ,
result = Workspace:(ray.Origin, direction, params)
result
part = result.Instance
entity = (part)
entity
(entity) (entity)
entity
part.Transparency <
extra
extra = { LocalPlayer.Character }
.(extra, part)
trigTemp.FilterDescendantsInstances = extra
params = trigTemp
()
origin = ()
entity = (origin.X, origin.Y)
entity
entity
radius = S.Trigger.Radius
radius >
i = , #TRIG_OFFSETS
offset = TRIG_OFFSETS[i] * radius
entity = (origin.X + offset.X, origin.Y + offset.Y)
entity
entity
(entity)
T = S.Trigger
ms = T.Reaction + (.() * - ) * T.Jitter
T.Smart
dist = (entity.Root.Position - Camera.CFrame.Position).Magnitude
speed = entity.Root.AssemblyLinearVelocity.Magnitude
hp = entity.Humanoid.Health / .(entity.Humanoid.MaxHealth, )
ms = ms * ( + .(dist / , , ) * ) * ( + .(speed / , , ) * )
hp <
ms = ms *
.(ms, ) /
trig = { entity = , seenAt = , = , lostAt = , nextShot = , pauseUntil = , shots = }
lastShot =
()
T = S.Trigger
T.Enabled
T.Mode == triggerHeld
()
()
trig.entity, trig.lostAt = ,
now = .()
entity = ()
entity
trig.entity
trig.lostAt ==
trig.lostAt = now
now - trig.lostAt >
trig.entity, trig.lostAt = ,
trig.lostAt =
trig.entity ~= entity
trig.entity = entity
trig.seenAt = now
trig.delay = (entity)
trig.shots =
now - trig.seenAt < trig.delay now < trig.nextShot now < trig.pauseUntil
T = S.Trigger
trig.nextShot = now + ( / .(T.CPS, )) * ( + .() * )
.() * > T.Chance
()
lastShot = now
T.Burst >
trig.shots = trig.shots +
trig.shots >= T.Burst
trig.shots =
trig.pauseUntil = now + + .() *
RunService:(, .RenderPriority.Camera.Value + , (dt)
unloaded
filterDirty
()
(dt)
()
)
overlay = (, {
Name = ,
ResetOnSpawn = ,
IgnoreGuiInset = ,
DisplayOrder = ,
ZIndexBehavior = .ZIndexBehavior.Sibling,
Parent = PlayerGui,
})
COLOR_VISIBLE = .(, , )
COLOR_HIDDEN = .(, , )
INFO_COLOR = .(, , )
fovCircle = (, {
Name = ,
AnchorPoint = .(, ),
BackgroundColor3 = .(, , ),
BackgroundTransparency = ,
BorderSizePixel = ,
Visible = ,
ZIndex = ,
Parent = overlay,
})
(fovCircle, )
fovStroke = (fovCircle, .(, , ), , )
snapLine = (, {
Name = ,
AnchorPoint = .(, ),
BorderSizePixel = ,
Visible = ,
ZIndex = ,
Parent = overlay,
})
(frame, a, b, thickness)
delta = b - a
frame.Size = .(delta.Magnitude, thickness)
frame.Position = .((a.X + b.X) / , (a.Y + b.Y) / )
frame.Rotation = .(.(delta.Y, delta.X))
frame.Visible =
(frame, x, y, w, h)
frame.Position = .(x, y)
frame.Size = .(w, h)
(size, z)
(, {
BackgroundTransparency = ,
Font = .Font.GothamBold,
TextSize = size,
TextStrokeTransparency = ,
TextStrokeColor3 = .(, , ),
Visible = ,
ZIndex = z,
Parent = overlay,
})
(entity)
d = { Shown = , BonesOn = , Bones = {}, Corners = {} }
d.Outline = (, { BackgroundTransparency = , Visible = , ZIndex = , Parent = overlay })
(d.Outline, .(, , ), , )
d.Box = (, { BackgroundTransparency = , Visible = , ZIndex = , Parent = overlay })
d.BoxStroke = (d.Box, .(, , ), , )
i = ,
d.Corners[i] = (, { BorderSizePixel = , Visible = , ZIndex = , Parent = overlay })
d.Name = (, )
d.Name.AnchorPoint = .(, )
d.Name.Size = .(, )
d.Info = (, )
d.Info.AnchorPoint = .(, )
d.Info.Size = .(, )
d.HealthBack = (, {
BackgroundColor3 = .(, , ),
BackgroundTransparency = ,
BorderSizePixel = ,
Visible = ,
ZIndex = ,
Parent = overlay,
})
d.HealthFill = (, {
AnchorPoint = .(, ),
Position = .(, ),
BorderSizePixel = ,
ZIndex = ,
Parent = d.HealthBack,
})
d.Tracer = (, {
AnchorPoint = .(, ),
BorderSizePixel = ,
Visible = ,
ZIndex = ,
Parent = overlay,
})
d.Arrow = (, {
AnchorPoint = .(, ),
Size = .(, ),
BackgroundTransparency = ,
Font = .Font.GothamBold,
Text = ,
TextSize = ,
TextStrokeTransparency = ,
Visible = ,
ZIndex = ,
Parent = overlay,
})
entity.Draw = d
d
(d, count)
#d.Bones < count
.(d.Bones, (, {
AnchorPoint = .(, ),
BorderSizePixel = ,
Visible = ,
ZIndex = ,
Parent = overlay,
}))
(d)
d.Outline.Visible =
d.Box.Visible =
i = , #d.Corners
d.Corners[i].Visible =
d.Name.Visible =
d.Info.Visible =
d.HealthBack.Visible =
d.Tracer.Visible =
d.Arrow.Visible =
i = , #d.Bones
d.Bones[i].Visible =
d.BonesOn =
destroyDrawing = (entity)
d = entity.Draw
d
_, value (d)
(value) ==
value:()
(value) ==
_, inst (value)
inst:()
entity.Draw =
(entity)
V = S.Visual
V.ColorMode ==
entity.Visible COLOR_VISIBLE COLOR_HIDDEN
V.ColorMode ==
team = entity.Player.Team
team entity.Player.TeamColor.Color COLOR_HIDDEN
V.Color
(entity, vp, camPos, origin)
V = S.Visual
d = entity.Draw (entity)
highlight = entity.Highlight
active = (V.ESP V.Tracer V.Chams V.Offscreen) (entity) (entity)
dist =
active
dist = (entity.Root.Position - camPos).Magnitude
active = dist <= S.General.MaxDistance
active
highlight
highlight.Enabled =
d.Shown
(d)
d.Shown =
d.Arrow.Visible =
color = (entity)
highlight
highlight.Enabled = V.Chams
V.Chams
highlight.FillColor = color
highlight.OutlineColor = color
root, head = entity.Root, entity.Head
top = Camera:(head.Position + .(, head.Size.Y / + , ))
bottom = Camera:(root.Position - .(, , ))
cx, cy = (top.X + bottom.X) / , (top.Y + bottom.Y) /
onScreen = top.Z > bottom.Z > cx > - cx < vp.X + cy > - cy < vp.Y +
onScreen
d.Shown
(d)
d.Shown =
V.Offscreen
rel = Camera.CFrame:(root.Position)
dir = .(rel.X, -rel.Y)
dir.Magnitude <
dir = .(, )
dir = dir.Unit
pos = vp / + dir * (.(vp.X, vp.Y) * )
d.Arrow.Position = .(pos.X, pos.Y)
d.Arrow.Rotation = .(.(dir.Y, dir.X)) +
d.Arrow.TextColor3 = color
d.Arrow.Visible =
d.Arrow.Visible =
d.Shown =
d.Arrow.Visible =
height = .(.(bottom.Y - top.Y), )
width = height *
left, topY = cx - width / , top.Y
espOn = V.ESP
boxStyle = espOn V.Box
fullBox = boxStyle ==
d.Outline.Visible = fullBox
d.Box.Visible = fullBox
fullBox
(d.Outline, left, topY, width, height)
(d.Box, left, topY, width, height)
d.BoxStroke.Color = color
cornerBox = boxStyle ==
C = d.Corners
i = ,
C[i].Visible = cornerBox
cornerBox
len = .(.(width, height) * , , )
t =
x2, y2 = left + width, topY + height
(C[], left, topY, len, t)
(C[], left, topY, t, len)
(C[], x2 - len, topY, len, t)
(C[], x2 - t, topY, t, len)
(C[], left, y2 - t, len, t)
(C[], left, y2 - len, t, len)
(C[], x2 - len, y2 - t, len, t)
(C[], x2 - t, y2 - len, t, len)
i = ,
C[i].BackgroundColor3 = color
showName = espOn V.Name
d.Name.Visible = showName
showName
d.Name.Position = .(cx, topY - )
d.Name.Text = entity.Player.DisplayName
d.Name.TextColor3 = color
info =
espOn V.Distance
info = .(, dist)
espOn V.Tool entity.ToolName
info = (info ~= (info .. ) ) .. entity.ToolName
d.Info.Visible = info ~=
info ~=
d.Info.Position = .(cx, topY + height + )
d.Info.Text = info
d.Info.TextColor3 = INFO_COLOR
showHealth = espOn V.Health
d.HealthBack.Visible = showHealth
showHealth
humanoid = entity.Humanoid
ratio = .(humanoid.Health / .(humanoid.MaxHealth, ), , )
(d.HealthBack, left - , topY, , height)
d.HealthFill.Size = .(, ratio)
d.HealthFill.BackgroundColor3 = .(, , ):(.(, , ), ratio)
bones = entity.Bones
espOn V.Skeleton bones
(d, #bones)
i = , #bones
pair = bones[i]
a = Camera:(pair[].Position)
b = Camera:(pair[].Position)
line = d.Bones[i]
a.Z > b.Z >
(line, .(a.X, a.Y), .(b.X, b.Y), )
line.BackgroundColor3 = color
line.Visible =
d.BonesOn =
d.BonesOn
i = , #d.Bones
d.Bones[i].Visible =
d.BonesOn =
V.Tracer
from
V.TracerFrom ==
from = vp /
V.TracerFrom ==
from = origin
from = .(vp.X / , vp.Y)
(d.Tracer, from, .(bottom.X, bottom.Y), )
d.Tracer.BackgroundColor3 = color
d.Tracer.Visible =
()
camPos = Camera.CFrame.Position
V = S.Visual
needVisibility = V.ColorMode == (V.ESP V.Tracer V.Chams)
_, entity (Entities)
(entity)
needVisibility
seen = (entity.Head, camPos, ) (entity.Torso, camPos, )
entity.Visible = seen
tool = entity.Character:()
entity.ToolName = tool tool.Name
entity.Visible =
lastSlow =
RunService:(, .RenderPriority.Camera.Value + , ()
unloaded
now = .()
now - lastSlow >
lastSlow = now
()
V = S.Visual
vp = Camera.ViewportSize
origin = ()
camPos = Camera.CFrame.Position
fovCircle.Visible = V.FOVCircle
V.FOVCircle
radius = (S.Aim.FOV)
color = lock.entity S.UI.Accent V.FOVColor
fovCircle.Size = .(radius * , radius * )
fovCircle.Position = .(origin.X, origin.Y)
fovCircle.BackgroundColor3 = color
fovCircle.BackgroundTransparency = V.FOVFilled
fovStroke.Color = color
fovStroke.Thickness = (now - lastShot < )
V.FOVLine lock.entity lock.point
screen, onScreen = Camera:(lock.point)
onScreen
(snapLine, origin, .(screen.X, screen.Y), )
snapLine.BackgroundColor3 = S.UI.Accent
snapLine.Visible =
snapLine.Visible =
_, entity (Entities)
(entity, vp, camPos, origin)
)
ui = (, {
Name = ,
ResetOnSpawn = ,
IgnoreGuiInset = ,
DisplayOrder = ,
ZIndexBehavior = .ZIndexBehavior.Sibling,
Parent = PlayerGui,
})
viewport = Camera.ViewportSize
WIN_W = .(viewport.X - , , )
WIN_H = .(viewport.Y - , , )
HEADER_H, TAB_H = ,
TEXT_COLOR = .(, , )
MUTED_COLOR = .(, , )
IDLE_COLOR = .(, , )
root = (, {
Name = ,
Size = .(WIN_W, WIN_H),
Position = .(, .(, .((viewport.Y - WIN_H) / ))),
BackgroundTransparency = ,
Parent = ui,
})
(visible)
root.Visible = visible
_, spec ({ { , }, { , }, { , } })
pad = spec[]
shadow = (, {
Size = .(, pad * , , pad * ),
Position = .(-pad, -pad + ),
BackgroundColor3 = .(, , ),
BackgroundTransparency = spec[],
BorderSizePixel = ,
ZIndex = ,
Parent = root,
})
(shadow, + pad)
window = (, {
Name = ,
Size = .(, ),
BackgroundColor3 = .(, , ),
BorderSizePixel = ,
ClipsDescendants = ,
Active = ,
ZIndex = ,
Parent = root,
})
(window, )
(window, .(, , ), .(, , ), )
((window, S.UI.Accent, , ), , identity)
textureLayer = (, {
Name = ,
Size = .(, ),
BackgroundTransparency = ,
ClipsDescendants = ,
ZIndex = ,
Parent = window,
})
()
textureLayer:()
()
style = S.UI.Texture
style ==
length = (WIN_W + WIN_H) *
x = -WIN_H / , WIN_W + WIN_H / ,
stripe = (, {
AnchorPoint = .(, ),
Size = .(, length),
Position = .(x, WIN_H / ),
Rotation = ,
BorderSizePixel = ,
BackgroundTransparency = ,
Parent = textureLayer,
})
(stripe, , identity)
style ==
x = , WIN_W,
line = (, {
Position = .(x, ),
Size = .(, WIN_H),
BorderSizePixel = ,
BackgroundTransparency = ,
Parent = textureLayer,
})
(line, , identity)
y = , WIN_H,
line = (, {
Position = .(, y),
Size = .(WIN_W, ),
BorderSizePixel = ,
BackgroundTransparency = ,
Parent = textureLayer,
})
(line, , identity)
Textures.Window ~=
(, {
Size = .(, ),
BackgroundTransparency = ,
Image = Textures.Window,
ScaleType = .ScaleType.Tile,
TileSize = .(Textures.TileSize, Textures.TileSize),
ImageTransparency = Textures.Transparency,
Parent = textureLayer,
})
header = (, {
Name = ,
Size = .(, , , HEADER_H),
BackgroundColor3 = .(, , ),
BackgroundTransparency = ,
BorderSizePixel = ,
Active = ,
ZIndex = ,
Parent = window,
})
(header, .(, , ), .(, , ), )
Textures.Header ~=
(, {
Size = .(, ),
BackgroundTransparency = ,
Image = Textures.Header,
ScaleType = .ScaleType.Crop,
ImageTransparency = Textures.Transparency,
ZIndex = ,
Parent = header,
})
(, {
Name = ,
BackgroundTransparency = ,
Position = .(, ),
Size = .(, -, , ),
Text = ,
Font = .Font.GothamBlack,
TextSize = ,
TextColor3 = .(, , ),
TextXAlignment = .TextXAlignment.Left,
ZIndex = ,
Parent = header,
})
statusLabel = (, {
Name = ,
BackgroundTransparency = ,
Position = .(, ),
Size = .(, -, , ),
Text = ,
Font = .Font.GothamMedium,
TextSize = ,
TextColor3 = MUTED_COLOR,
TextXAlignment = .TextXAlignment.Left,
ZIndex = ,
Parent = header,
})
accentLine = (, {
Name = ,
Size = .(, , , ),
Position = .(, , , -),
BackgroundColor3 = .(, , ),
BorderSizePixel = ,
ZIndex = ,
Parent = header,
})
lineGradient = (, { Offset = .(-, ), Parent = accentLine })
(lineGradient, , (accent)
ColorSequence.({
ColorSequenceKeypoint.(, (accent, )),
ColorSequenceKeypoint.(, accent),
ColorSequenceKeypoint.(, (accent, )),
})
)
TweenService:(
lineGradient,
TweenInfo.(, .EasingStyle.Sine, .EasingDirection.InOut, -, ),
{ Offset = .(, ) }
):()
closeBtn = (, {
AnchorPoint = .(, ),
Position = .(, -, , -),
Size = .(, ),
BackgroundColor3 = .(, , ),
Text = ,
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = .(, , ),
BorderSizePixel = ,
ZIndex = ,
Parent = header,
})
(closeBtn, )
closeBtn.MouseButton1Click:(()
()
)
TAB_NAMES = { , , , }
tabBar = (, {
Name = ,
Position = .(, HEADER_H),
Size = .(, , , TAB_H),
BackgroundColor3 = .(, , ),
BackgroundTransparency = ,
BorderSizePixel = ,
ZIndex = ,
Parent = window,
})
tabIndicator = (, {
Size = .( / #TAB_NAMES, -, , ),
Position = .(, , , -),
BorderSizePixel = ,
ZIndex = ,
Parent = tabBar,
})
(tabIndicator, )
(tabIndicator, , identity)
()
page = (, {
Position = .(, HEADER_H + TAB_H),
Size = .(, , , -(HEADER_H + TAB_H)),
BackgroundTransparency = ,
BorderSizePixel = ,
ScrollBarThickness = ,
CanvasSize = .(),
AutomaticCanvasSize = .AutomaticSize.Y,
ScrollingDirection = .ScrollingDirection.Y,
Visible = ,
ZIndex = ,
Parent = window,
})
(page, , identity)
(, { Padding = .(, ), SortOrder = .SortOrder.LayoutOrder, Parent = page })
(, {
PaddingLeft = .(, ),
PaddingRight = .(, ),
PaddingTop = .(, ),
PaddingBottom = .(, ),
Parent = page,
})
page
pages, tabButtons = {}, {}
(index)
i, page (pages)
page.Visible = i == index
i, button (tabButtons)
button.TextColor3 = i == index .(, , ) MUTED_COLOR
(tabIndicator, , { Position = .((index - ) / #TAB_NAMES, , , -) })
i, name (TAB_NAMES)
pages[i] = ()
button = (, {
Position = .((i - ) / #TAB_NAMES, , , ),
Size = .( / #TAB_NAMES, , , -),
BackgroundTransparency = ,
Text = name,
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = MUTED_COLOR,
AutoButtonColor = ,
ZIndex = ,
Parent = tabBar,
})
tabButtons[i] = button
button.MouseButton1Click:(()
(i)
)
pAim, pTrig, pVis, pCfg = pages[], pages[], pages[], pages[]
activeDrag
(input, onMove, onEnd)
activeDrag activeDrag.onEnd
activeDrag.()
activeDrag = { input = input, onMove = onMove, onEnd = onEnd }
(UserInputService.InputChanged, (input)
activeDrag (input == activeDrag.input input.UserInputType == .UserInputType.MouseMovement)
activeDrag.(input.Position)
)
(UserInputService.InputEnded, (input)
activeDrag input.UserInputType == activeDrag.input.UserInputType
finished = activeDrag
activeDrag =
finished.onEnd
finished.()
)
(target, handle, opts)
opts = opts {}
handle.InputBegan:((input)
input.UserInputType ~= .UserInputType.MouseButton1 input.UserInputType ~= .UserInputType.Touch
startInput = .(input.Position.X, input.Position.Y)
startPos = target.AbsolutePosition
moved =
opts.onPress
opts.()
(input, (position)
delta = .(position.X, position.Y) - startInput
moved
delta.Magnitude <
moved =
opts.onDragStart
opts.()
vp = Camera.ViewportSize
size = target.AbsoluteSize
target.Position = .(
.(startPos.X + delta.X, , .(vp.X - size.X, )),
.(startPos.Y + delta.Y, , .(vp.Y - size.Y, ))
)
, ()
opts.onRelease
opts.(moved)
)
)
(root, header)
refreshers = {}
()
_, refresh (refreshers)
()
orderCounter =
()
orderCounter = orderCounter +
orderCounter
captureCallback
MOUSE_NAMES = {
[.UserInputType.MouseButton1] = ,
[.UserInputType.MouseButton2] = ,
[.UserInputType.MouseButton3] = ,
}
(bind)
bind ==
MOUSE_NAMES[bind] bind.Name
(input, bind)
bind ==
bind.EnumType == .KeyCode
input.KeyCode == bind
input.UserInputType == bind
(page, height)
row = (, {
Size = .(, , , height),
BackgroundColor3 = .(, , ),
BackgroundTransparency = ,
BorderSizePixel = ,
LayoutOrder = (),
ZIndex = ,
Parent = page,
})
(row, )
(row, .(, , ), , )
(row, .(, , ), .(, , ), )
row
(row, text, rightGap)
(, {
BackgroundTransparency = ,
Position = .(, ),
Size = .(, -rightGap, , ),
Text = text,
Font = .Font.GothamMedium,
TextSize = ,
TextColor3 = TEXT_COLOR,
TextXAlignment = .TextXAlignment.Left,
ZIndex = ,
Parent = row,
})
(page, text)
holder = (, {
Size = .(, , , ),
BackgroundTransparency = ,
LayoutOrder = (),
ZIndex = ,
Parent = page,
})
label = (, {
Size = .(, , , -),
Position = .(, ),
BackgroundTransparency = ,
Text = .(text),
Font = .Font.GothamBold,
TextSize = ,
TextXAlignment = .TextXAlignment.Left,
ZIndex = ,
Parent = holder,
})
(label, , identity)
rule = (, {
Position = .(, , , -),
Size = .(, , , ),
BorderSizePixel = ,
BackgroundTransparency = ,
ZIndex = ,
Parent = holder,
})
(rule, , identity)
(page, text)
(, {
Size = .(, , , ),
AutomaticSize = .AutomaticSize.Y,
BackgroundTransparency = ,
Text = text,
TextWrapped = ,
Font = .Font.Gotham,
TextSize = ,
TextColor3 = MUTED_COLOR,
TextXAlignment = .TextXAlignment.Left,
TextYAlignment = .TextYAlignment.Top,
LayoutOrder = (),
ZIndex = ,
Parent = page,
})
(page, text, tbl, key, onChange)
row = (page, )
(row, text, )
switch = (, {
AnchorPoint = .(, ),
Position = .(, -, , ),
Size = .(, ),
BackgroundColor3 = IDLE_COLOR,
BorderSizePixel = ,
ZIndex = ,
Parent = row,
})
(switch, )
knob = (, {
Size = .(, ),
Position = .(, ),
BackgroundColor3 = .(, , ),
BorderSizePixel = ,
ZIndex = ,
Parent = switch,
})
(knob, )
button = (, {
Size = .(, ),
BackgroundTransparency = ,
Text = ,
ZIndex = ,
Parent = row,
})
(animate)
on = tbl[key]
color = on S.UI.Accent IDLE_COLOR
position = on .(, ) .(, )
animate
(knob, , { Position = position })
(switch, , { BackgroundColor3 = color })
knob.Position = position
switch.BackgroundColor3 = color
button.MouseButton1Click:(()
tbl[key] = tbl[key]
()
onChange
(tbl[key])
)
.(refreshers, ()
()
)
()
(page, text, tbl, key, minV, maxV, step, fmt, onChange)
row = (page, )
nameLabel = (row, text, )
nameLabel.Position = .(, )
nameLabel.Size = .(, , , )
valueLabel = (, {
BackgroundTransparency = ,
AnchorPoint = .(, ),
Position = .(, -, , ),
Size = .(, , , ),
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = TEXT_COLOR,
TextXAlignment = .TextXAlignment.Right,
ZIndex = ,
Parent = row,
})
track = (, {
Position = .(, , , ),
Size = .(, -, , ),
BackgroundColor3 = .(, , ),
BorderSizePixel = ,
ZIndex = ,
Parent = row,
})
(track, )
fill = (, { Size = .(, ), BorderSizePixel = , ZIndex = , Parent = track })
(fill, )
(fill, , identity)
knob = (, {
AnchorPoint = .(, ),
Size = .(, ),
Position = .(, ),
BackgroundColor3 = .(, , ),
BorderSizePixel = ,
ZIndex = ,
Parent = track,
})
(knob, )
hit = (, {
Position = .(, ),
Size = .(, , , ),
BackgroundTransparency = ,
Text = ,
ZIndex = ,
Parent = row,
})
()
value = tbl[key]
ratio = .((value - minV) / (maxV - minV), , )
fill.Size = .(ratio, )
knob.Position = .(ratio, )
valueLabel.Text = .(fmt, value)
(x)
ratio = .((x - track.AbsolutePosition.X) / .(track.AbsoluteSize.X, ), , )
value = minV + ratio * (maxV - minV)
value = .(value / step + ) * step
tbl[key] = .(value, minV, maxV)
()
onChange
(tbl[key])
hit.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
page.ScrollingEnabled =
(input.Position.X)
(input, (position)
(position.X)
, ()
page.ScrollingEnabled =
)
)
.(refreshers, render)
()
(row)
pill = (, {
AnchorPoint = .(, ),
Position = .(, -, , ),
Size = .(, ),
BackgroundColor3 = .(, , ),
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = TEXT_COLOR,
BorderSizePixel = ,
ZIndex = ,
Parent = row,
})
(pill, )
((pill, S.UI.Accent, , ), , identity)
pill
(page, text, tbl, key, options, onChange)
row = (page, )
(row, text, )
pill = (row)
button = (, {
Size = .(, ),
BackgroundTransparency = ,
Text = ,
ZIndex = ,
Parent = row,
})
()
pill.Text = (tbl[key])
button.MouseButton1Click:(()
index = .(options, tbl[key])
tbl[key] = options[index % #options + ]
()
onChange
(tbl[key])
)
.(refreshers, refresh)
()
(page, text, tbl, key)
row = (page, )
(row, text, )
pill = (row)
button = (, {
Size = .(, ),
BackgroundTransparency = ,
Text = ,
ZIndex = ,
Parent = row,
})
()
pill.Text = (tbl[key])
button.MouseButton1Click:(()
pill.Text =
captureCallback = (bind)
bind
tbl[key] = bind
()
)
.(refreshers, refresh)
()
(page, text, tbl, key, colors, onChange)
row = (page, )
label = (row, text, )
label.Position = .(, )
label.Size = .(, -, , )
holder = (, {
Position = .(, ),
Size = .(, -, , ),
BackgroundTransparency = ,
ZIndex = ,
Parent = row,
})
items = {}
()
_, item (items)
item.stroke.Transparency = (item.color == tbl[key])
i, color (colors)
swatch = (, {
Position = .((i - ) * , ),
Size = .(, ),
BackgroundColor3 = color,
Text = ,
AutoButtonColor = ,
BorderSizePixel = ,
ZIndex = ,
Parent = holder,
})
(swatch, )
items[i] = { color = color, stroke = (swatch, .(, , ), , ) }
swatch.MouseButton1Click:(()
tbl[key] = color
()
onChange
(color)
)
.(refreshers, refresh)
()
(page, text, callback, danger)
row = (page, )
danger
row.BackgroundColor3 = .(, , )
shine = (, {
Position = .(, ),
Size = .(, -, , ),
BackgroundColor3 = .(, , ),
BackgroundTransparency = ,
BorderSizePixel = ,
ZIndex = ,
Parent = row,
})
(shine, )
button = (, {
Size = .(, ),
BackgroundTransparency = ,
Text = text,
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = TEXT_COLOR,
ZIndex = ,
Parent = row,
})
button.MouseButton1Click:(callback)
toastHolder = (, {
Name = ,
AnchorPoint = .(, ),
Position = .(, , , ),
Size = .(, ),
BackgroundTransparency = ,
ZIndex = ,
Parent = ui,
})
(, {
Padding = .(, ),
HorizontalAlignment = .HorizontalAlignment.Center,
SortOrder = .SortOrder.LayoutOrder,
Parent = toastHolder,
})
(text)
unloaded
toast = (, {
Size = .(, ),
BackgroundColor3 = .(, , ),
BackgroundTransparency = ,
BorderSizePixel = ,
LayoutOrder = (),
ZIndex = ,
Parent = toastHolder,
})
(toast, )
edge = (toast, S.UI.Accent, , )
label = (, {
Size = .(, ),
BackgroundTransparency = ,
Text = text,
Font = .Font.GothamMedium,
TextSize = ,
TextColor3 = TEXT_COLOR,
TextTransparency = ,
ZIndex = ,
Parent = toast,
})
(toast, , { BackgroundTransparency = })
(edge, , { Transparency = })
(label, , { TextTransparency = })
.(, ()
toast.Parent
(toast, , { BackgroundTransparency = })
(edge, , { Transparency = })
(label, , { TextTransparency = })
.()
toast:()
)
(text, size, position, opts)
button = (, {
Name = .. text,
Size = .(size, size),
Position = position,
BackgroundColor3 = .(, , ),
AutoButtonColor = ,
Text = text,
Font = .Font.GothamBlack,
TextSize = .(size * ),
TextColor3 = TEXT_COLOR,
BorderSizePixel = ,
ZIndex = ,
Parent = ui,
})
(button, size / )
((button, S.UI.Accent, , ), , identity)
(button, .(, , ), .(, , ), )
shine = (, {
Position = .(, ),
Size = .(, ),
BackgroundColor3 = .(, , ),
BackgroundTransparency = ,
BorderSizePixel = ,
ZIndex = ,
Parent = button,
})
(shine, size / )
(button, button, opts)
button
menuBtn = (, , .(.(viewport.X - , ), ), {
onRelease = (moved)
moved
( root.Visible)
,
})
aimBtn = (, , .fromOffset(math.max(viewport.X - 100, 0), math.max(viewport.Y - 220, 0)), {
onPress = function()
if S.Aim.Mode ~= "Toggle" then
hudAimHeld = true
end
end,
onDragStart = function()
hudAimHeld = false
end,
onRelease = function(moved)
hudAimHeld = false
if not moved and S.Aim.Mode == "Toggle" then
aimToggled = not aimToggled
notify(aimToggled and "Aim: ON" or "Aim: OFF")
end
end,
})
local trigBtn
local function applyHud()
aimBtn.Visible = S.UI.HUD
trigBtn.Visible = S.UI.HUD
end
local function applyWindowAlpha()
window.BackgroundTransparency = S.UI.Transparency
end
trigBtn = makeHudButton("TRG", 50, UDim2.fromOffset(math.max(viewport.X - 93, 0), math.max(viewport.Y - 295, 0)), {
onRelease = function(moved)
if not moved then
S.Trigger.Enabled = not S.Trigger.Enabled
refreshAll()
notify(S.Trigger.Enabled and "Triggerbot: ON" or "Triggerbot: OFF")
end
end,
})
----------------------------------------------------------------
-- reset & unload
----------------------------------------------------------------
local function resetSettings()
for section, values in pairs(DEFAULTS) do
for key, value in pairs(values) do
S[section][key] = value
end
end
aimToggled = false
applyTheme()
rebuildTexture()
applyHud()
applyWindowAlpha()
refreshAll()
notify("Pengaturan direset")
end
local function unload()
if unloaded then
return
end
unloaded = true
for _, name in ipairs({ "AimAssistV2_Aim", "AimAssistV2_Visuals" }) do
pcall(function()
RunService:UnbindFromRenderStep(name)
end)
end
for _, connection in ipairs(connections) do
connection:Disconnect()
end
for _, entity in pairs(Entities) do
if entity.Highlight then
entity.Highlight:Destroy()
end
end
shared.AimAssistV2 = nil
overlay:Destroy()
ui:Destroy()
end
----------------------------------------------------------------
-- ISI HALAMAN
----------------------------------------------------------------
-- AIM
addSection(pAim, "Aimbot")
addToggle(pAim, "Aimbot", S.Aim, "Enabled")
addCycle(pAim, "Mode Aim", S.Aim, "Mode", OPT.AimMode)
addCycle(pAim, "Bagian Target", S.Aim, "Part", OPT.AimPart)
addCycle(pAim, "Prioritas", S.Aim, "Priority", OPT.Priority)
addSlider(pAim, "FOV (derajat)", S.Aim, "FOV", 2, 90, 1, "%.0f°")
addSlider(pAim, "Kehalusan (0 = snap)", S.Aim, "Smooth", 0, 100, 1, "%.0f")
addToggle(pAim, "Smoothing Adaptif", S.Aim, "Adaptive")
addToggle(pAim, "Target Lock (sticky)", S.Aim, "Sticky")
addSection(pAim, "Prediksi & Humanize")
addSlider(pAim, "Prediksi (detik)", S.Aim, "Prediction", 0, 0.4, 0.01, "%.2f")
addToggle(pAim, "Kompensasi Ping", S.Aim, "AutoPing")
addSlider(pAim, "Humanize", S.Aim, "Humanize", 0, 1, 0.05, "%.2f")
addSection(pAim, "Visibilitas")
addToggle(pAim, "Wall Check", S.Aim, "WallCheck")
addToggle(pAim, "Wall Check Multi-titik", S.Aim, "MultiPoint")
-- TRIGGER
addSection(pTrig, "Triggerbot Smart")
addToggle(pTrig, "Triggerbot", S.Trigger, "Enabled")
addCycle(pTrig, "Mode", S.Trigger, "Mode", OPT.TriggerMode)
addKeybind(pTrig, "Tombol Tahan", S.Keys, "Trigger")
addToggle(pTrig, "Smart Mode (adaptif)", S.Trigger, "Smart")
addSection(pTrig, "Perilaku")
addSlider(pTrig, "Reaction Time", S.Trigger, "Reaction", 0, 400, 5, "%.0f ms")
addSlider(pTrig, "Variasi (Jitter)", S.Trigger, "Jitter", 0, 200, 5, "%.0f ms")
addSlider(pTrig, "Peluang Tembak", S.Trigger, "Chance", 10, 100, 5, "%.0f%%")
addSlider(pTrig, "Tembakan / detik", S.Trigger, "CPS", 1, 20, 1, "%.0f")
addSlider(pTrig, "Burst (0 = terus)", S.Trigger, "Burst", 0, 10, 1, "%.0f")
addSlider(pTrig, "Toleransi Bidik", S.Trigger, "Radius", 0, 20, 1, "%.0f px")
addInfo(pTrig, "Menembak lewat Tool:Activate() pada senjata yang dipegang. Kalau senjata di game kamu pakai sistem lain, ubah fungsi fireWeapon() di bagian atas script. Smart Mode = reaction time menyesuaikan jarak, kecepatan, dan health target.")
-- VISUAL
addSection(pVis, "ESP")
addToggle(pVis, "ESP", S.Visual, "ESP")
addCycle(pVis, "Gaya Box", S.Visual, "Box", OPT.Box)
addToggle(pVis, "Nama", S.Visual, "Name")
addToggle(pVis, "Jarak", S.Visual, "Distance")
addToggle(pVis, "Nama Senjata", S.Visual, "Tool")
addToggle(pVis, "Health Bar", S.Visual, "Health")
addToggle(pVis, "Skeleton", S.Visual, "Skeleton")
addToggle(pVis, "Chams (tembus tembok)", S.Visual, "Chams")
addToggle(pVis, "Panah Off-screen", S.Visual, "Offscreen")
addCycle(pVis, "Mode Warna", S.Visual, "ColorMode", OPT.ColorMode)
addSwatches(pVis, "Warna Kustom", S.Visual, "Color", PALETTE)
addSection(pVis, "Tracer")
addToggle(pVis, "Tracer", S.Visual, "Tracer")
addCycle(pVis, "Asal Tracer", S.Visual, "TracerFrom", OPT.TracerFrom)
addSection(pVis, "FOV Circle")
addToggle(pVis, "FOV Circle", S.Visual, "FOVCircle")
addToggle(pVis, "Isi Lingkaran", S.Visual, "FOVFilled")
addToggle(pVis, "Garis ke Target", S.Visual, "FOVLine")
addSwatches(pVis, "Warna FOV", S.Visual, "FOVColor", PALETTE)
-- CONFIG
addSection(pCfg, "Umum")
addToggle(pCfg, "Team Check", S.General, "TeamCheck")
addToggle(pCfg, "Abaikan Teman", S.General, "IgnoreFriends")
addSlider(pCfg, "Jarak Maksimal", S.General, "MaxDistance", 100, 5000, 50, "%.0f stud")
addSection(pCfg, "Tampilan")
addSwatches(pCfg, "Warna Aksen", S.UI, "Accent", PALETTE, function()
applyTheme()
refreshAll()
end)
addCycle(pCfg, "Tekstur Menu", S.UI, "Texture", OPT.Texture, rebuildTexture)
addSlider(pCfg, "Transparansi Menu", S.UI, "Transparency", 0, 0.6, 0.05, "%.2f", applyWindowAlpha)
addToggle(pCfg, "Tombol HUD (AIM / TRG)", S.UI, "HUD", applyHud)
addSection(pCfg, "Kontrol")
addKeybind(pCfg, "Buka / Tutup Menu", S.Keys, "Menu")
addKeybind(pCfg, "Tombol Aim", S.Keys, "Aim")
addSection(pCfg, "Lainnya")
addButton(pCfg, "Reset Pengaturan", resetSettings)
addButton(pCfg, "Unload Script", unload, true)
addInfo(pCfg, "Tekstur gambar sendiri: upload gambar seamless di Creator Hub, lalu isi tabel Textures di bagian atas script dengan rbxassetid://ID. Semua tombol melayang (MENU / AIM / TRG) dan jendela menu bisa digeser dengan drag.")
selectTab(1)
rebuildTexture()
applyHud()
applyWindowAlpha()
----------------------------------------------------------------
-- status live di header + warna tombol HUD
----------------------------------------------------------------
local hudTimer = 0
connect(RunService.Heartbeat, function(dt)
hudTimer = hudTimer + dt
if hudTimer < 0.1 then
return
end
hudTimer = 0
local text
local target = lock.entity
if target and target.Root then
local dist = (target.Root.Position - Camera.CFrame.Position).Magnitude
text = string.format("● Lock: %s · %.0fm", target.Player.DisplayName, dist)
elseif aimActive() then
text = "● Mencari target..."
else
text = "○ Standby"
end
if S.Trigger.Enabled then
text = text .. " · Trigger ON"
end
statusLabel.Text = text
statusLabel.TextColor3 = target and S.UI.Accent or MUTED_COLOR
aimBtn.BackgroundColor3 = aimActive() and S.UI.Accent or Color3.new(1, 1, 1)
trigBtn.BackgroundColor3 = S.Trigger.Enabled and S.UI.Accent or Color3.new(1, 1, 1)
end)
----------------------------------------------------------------
-- input: keybind, buka/tutup menu, aim, trigger
----------------------------------------------------------------
connect(UserInputService.InputBegan, function(input, processed)
-- menunggu tombol baru untuk keybind
if captureCallback then
local callback = captureCallback
local kind = input.UserInputType
if kind == Enum.UserInputType.Keyboard then
captureCallback = nil
callback(input.KeyCode ~= Enum.KeyCode.Escape and input.KeyCode or nil)
elseif kind == Enum.UserInputType.MouseButton1 or kind == Enum.UserInputType.MouseButton2
or kind == Enum.UserInputType.MouseButton3 then
captureCallback = nil
callback(kind)
end
return
end
if UserInputService:GetFocusedTextBox() then
return
end
if inputMatches(input, S.Keys.Aim) then
keyHeld = true
if S.Aim.Mode == "Toggle" and S.Aim.Enabled then
aimToggled = not aimToggled
notify(aimToggled and "Aim: ON" or "Aim: OFF")
end
end
if not processed then
if inputMatches(input, S.Keys.Menu) then
setMenu(not root.Visible)
end
if inputMatches(input, S.Keys.Trigger) then
triggerHeld = true
end
end
end)
connect(UserInputService.InputEnded, function(input)
if inputMatches(input, S.Keys.Aim) then
keyHeld = false
end
if inputMatches(input, S.Keys.Trigger) then
triggerHeld = false
end
end)
shared.AimAssistV2 = { Settings = S, Unload = unload }
end
--------------------------------------------------------------------
-- 10. MULAI
--------------------------------------------------------------------
for _, player in ipairs(Players:GetPlayers()) do
addPlayer(player)
end
connect(Players.PlayerAdded, addPlayer)
connect(Players.PlayerRemoving, removePlayer)
connect(LocalPlayer.CharacterAdded, function()
filterDirty = true
end)
connect(LocalPlayer.CharacterRemoving, function()
filterDirty = true
end)
print("[AimAssist v2] aktif | RightShift = buka/tutup menu")The script for shooting games functions to make it easier to aim at the enemy.

Universal