Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
RunService = :()
player = Players.LocalPlayer
playerGui = player:()
lockedTarget =
targetLockActive =
autoMacroLockGeneration =
busy =
macroRunning =
AUTO_MACRO_DISTANCE =
previousAutoMacroDistance =
autoMacroArmed =
autoMacroPending =
autoMacroTarget =
autoMacroConsumedGeneration = -
autoMacroConnection =
()
previousAutoMacroDistance =
autoMacroArmed =
autoMacroPending =
autoMacroTarget = lockedTarget
scriptEnabled =
uiVisible =
targetLabel =
targetTextConnection =
targetAncestryConnection =
targetVisibilityConnection =
mouseTrackingConnection =
mouseTrackingActive =
lastReticleScreenPosition =
lastReticleAdornee =
savedMousePosition =
MOUSE_TRACK_INTERVAL =
mouseTrackAccumulator =
mouseTrackingCritical =
PREDICTION_TIME =
VELOCITY_SMOOTHING =
MIN_VELOCITY =
MAX_PREDICTION_DISTANCE =
lastTargetPosition =
smoothedTargetVelocity = .zero
lastVelocityTime =
RUSH_CHECK_WINDOW =
RUSH_CHECK_INTERVAL =
REQUIRE_HEALTH_CHANGE =
DISTANCE_SUCCESS_THRESHOLD =
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = playerGui
status = .()
status.Name =
status.Size = .(, )
status.Position = .(, -, , )
status.BackgroundColor3 = .(, , )
status.BackgroundTransparency =
status.BorderSizePixel =
status.TextColor3 = .(, , )
status.TextSize =
status.Font = .Font.SourceSansBold
status.Text =
status.Parent = gui
LIVE_RANGE_LIMIT =
liveTargetDistance =
liveDistanceText =
liveRangeText =
diagnosticState = {
status = , target = , health = ,
distance = , details =
}
diagnostic = .()
diagnostic.Name =
diagnostic.Size = .(, )
diagnostic.Position = .(, , , )
diagnostic.BackgroundColor3 = .(, , )
diagnostic.BackgroundTransparency =
diagnostic.BorderSizePixel =
diagnostic.Parent = gui
diagnosticCorner = .()
diagnosticCorner.CornerRadius = .(, )
diagnosticCorner.Parent = diagnostic
diagnosticStroke = .()
diagnosticStroke.Color = .(, , )
diagnosticStroke.Parent = diagnostic
diagnosticTitle = .()
diagnosticTitle.Size = .(, -, , )
diagnosticTitle.Position = .(, )
diagnosticTitle.BackgroundTransparency =
diagnosticTitle.Text =
diagnosticTitle.TextColor3 = .(, , )
diagnosticTitle.TextSize =
diagnosticTitle.Font = .Font.GothamBold
diagnosticTitle.TextXAlignment = .TextXAlignment.Left
diagnosticTitle.Parent = diagnostic
diagnosticText = .()
diagnosticText.Size = .(, -, , )
diagnosticText.Position = .(, )
diagnosticText.BackgroundTransparency =
diagnosticText.TextColor3 = .(, , )
diagnosticText.TextSize =
diagnosticText.Font = .Font.Code
diagnosticText.TextXAlignment = .TextXAlignment.Left
diagnosticText.TextYAlignment = .TextYAlignment.Top
diagnosticText.Parent = diagnostic
rangeLight = .()
rangeLight.Name =
rangeLight.Size = .(, )
rangeLight.Position = .(, )
rangeLight.BackgroundColor3 = .(, , )
rangeLight.BorderSizePixel =
rangeLight.Parent = diagnostic
rangeLightCorner = .()
rangeLightCorner.CornerRadius = .(, )
rangeLightCorner.Parent = rangeLight
liveRangeLabel = .()
liveRangeLabel.Name =
liveRangeLabel.Size = .(, -, , )
liveRangeLabel.Position = .(, )
liveRangeLabel.BackgroundTransparency =
liveRangeLabel.Text =
liveRangeLabel.TextColor3 = .(, , )
liveRangeLabel.TextSize =
liveRangeLabel.Font = .Font.GothamBold
liveRangeLabel.TextXAlignment = .TextXAlignment.Left
liveRangeLabel.Parent = diagnostic
rangePopupGui = .()
rangePopupGui.Name =
rangePopupGui.ResetOnSpawn =
rangePopupGui.IgnoreGuiInset =
rangePopupGui.DisplayOrder =
rangePopupGui.ZIndexBehavior = .ZIndexBehavior.Sibling
rangePopupGui.Parent = playerGui
rangePopup = .()
rangePopup.Name =
rangePopup.AnchorPoint = .(, )
rangePopup.Position = .(, , , )
rangePopup.Size = .(, )
rangePopup.BackgroundTransparency =
rangePopup.BorderSizePixel =
rangePopup.Active =
rangePopup.Visible =
rangePopup.Parent = rangePopupGui
signOuter = .()
signOuter.Name =
signOuter.Size = .(, )
signOuter.Position = .(, )
signOuter.BackgroundTransparency =
signOuter.BorderSizePixel =
signOuter.Parent = rangePopup
signBands = {}
bandWidths = {, , , , , , , }
i, width (bandWidths)
band = .()
band.Name = .. i
band.AnchorPoint = .(, )
band.Position = .(, , , (i - ) * )
band.Size = .(width, )
band.BorderSizePixel =
band.BackgroundColor3 = .(, , )
band.Parent = signOuter
.(signBands, band)
signInner = .()
signInner.Name =
signInner.Size = .(, )
signInner.Position = .(, )
signInner.BackgroundTransparency =
signInner.BorderSizePixel =
signInner.Parent = signOuter
innerWidths = {, , , , , , , }
i, width (innerWidths)
band = .()
band.Name = .. i
band.AnchorPoint = .(, )
band.Position = .(, , , (i - ) * )
band.Size = .(width, )
band.BorderSizePixel =
band.BackgroundColor3 = .(, , )
band.Parent = signInner
signFace = .()
signFace.Name =
signFace.Size = .(, )
signFace.Position = .(, )
signFace.BackgroundColor3 = .(, , )
signFace.BorderSizePixel =
signFace.Parent = signOuter
faceWidths = {, , , , , , , }
i, width (faceWidths)
band = .()
band.Name = .. i
band.AnchorPoint = .(, )
band.Position = .(, , , (i - ) * )
band.Size = .(width, )
band.BorderSizePixel =
band.BackgroundColor3 = .(, , )
band.Parent = signFace
rangePopupStatus = .()
rangePopupStatus.Name =
rangePopupStatus.BackgroundTransparency =
rangePopupStatus.AnchorPoint = .(, )
rangePopupStatus.Position = .(, , , )
rangePopupStatus.Size = .(, -, , )
rangePopupStatus.Font = .Font.GothamBlack
rangePopupStatus.Text =
rangePopupStatus.TextColor3 = .(, , )
rangePopupStatus.TextScaled =
rangePopupStatus.ZIndex =
rangePopupStatus.Parent = signFace
rangePopupDistance = .()
rangePopupDistance.Name =
rangePopupDistance.BackgroundTransparency =
rangePopupDistance.AnchorPoint = .(, )
rangePopupDistance.Position = .(, , , )
rangePopupDistance.Size = .(, -, , )
rangePopupDistance.Font = .Font.GothamBold
rangePopupDistance.Text =
rangePopupDistance.TextColor3 = .(, , )
rangePopupDistance.TextScaled =
rangePopupDistance.ZIndex =
rangePopupDistance.Parent = signFace
resizeHandle = .()
resizeHandle.Name =
resizeHandle.AnchorPoint = .(, )
resizeHandle.Position = .(, , , )
resizeHandle.Size = .(, )
resizeHandle.BackgroundColor3 = .(, , )
resizeHandle.BorderSizePixel =
resizeHandle.Text =
resizeHandle.TextColor3 = .(, , )
resizeHandle.TextSize =
resizeHandle.Font = .Font.GothamBold
resizeHandle.ZIndex =
resizeHandle.Parent = rangePopup
resizeCorner = .()
resizeCorner.CornerRadius = .(, )
resizeCorner.Parent = resizeHandle
draggingPopup =
resizingPopup =
dragStartInput =
popupStartPosition =
popupStartSize =
activePointerInput =
(input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
draggingPopup =
dragStartInput = input.Position
popupStartPosition = rangePopup.Position
activePointerInput = input
rangePopup.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
input.Position.X >= resizeHandle.AbsolutePosition.X input.Position.Y >= resizeHandle.AbsolutePosition.Y
(input)
)
signOuter.InputBegan:(beginPopupDrag)
signFace.InputBegan:(beginPopupDrag)
rangePopupStatus.InputBegan:(beginPopupDrag)
rangePopupDistance.InputBegan:(beginPopupDrag)
resizeHandle.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
resizingPopup =
dragStartInput = input.Position
popupStartSize = rangePopup.Size
activePointerInput = input
)
UserInputService.InputChanged:((input)
dragStartInput
isPointerMove = input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
isPointerMove
delta = input.Position - dragStartInput
draggingPopup popupStartPosition
rangePopup.Position = .(
popupStartPosition.X.Scale, popupStartPosition.X.Offset + delta.X,
popupStartPosition.Y.Scale, popupStartPosition.Y.Offset + delta.Y
)
resizingPopup popupStartSize
width = .(popupStartSize.X.Offset + delta.X, , )
height = .(popupStartSize.Y.Offset + delta.Y, , )
rangePopup.Size = .(width, height)
scale = .(width / , height / )
signOuter.Size = .( * scale, * scale)
signOuter.Position = .( * scale, )
i, band (signBands)
band.Size = .(bandWidths[i] * scale, * scale)
band.Position = .(, , , (i - ) * * scale)
signInner.Size = .( * scale, * scale)
signInner.Position = .( * scale, * scale)
i, band (signInner:())
band:()
band.Size = .(innerWidths[i] * scale, * scale)
band.Position = .(, , , (i - ) * * scale)
signFace.Size = .( * scale, * scale)
signFace.Position = .( * scale, * scale)
i, band (signFace:())
band:()
band.Size = .(faceWidths[i] * scale, * scale)
band.Position = .(, , , (i - ) * * scale)
rangePopupStatus.Size = .(, - * scale, , * scale)
rangePopupDistance.Size = .(, - * scale, , * scale)
resizeHandle.Size = .( * scale, * scale)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
draggingPopup =
resizingPopup =
dragStartInput =
popupStartPosition =
popupStartSize =
activePointerInput =
)
UserInputService.InputBegan:((input)
scriptEnabled
input.UserInputType ~= .UserInputType.Keyboard
input.KeyCode ~= .KeyCode.F6
UserInputService:()
rangePopup.Visible = rangePopup.Visible
)
copyDiagnosticButton = .()
copyDiagnosticButton.Name =
copyDiagnosticButton.Size = .(, )
copyDiagnosticButton.Position = .(, -, , -)
copyDiagnosticButton.BackgroundColor3 = .(, , )
copyDiagnosticButton.BorderSizePixel =
copyDiagnosticButton.Text =
copyDiagnosticButton.TextColor3 = .(, , )
copyDiagnosticButton.TextSize =
copyDiagnosticButton.Font = .Font.GothamBold
copyDiagnosticButton.Parent = diagnostic
copyDiagnosticCorner = .()
copyDiagnosticCorner.CornerRadius = .(, )
copyDiagnosticCorner.Parent = copyDiagnosticButton
()
viewport = .CurrentCamera .CurrentCamera.ViewportSize
reticleText = lastReticleScreenPosition
.(, lastReticleScreenPosition.X, lastReticleScreenPosition.Y)
.({
,
.. player.Name,
.. (lockedTarget lockedTarget.Name ),
.. (targetLockActive),
.. (mouseTrackingActive),
.. reticleText,
.. (lastReticleAdornee),
.. (viewport (viewport) ),
.. (macroRunning),
.. (liveDistanceText),
.. (liveRangeText),
.. (diagnosticText diagnosticText.Text )
}, )
copyDiagnosticButton.MouseButton1Click:(()
clipboard = (setclipboard) == setclipboard
(toclipboard) == toclipboard
clipboard
copyDiagnosticButton.Text =
ok = (clipboard, ())
copyDiagnosticButton.Text = ok
.(, ()
copyDiagnosticButton copyDiagnosticButton.Parent
copyDiagnosticButton.Text =
)
)
()
diagnosticText
shownDistance = liveTargetDistance liveDistanceText diagnosticState.distance
diagnosticText.Text =
.. (diagnosticState.status) .. ..
.. (diagnosticState.target) .. ..
.. (diagnosticState.health) .. ..
.. (shownDistance) .. ..
.. (diagnosticState.details)
(state, targetName, healthText, distanceText, details)
diagnosticState.status = state
diagnosticState.target = targetName
diagnosticState.health = healthText
diagnosticState.distance = distanceText
diagnosticState.details = details
()
()
(
,
,
,
,
)
()
(npcName, numericId)
npcName npcName ==
_, object (:())
object:() object.Name == npcName
humanoid =
object:()
root =
object:()
humanoid root
object
numericId
_, object (:())
object:() object.Name == (numericId)
humanoid =
object:()
root =
object:()
humanoid root
object
(text)
text text ==
text = (text)
userId =
.(text, )
numericId =
userId (userId)
numericId
target =
Players:(numericId)
target target ~= player
target
.(
.(text),
)
npcName =
.(
text,
)
npcName
npcName =
npcName:(, )
:(, )
npcModel =
(
npcName,
numericId
)
npcModel
{
Name = npcModel.Name,
UserId = numericId,
Character = npcModel,
IsNPC = ,
NPCModel = npcModel
}
(reason)
hadTarget = lockedTarget ~= targetLockActive
lockedTarget =
targetLockActive =
()
()
status.Text =
()
hadTarget reason
(, reason)
(text, confirmedByTextChange)
target = (text)
target
()
confirmedByTextChange
targetLockActive =
autoMacroLockGeneration = autoMacroLockGeneration +
lockedTarget ~= target
lockedTarget = target
()
lastTargetPosition =
smoothedTargetVelocity = .zero
lastVelocityTime =
status.Text = .. target.Name
target.IsNPC
(, target.Name)
(, target.Name, .. target.UserId .. )
()
targetTextConnection
targetTextConnection:()
targetTextConnection =
targetAncestryConnection
targetAncestryConnection:()
targetAncestryConnection =
targetLabel =
(label)
targetLabel == label
()
targetLabel = label
targetLabel
(, targetLabel:())
targetTextConnection = targetLabel:():(()
targetLabel
(targetLabel.Text, )
)
targetVisibilityConnection = targetLabel:():(()
targetLabel
targetLabel.Visible
target = (targetLabel.Text)
target
(targetLabel.Text, )
()
()
)
.(()
targetLabel targetLabel.Parent scriptEnabled
target = (targetLabel.Text)
target targetLabel.Visible
(targetLabel.Text, )
()
)
targetAncestryConnection = targetLabel.AncestryChanged:((_, parent)
parent
()
()
()
)
(object)
(
object:()
object:()
object:()
)
target =
(
object.Text
)
target
(object)
()
_, object (
playerGui:()
)
targetLabel
(object)
()
playerGuiConnection =
playerGui.DescendantAdded:(
(object)
scriptEnabled targetLabel
(object)
)
.(()
scriptEnabled gui.Parent
targetLabel
()
targetLabel:(playerGui)
()
()
()
targetLabel.Visible
()
.()
)
()
lockedTarget
character =
lockedTarget.Character
character
humanoid =
character:(
)
root =
character:(
)
humanoid humanoid.Health <=
root
character, root
.(()
scriptEnabled gui.Parent
target = lockedTarget
myCharacter = player.Character
myRoot = myCharacter myCharacter:()
targetCharacter = target target.Character
targetRoot = targetCharacter targetCharacter:()
target myRoot targetRoot
liveTargetDistance = (myRoot.Position - targetRoot.Position).Magnitude
liveDistanceText = .(, liveTargetDistance)
liveTargetDistance <= LIVE_RANGE_LIMIT
liveRangeText =
rangeLight.BackgroundColor3 = .(, , )
liveRangeLabel.TextColor3 = .(, , )
liveRangeText =
rangeLight.BackgroundColor3 = .(, , )
liveRangeLabel.TextColor3 = .(, , )
liveRangeLabel.Text = .(
,
liveRangeText,
liveTargetDistance
)
insideRange = liveTargetDistance <= LIVE_RANGE_LIMIT
signColor = insideRange .(, , ) .(, , )
_, band (signBands) band.BackgroundColor3 = signColor
_, band (signFace:())
band:() band.BackgroundColor3 = signColor
signFace.BackgroundColor3 = signColor
rangePopupStatus.Text = insideRange
rangePopupDistance.Text = .(, liveTargetDistance)
liveTargetDistance =
liveDistanceText =
liveRangeText =
rangeLight.BackgroundColor3 = .(, , )
liveRangeLabel.TextColor3 = .(, , )
liveRangeLabel.Text =
signColor = .(, , )
_, band (signBands) band.BackgroundColor3 = signColor
_, band (signFace:())
band:() band.BackgroundColor3 = signColor
signFace.BackgroundColor3 = signColor
rangePopupStatus.Text =
rangePopupDistance.Text =
()
.()
)
()
lastTargetPosition =
smoothedTargetVelocity = .zero
lastVelocityTime =
(bodyPart)
bodyPart
currentPosition =
bodyPart.Position
now =
.()
lastTargetPosition
lastVelocityTime
lastTargetPosition =
currentPosition
lastVelocityTime =
now
smoothedTargetVelocity =
.zero
currentPosition
deltaTime =
now - lastVelocityTime
deltaTime <=
deltaTime >
lastTargetPosition =
currentPosition
lastVelocityTime =
now
smoothedTargetVelocity =
.zero
currentPosition
rawVelocity =
(currentPosition - lastTargetPosition)
/ deltaTime
lastTargetPosition =
currentPosition
lastVelocityTime =
now
rawVelocity.Magnitude < MIN_VELOCITY
rawVelocity =
.zero
smoothedTargetVelocity =
smoothedTargetVelocity:(
rawVelocity,
VELOCITY_SMOOTHING
)
prediction =
smoothedTargetVelocity
* PREDICTION_TIME
prediction.Magnitude >
MAX_PREDICTION_DISTANCE
prediction =
prediction.Unit
* MAX_PREDICTION_DISTANCE
currentPosition + prediction
()
lockedTarget
character, root = ()
camera = .CurrentCamera
character root camera
interface = playerGui:()
interface
reticle = interface:(, )
reticle reticle:() reticle.Visible
billboard = reticle:()
billboard billboard.Enabled
ancestor = reticle.Parent
ancestor ancestor ~= interface
ancestor:() ancestor.Visible
ancestor = ancestor.Parent
adornee = billboard.Adornee
adornee adornee:()
adornee:(character)
projected, onScreen = camera:(adornee.Position)
onScreen projected.Z <=
projected.X ~= projected.X projected.Y ~= projected.Y
.(projected.X) == .huge
.(projected.Y) == .huge
x, y = .(projected.X), .(projected.Y)
lastReticleScreenPosition = .(x, y)
lastReticleAdornee = adornee:()
x, y
(x, y)
(mousemoveabs) ~=
(
)
(
x,
y
)
()
mouseTrackingActive =
mouseTrackingConnection
mouseTrackingConnection:()
mouseTrackingConnection =
mouseTrackAccumulator =
mouseTrackingCritical =
()
()
()
scriptEnabled
lockedTarget
mouseTrackingActive =
mouseTrackAccumulator =
()
(
)
(
,
PREDICTION_TIME,
)
mouseTrackingConnection =
RunService.RenderStepped:(
(deltaTime)
scriptEnabled
()
mouseTrackingActive
lockedTarget
mouseTrackAccumulator = mouseTrackAccumulator + deltaTime
mouseTrackAccumulator < MOUSE_TRACK_INTERVAL
mouseTrackAccumulator =
x, y = ()
x y
(mousemoveabs) ==
(
x,
y
)
)
FIXED_KEY1_TO_KEY2_DELAY_MS =
KEY1_TO_KEY2_BASE_MS = FIXED_KEY1_TO_KEY2_DELAY_MS
KEY1_TO_KEY2_PING_FACTOR =
KEY1_TO_KEY2_MIN_MS =
KEY1_TO_KEY2_MAX_MS =
KEY1_TO_KEY2_SMOOTHING =
PING_SMOOTHING =
PING_UPDATE_INTERVAL =
currentPingMs =
smoothedPingMs =
recommendedTransitionMs =
lastAppliedTransitionMs =
transitionSamples =
timingStatus =
(value, minimum, maximum)
.(minimum, .(maximum, value))
()
success, value = (()
stats = :()
network = stats:()
network
serverStatsItem = network:()
serverStatsItem
dataPing = serverStatsItem:()
dataPing
ping = dataPing:()
(ping) ~=
ping
)
success (value) ==
value
()
ping = ()
ping
timingStatus =
currentPingMs = ping
smoothedPingMs
smoothedPingMs = ping
smoothedPingMs =
smoothedPingMs +
((ping - smoothedPingMs) * PING_SMOOTHING)
rawRecommendation =
KEY1_TO_KEY2_BASE_MS +
(smoothedPingMs * KEY1_TO_KEY2_PING_FACTOR)
rawRecommendation =
(
rawRecommendation,
KEY1_TO_KEY2_MIN_MS,
KEY1_TO_KEY2_MAX_MS
)
recommendedTransitionMs
recommendedTransitionMs = rawRecommendation
recommendedTransitionMs =
recommendedTransitionMs +
((rawRecommendation - recommendedTransitionMs) * KEY1_TO_KEY2_SMOOTHING)
timingStatus =
()
()
recommendedTransitionMs
recommendedTransitionMs =
(
KEY1_TO_KEY2_BASE_MS +
((smoothedPingMs ) * KEY1_TO_KEY2_PING_FACTOR),
KEY1_TO_KEY2_MIN_MS,
KEY1_TO_KEY2_MAX_MS
)
recommendedTransitionMs
.(()
scriptEnabled
()
.(PING_UPDATE_INTERVAL)
)
timingWindow = .()
timingWindow.Name =
timingWindow.Size = .(, )
timingWindow.Position = .(, -, , )
timingWindow.BackgroundColor3 = .(, , )
timingWindow.BackgroundTransparency =
timingWindow.BorderSizePixel =
timingWindow.Parent = gui
timingCorner = .()
timingCorner.CornerRadius = .(, )
timingCorner.Parent = timingWindow
timingStroke = .()
timingStroke.Color = .(, , )
timingStroke.Parent = timingWindow
timingTitle = .()
timingTitle.Size = .(, -, , )
timingTitle.Position = .(, )
timingTitle.BackgroundTransparency =
timingTitle.Text =
timingTitle.TextColor3 = .(, , )
timingTitle.TextSize =
timingTitle.Font = .Font.GothamBold
timingTitle.TextXAlignment = .TextXAlignment.Left
timingTitle.Parent = timingWindow
timingText = .()
timingText.Size = .(, -, , )
timingText.Position = .(, )
timingText.BackgroundTransparency =
timingText.TextColor3 = .(, , )
timingText.TextSize =
timingText.Font = .Font.Code
timingText.TextXAlignment = .TextXAlignment.Left
timingText.TextYAlignment = .TextYAlignment.Top
timingText.Parent = timingWindow
timingInputLabel = .()
timingInputLabel.Name =
timingInputLabel.Size = .(, )
timingInputLabel.Position = .(, )
timingInputLabel.BackgroundTransparency =
timingInputLabel.Text =
timingInputLabel.TextColor3 = .(, , )
timingInputLabel.TextSize =
timingInputLabel.Font = .Font.Gotham
timingInputLabel.TextXAlignment = .TextXAlignment.Left
timingInputLabel.Parent = timingWindow
timingInput = .()
timingInput.Name =
timingInput.Size = .(, )
timingInput.Position = .(, )
timingInput.BackgroundColor3 = .(, , )
timingInput.BorderSizePixel =
timingInput.TextColor3 = .(, , )
timingInput.PlaceholderColor3 = .(, , )
timingInput.TextSize =
timingInput.Font = .Font.Code
timingInput.ClearTextOnFocus =
timingInput.Text = (FIXED_KEY1_TO_KEY2_DELAY_MS)
timingInput.PlaceholderText =
timingInput.Parent = timingWindow
updateTimingUI
timingInputCorner = .()
timingInputCorner.CornerRadius = .(, )
timingInputCorner.Parent = timingInput
timingInput.FocusLost:(()
requestedDelay = (timingInput.Text)
requestedDelay
timingInput.Text = (FIXED_KEY1_TO_KEY2_DELAY_MS)
timingStatus =
()
FIXED_KEY1_TO_KEY2_DELAY_MS = (requestedDelay, , )
KEY1_TO_KEY2_BASE_MS = FIXED_KEY1_TO_KEY2_DELAY_MS
timingInput.Text = (FIXED_KEY1_TO_KEY2_DELAY_MS)
timingStatus =
(, FIXED_KEY1_TO_KEY2_DELAY_MS, )
()
)
updateTimingUI = ()
timingText
pingText = currentPingMs .(, currentPingMs)
smoothPingText = smoothedPingMs .(, smoothedPingMs)
recommendedText = recommendedTransitionMs .(, recommendedTransitionMs)
appliedText = lastAppliedTransitionMs .(, lastAppliedTransitionMs)
timingText.Text =
.. pingText .. ..
.. smoothPingText .. ..
.. .(, FIXED_KEY1_TO_KEY2_DELAY_MS) .. ..
.. appliedText .. ..
.. (transitionSamples) .. ..
..
.. .(, FIXED_KEY1_TO_KEY2_DELAY_MS) .. ..
.. timingStatus
.(()
scriptEnabled
()
.()
)
STEP2_HEALTH_CHECK_WINDOW =
STEP2_HEALTH_CHECK_INTERVAL =
macroSteps = {
{
key = .KeyCode.One,
delayAfter =
},
{
key = .KeyCode.Two,
delayAfter =
},
{
keys = {
.KeyCode.Three,
.KeyCode.Four,
.KeyCode.Five,
.KeyCode.Six,
.KeyCode.Seven,
.KeyCode.Eight,
},
delayAfter =
},
{
key = .KeyCode.Nine,
delayAfter = ,
repeats =
},
}
(key)
scriptEnabled
(keypress) ~=
(keyrelease) ~=
(
)
keyValue = key.Value
(keyValue)
.()
(keyValue)
(keys)
scriptEnabled
keys #keys ==
(keypress) ~=
(keyrelease) ~=
(
)
(
)
_, key (keys)
scriptEnabled
(
key.Value
)
(
,
key.Name
)
.()
_, key (keys)
(
key.Value
)
(
,
key.Name
)
(
)
function diagnoseHighspeedRush(target)
if not scriptEnabled then
return false
end
if not target then
setDiagnostic(
"FAILED",
"NONE",
"--",
"--",
"No locked target."
)
return false
end
local character =
target.Character
if not character then
setDiagnostic(
"FAILED",
target.Name,
"--",
"--",
"Target character unavailable."
)
return false
end
local targetRoot =
character:FindFirstChild(
"HumanoidRootPart"
)
local humanoid =
character:FindFirstChildOfClass(
"Humanoid"
)
if not targetRoot then
setDiagnostic(
"FAILED",
target.Name,
"--",
"--",
"Target root unavailable."
)
return false
end
if not humanoid then
setDiagnostic(
"FAILED",
target.Name,
"--",
"--",
"Target humanoid unavailable."
)
return false
end
local myCharacter =
player.Character
local myRoot =
myCharacter
and myCharacter:FindFirstChild(
"HumanoidRootPart"
)
if not myRoot then
setDiagnostic(
"FAILED",
target.Name,
string.format(
"%.1f",
humanoid.Health
),
"--",
"Your character root unavailable."
)
return false
end
local startingHealth =
humanoid.Health
local startingDistance =
(myRoot.Position - targetRoot.Position).Magnitude
setDiagnostic(
"CHECKING",
target.Name,
string.format(
"%.1f -> %.1f",
startingHealth,
startingHealth
),
string.format(
"%.1f",
startingDistance
),
"Watching Highspeed Rush..."
)
print(
"[RushCheck] Starting health:",
startingHealth
)
print(
"[RushCheck] Starting distance:",
startingDistance
)
local elapsed = 0
while elapsed < RUSH_CHECK_WINDOW do
if not scriptEnabled then
return false
end
if lockedTarget ~= target then
setDiagnostic(
"FAILED",
target.Name,
"--",
"--",
"Locked target changed."
)
return false
end
character =
target.Character
if not character then
setDiagnostic(
"FAILED",
target.Name,
"--",
"--",
"Target disappeared."
)
return false
end
targetRoot =
character:FindFirstChild(
"HumanoidRootPart"
)
humanoid =
character:FindFirstChildOfClass(
"Humanoid"
)
myCharacter =
player.Character
myRoot =
myCharacter
and myCharacter:FindFirstChild(
"HumanoidRootPart"
)
if not targetRoot
or not humanoid
or not myRoot then
task.wait(
RUSH_CHECK_INTERVAL
)
elapsed = elapsed + RUSH_CHECK_INTERVAL
continue
end
local currentHealth =
humanoid.Health
local currentDistance =
(myRoot.Position - targetRoot.Position).Magnitude
local healthChanged =
currentHealth < startingHealth
local distanceClosed =
currentDistance <=
DISTANCE_SUCCESS_THRESHOLD
local details =
"Waiting for confirmed hit..."
if healthChanged then
details =
"Health decreased - HIT CONFIRMED."
end
setDiagnostic(
"CHECKING",
target.Name,
string.format(
"%.1f -> %.1f",
startingHealth,
currentHealth
),
string.format(
"%.1f",
currentDistance
),
details
)
if REQUIRE_HEALTH_CHANGE
and healthChanged then
setDiagnostic(
"SUCCESS",
target.Name,
string.format(
"%.1f -> %.1f",
startingHealth,
currentHealth
),
string.format(
"%.1f",
currentDistance
),
"Highspeed Rush landed."
)
print(
"[RushCheck] SUCCESS - health changed."
)
return true
end
if not REQUIRE_HEALTH_CHANGE
and distanceClosed then
setDiagnostic(
"SUCCESS",
target.Name,
string.format(
"%.1f -> %.1f",
startingHealth,
currentHealth
),
string.format(
"%.1f",
currentDistance
),
"Rush reached target distance."
)
return true
end
task.wait(
RUSH_CHECK_INTERVAL
)
elapsed = elapsed + RUSH_CHECK_INTERVAL
end
local finalHealth =
humanoid
and humanoid.Health
or startingHealth
local finalDistance = "--"
if targetRoot and myRoot then
finalDistance =
string.format(
"%.1f",
(myRoot.Position - targetRoot.Position).Magnitude
)
end
setDiagnostic(
"FAILED",
target.Name,
string.format(
"%.1f -> %.1f",
startingHealth,
finalHealth
),
finalDistance,
"NO confirmed hit. Macro stopped."
)
print(
"[RushCheck] FAILED - no confirmed hit."
)
return false
end
--==================================================--
-- POST-STEP-1 TARGET TELEPORT + SHORT FOLLOW
-- Wait 150 ms after macrostep 1's in-game teleport before the fake TP starts.
local STEP1_FAKE_TP_START_DELAY = 0.150
-- Keep the fake TP follow active for 150 ms after it starts.
local STEP1_TELEPORT_TRACK_DURATION = 0.150
-- Stay three studs behind the target instead of overlapping its character.
local STEP1_TELEPORT_TARGET_OFFSET = CFrame.new(0, 0, 3)
local function teleportAndTrackTarget(target, duration)
if not scriptEnabled or not target or lockedTarget ~= target then
return false
end
local startedAt = os.clock()
local movedAtLeastOnce = false
while scriptEnabled
and lockedTarget == target
and (os.clock() - startedAt) < duration do
local targetCharacter = target.Character
local targetRoot = targetCharacter
and targetCharacter:FindFirstChild("HumanoidRootPart")
local myCharacter = player.Character
local myHumanoid = myCharacter
and myCharacter:FindFirstChildOfClass("Humanoid")
local myRoot = myCharacter
and myCharacter:FindFirstChild("HumanoidRootPart")
if not targetRoot or not myCharacter or not myHumanoid
or myHumanoid.Health <= 0 or not myRoot then
warn("[Macro] Step 1 teleport tracking stopped: character/root unavailable.")
return false
end
-- Refresh the destination every frame to follow target movement.
local destination = targetRoot.CFrame * STEP1_TELEPORT_TARGET_OFFSET
myCharacter:PivotTo(destination)
movedAtLeastOnce = true
RunService.Heartbeat:Wait()
end
if movedAtLeastOnce then
print(string.format(
"[Macro] Step 1 teleport/follow completed for %s (%.0f ms).",
tostring(target.Name),
duration * 1000
))
end
return movedAtLeastOnce and scriptEnabled and lockedTarget == target
end
-- RUN MACRO
--==================================================--
local function runMacro(startIndex)
startIndex = startIndex or 1
if not scriptEnabled then
return
end
if macroRunning then
return
end
if not lockedTarget then
setDiagnostic(
"IDLE",
"NONE",
"--",
"--",
"Macro cancelled: no target."
)
print(
"[Macro] No locked target."
)
return
end
macroRunning = true
local step2HealthBaseline = nil
local step2HealthTarget = nil
print(
"[Macro] START"
)
task.wait(0.001)
for index = startIndex, #macroSteps do
local step = macroSteps[index]
if not scriptEnabled then
break
end
if not lockedTarget then
print(
"[Macro] Target lost."
)
break
end
--================================================--
-- KEY 1 -> KEY 2 TRANSITION
--================================================--
local key1TransitionStart = nil
if step.key == Enum.KeyCode.One and index < #macroSteps then
-- Keep continuous tracking active during:
-- Key 1
-- dynamic 1 -> 2 timing
-- until Keys 3-7 are actually pressed.
mouseTrackingCritical = true
local aimX, aimY = getTargetMousePosition()
if not aimX
or not aimY
or type(mousemoveabs) ~= "function"
then
mouseTrackingCritical = false
print(
"[Macro] Step 1 cancelled: target mouse position unavailable."
)
break
end
moveMouseAbsolute(
aimX,
aimY
)
-- Refresh once more immediately before Key 1.
local finalAimX, finalAimY =
getTargetMousePosition()
if finalAimX and finalAimY then
moveMouseAbsolute(
finalAimX,
finalAimY
)
else
mouseTrackingCritical = false
print(
"[Macro] Step 1 cancelled: target moved off-screen before key 1."
)
break
end
key1TransitionStart = os.clock()
end
--================================================--
-- SINGLE KEY OR SIMULTANEOUS KEY GROUP
--================================================--
local pressed = false
if step.keys then
--================================================--
-- CAPTURE HEALTH BASELINE BEFORE KEYS 3-7
--================================================--
if index == 3 then
step2HealthTarget = lockedTarget
local baselineCharacter =
step2HealthTarget
and step2HealthTarget.Character
local baselineHumanoid =
baselineCharacter
and baselineCharacter:FindFirstChildOfClass("Humanoid")
if baselineHumanoid then
step2HealthBaseline = baselineHumanoid.Health
print(
"[Macro] Keys 3-7 health baseline:",
step2HealthBaseline
)
else
step2HealthBaseline = nil
print(
"[Macro] Keys 3-7 health check unavailable: target humanoid missing."
)
end
end
print(
"[Macro] Pressing simultaneous group:",
index,
"Keys 3-7"
)
pressed =
pressMacroKeysSimultaneously(
step.keys
)
elseif step.key then
local repeatCount =
step.repeats or 1
print(
"[Macro] Pressing:",
index,
step.key.Name,
"x" .. tostring(repeatCount)
)
for repeatIndex = 1, repeatCount do
if not scriptEnabled then
break
end
pressed =
pressMacroKey(
step.key
)
if not pressed then
print(
"[Macro] Could not press:",
index,
"repeat",
repeatIndex
)
break
end
if repeatIndex < repeatCount
and step.delayAfter > 0
then
task.wait(
step.delayAfter
)
end
end
end
if not pressed then
print(
"[Macro] Could not press:",
index
)
break
end
if step.key == Enum.KeyCode.One then
-- Let macrostep 1's in-game teleport finish first.
-- Start the fake TP 150 ms later, then follow the target
-- for the existing 150 ms tracking duration.
task.wait(STEP1_FAKE_TP_START_DELAY)
local step1Target = lockedTarget
local teleportTracked = teleportAndTrackTarget(
step1Target,
STEP1_TELEPORT_TRACK_DURATION
)
if not teleportTracked then
print("[Macro] Step 1 teleport/follow failed or target changed; stopping sequence.")
break
end
-- Preserve sub-frame precision for very short delays, but yield for
-- longer delays so the configured wait does not freeze this Luau thread.
local transitionStart = os.clock()
local fixedDelaySeconds = FIXED_KEY1_TO_KEY2_DELAY_MS / 1000
if fixedDelaySeconds > 0.01 then
task.wait(fixedDelaySeconds)
else
while (os.clock() - transitionStart) < fixedDelaySeconds do
end
end
lastAppliedTransitionMs = (os.clock() - transitionStart) * 1000
transitionSamples = transitionSamples + 1
timingStatus = "FIXED / APPLIED"
end
--================================================--
-- STEP 2 HEALTH CONFIRMATION GATE
--================================================--
if index == 3 and step.keys then
local healthConfirmed = false
local healthElapsed = 0
if step2HealthBaseline and step2HealthTarget then
print(
"[Macro] Keys 3-7 HIT CHECK: waiting for health reduction..."
)
while healthElapsed < STEP2_HEALTH_CHECK_WINDOW do
if not scriptEnabled then
break
end
if lockedTarget ~= step2HealthTarget then
print(
"[Macro] Keys 3-7 HIT CHECK FAILED: target changed."
)
break
end
local checkCharacter =
step2HealthTarget.Character
local checkHumanoid =
checkCharacter
and checkCharacter:FindFirstChildOfClass("Humanoid")
if checkHumanoid then
local currentStep2Health =
checkHumanoid.Health
if currentStep2Health < step2HealthBaseline then
healthConfirmed = true
print(
"[Macro] Keys 3-7 HIT CONFIRMED:",
step2HealthBaseline,
"->",
currentStep2Health
)
break
end
else
print(
"[Macro] Keys 3-7 HIT CHECK FAILED: target humanoid missing."
)
break
end
task.wait(STEP2_HEALTH_CHECK_INTERVAL)
healthElapsed = healthElapsed + STEP2_HEALTH_CHECK_INTERVAL
end
end
if not healthConfirmed then
local finalStep2Health = step2HealthBaseline
if step2HealthTarget and step2HealthTarget.Character then
local finalStep2Humanoid =
step2HealthTarget.Character:FindFirstChildOfClass("Humanoid")
if finalStep2Humanoid then
finalStep2Health = finalStep2Humanoid.Health
end
end
setDiagnostic(
"FAILED",
step2HealthTarget and step2HealthTarget.Name or "NONE",
string.format(
"%.1f -> %.1f",
step2HealthBaseline or 0,
finalStep2Health or 0
),
"--",
"Keys 3-7 caused no confirmed health reduction. Macro stopped."
)
print(
"[Macro] Keys 3-7 HIT CHECK FAILED - macro hard stopped."
)
break
end
end
--================================================--
-- KEEP TRACKING THROUGH THE MACRO
--================================================--
if step.keys then
print(
"[Macro] Keys 3-7 completed."
)
print(
"[Mouse] Continuous target tracking remains active."
)
--================================================--
-- HIGHSPEED RUSH CHECKPOINT
--================================================--
print(
"[Macro] Highspeed Rush CHECKPOINT."
)
local rushTarget =
lockedTarget
local success =
diagnoseHighspeedRush(
rushTarget
)
if not success then
print(
"[Macro] Highspeed Rush MISSED."
)
print(
"[Macro] HARD STOP."
)
break
end
print(
"[Macro] Highspeed Rush SUCCESS."
)
end
end
macroRunning = false
-- Safety cleanup in case the macro exits early.
stopMouseTracking()
--==================================================--
-- RESTORE ORIGINAL MOUSE POSITION
--==================================================--
if scriptEnabled
and savedMousePosition
and type(mousemoveabs) == "function"
then
moveMouseAbsolute(
math.round(savedMousePosition.X),
math.round(savedMousePosition.Y)
)
end
savedMousePosition = nil
busy = false
if scriptEnabled then
print(
"[Macro] FINISHED"
)
else
print(
"[Macro] CANCELLED"
)
end
end
--==================================================--
-- AUTO MACRO: DISTANCE / TELEPORT-SAFE TRIGGER
--==================================================--
local AUTO_MACRO_SPAM_INTERVAL = 0.03
local AUTO_MACRO_MISSING_ROOT_GRACE = 0.35
local autoMacroRunning = false
local autoMacroPending = false
local autoMacroWorkerTarget = nil
local function getAutoMacroState()
-- Auto Macro must ONLY run while the game's live lock-on UI confirms
-- that the currently selected target is actually locked.
if not scriptEnabled or not lockedTarget then
return nil, nil
end
local target = lockedTarget
-- The initial target scan can find a candidate before a fresh lock event
-- occurs. If the script starts while the game is already locked, confirm
-- that lock from the live reticle and its BillboardGui before enabling
-- Auto Macro. Never infer a lock from distance or proximity alone.
if not targetLockActive then
local interface = playerGui:FindFirstChild("LockedOnInterface")
local reticle = interface and interface:FindFirstChild("Reticle", true)
if not interface or not reticle or not reticle:IsA("GuiObject") or not reticle.Visible then
return nil, nil
end
local billboard = reticle:FindFirstAncestorWhichIsA("BillboardGui")
if not billboard or not billboard.Enabled or not billboard.Adornee then
return nil, nil
end
local targetCharacter = target.Character
local targetRoot = targetCharacter and targetCharacter:FindFirstChild("HumanoidRootPart")
if not targetCharacter or not targetRoot then
return nil, nil
end
-- Require the live lock reticle to be attached to this exact target's
-- character. A visible reticle for another entity must not qualify.
if not billboard.Adornee:IsA("BasePart")
or not billboard.Adornee:IsDescendantOf(targetCharacter) then
return nil, nil
end
-- Respect hidden/disabled GUI ancestors as well as the reticle itself.
local ancestor = reticle.Parent
while ancestor and ancestor ~= interface do
if ancestor:IsA("GuiObject") and not ancestor.Visible then
return nil, nil
end
ancestor = ancestor.Parent
end
targetLockActive = true
autoMacroLockGeneration = (autoMacroLockGeneration or 0) + 1
print("[AutoMacro] Existing live target lock confirmed from reticle.")
end
-- Re-check the lock state after confirmation and before measuring range.
if not targetLockActive or lockedTarget ~= target then
return nil, nil
end
local myCharacter = player.Character
local myRoot = myCharacter and myCharacter:FindFirstChild("HumanoidRootPart")
local targetCharacter = target.Character
local targetRoot = targetCharacter and targetCharacter:FindFirstChild("HumanoidRootPart")
local targetHumanoid = targetCharacter and targetCharacter:FindFirstChildOfClass("Humanoid")
if not myRoot or not targetRoot or not targetHumanoid or targetHumanoid.Health <= 0 then
return target, nil
end
return target, (myRoot.Position - targetRoot.Position).Magnitude
end
local function runAutoMacroSpam(target)
if autoMacroRunning or busy or not scriptEnabled or not target then
autoMacroPending = false
return
end
autoMacroRunning = true
autoMacroPending = false
autoMacroWorkerTarget = target
local ok, err = xpcall(function()
local currentTarget, initialDistance = getAutoMacroState()
if currentTarget ~= target or not initialDistance or initialDistance > AUTO_MACRO_DISTANCE then
print("[AutoMacro] Trigger cancelled: target was no longer inside range when worker started.")
return
end
print(string.format(
"[AutoMacro] STARTED for %s at %.1f studs (range %.1f).",
tostring(target.Name),
initialDistance,
AUTO_MACRO_DISTANCE
))
local missingRootSince = nil
while scriptEnabled and not busy and targetLockActive and lockedTarget == target do
local currentTarget, distance = getAutoMacroState()
if currentTarget ~= target then
print("[AutoMacro] Stopped: locked target changed.")
break
end
if distance == nil then
-- Character/root replication can briefly disappear during a
-- teleport or respawn. Retry instead of instantly killing the worker.
missingRootSince = missingRootSince or os.clock()
if os.clock() - missingRootSince > AUTO_MACRO_MISSING_ROOT_GRACE then
print("[AutoMacro] Stopped: target/root unavailable for too long.")
break
end
task.wait(0.01)
continue
end
missingRootSince = nil
if distance > AUTO_MACRO_DISTANCE then
print(string.format(
"[AutoMacro] Stopped: target left range (%.1f studs).",
distance
))
break
end
local pressed, pressError = pcall(function()
return pressMacroKeysSimultaneously({
Enum.KeyCode.Two,
Enum.KeyCode.Three,
Enum.KeyCode.Four,
Enum.KeyCode.Five,
Enum.KeyCode.Six,
Enum.KeyCode.Seven,
Enum.KeyCode.Eight,
Enum.KeyCode.Nine
})
end)
if not pressed then
warn("[AutoMacro] Key press error:", pressError)
break
end
task.wait(AUTO_MACRO_SPAM_INTERVAL)
end
end, debug.traceback)
if not ok then
warn("[AutoMacro] Worker crashed:\n" .. tostring(err))
end
-- Always release the worker lock, including when an executor input call errors.
autoMacroRunning = false
autoMacroPending = false
autoMacroWorkerTarget = nil
print("[AutoMacro] Worker finished; trigger is monitoring again.")
end
local function startAutoMacroTrigger()
if autoMacroConnection then
autoMacroConnection:Disconnect()
autoMacroConnection = nil
end
autoMacroConnection = RunService.Heartbeat:Connect(function()
if not scriptEnabled or busy or autoMacroRunning or autoMacroPending then
return
end
local target, distance = getAutoMacroState()
-- This is an IN-RANGE check, not an approach/crossing check.
-- Therefore a one-frame teleport from outside to inside the range
-- is enough to queue the worker on the next Heartbeat.
if target and distance and distance <= AUTO_MACRO_DISTANCE then
autoMacroPending = true
autoMacroTarget = target
print(string.format(
"[AutoMacro] RANGE DETECTED: %s at %.1f studs; starting worker.",
tostring(target.Name),
distance
))
task.spawn(runAutoMacroSpam, target)
end
end)
end
startAutoMacroTrigger()
UserInputService.InputBegan:Connect(function(input)
if not scriptEnabled then
return
end
-- Do not reject game-processed keyboard events: Roblox may mark F as
-- processed because the game also binds it. Still avoid capturing typing.
if UserInputService:GetFocusedTextBox() then
return
end
if input.UserInputType ~= Enum.UserInputType.Keyboard
or input.KeyCode ~= Enum.KeyCode.F then
return
end
local shiftHeld =
UserInputService:IsKeyDown(Enum.KeyCode.LeftShift)
or UserInputService:IsKeyDown(Enum.KeyCode.RightShift)
if not shiftHeld then
return
end
if macroRunning or busy then
print("[TeleportLock] Shift+F ignored: a sequence is already running.")
return
end
if not lockedTarget then
warn("[TeleportLock] Shift+F not started: no target was detected.")
return
end
local character, root = getTargetCharacter()
if not character or not root then
warn("[TeleportLock] Shift+F not started: target character/root is unavailable.")
return
end
local x, y = getTargetMousePosition()
if not x or not y then
warn("[TeleportLock] Shift+F not started: the game's target reticle is unavailable or off-screen.")
return
end
if type(mousemoveabs) ~= "function" then
warn("[TeleportLock] Shift+F not started: mousemoveabs is unavailable in this executor.")
return
end
-- Acquire the manual-sequence lock before yielding or scheduling work.
busy = true
savedMousePosition = UserInputService:GetMouseLocation()
print(string.format(
"[TeleportLock] Shift+F accepted for %s at screen position %d, %d.",
tostring(lockedTarget.Name),
x,
y
))
local aimOk, aimError = pcall(moveMouseAbsolute, x, y)
if not aimOk then
warn("[TeleportLock] Initial aim failed: " .. tostring(aimError))
savedMousePosition = nil
busy = false
return
end
startMouseTracking()
-- Run in a protected worker so every exit path releases the busy lock,
-- tracking connection, and saved cursor position. Wait briefly for an
-- already-running Auto Macro key burst to release its keys first.
task.spawn(function()
local waitDeadline = os.clock() + 0.5
while scriptEnabled and autoMacroRunning and os.clock() < waitDeadline do
task.wait(0.01)
end
if not scriptEnabled then
stopMouseTracking()
savedMousePosition = nil
macroRunning = false
busy = false
return
end
if autoMacroRunning then
warn("[TeleportLock] Shift+F cancelled: Auto Macro did not release its key worker.")
else
local ok, err = xpcall(function()
runMacro()
end, debug.traceback)
if not ok then
warn("[TeleportLock] Shift+F sequence crashed:\n" .. tostring(err))
end
end
-- runMacro normally performs this cleanup itself. This fallback also
-- handles early returns and runtime errors without changing the steps.
if busy then
stopMouseTracking()
if scriptEnabled and savedMousePosition
and type(mousemoveabs) == "function" then
local restoreOk, restoreError = pcall(
moveMouseAbsolute,
math.round(savedMousePosition.X),
math.round(savedMousePosition.Y)
)
if not restoreOk then
warn("[TeleportLock] Cursor restore failed: " .. tostring(restoreError))
end
end
savedMousePosition = nil
macroRunning = false
busy = false
end
end)
end)
--==================================================--
-- HITBOX EXPANDER + CONNECTED PLAYER VISUALS
-- Integrated from Silent_aim_keyless; independent of target/macro logic.
--==================================================--
local HttpService = game:GetService("HttpService")
local Lighting = game:GetService("Lighting")
local hitboxState = {
enabled = false,
size = 5,
esp = false,
hideHead = false,
tracers = false,
chams = false,
fullbright = false,
enemiesOnly = false,
targetEveryone = false,
antiHitEnabled = false,
antiHitSpeed = 50,
}
local hitboxOverrides = {}
local hitboxPlayerConnections = {}
local hitboxTracerObjects = {}
local hitboxThemeColor = Color3.fromRGB(120, 190, 255)
local hitboxConfigFile = "CurrentDynamic_HitboxConfig.json"
local hitboxOriginalLighting = {
Ambient = Lighting.Ambient,
OutdoorAmbient = Lighting.OutdoorAmbient,
}
local hitboxPanel
local hitboxPlayerList
local hitboxSearchBox
local hitboxSearchConnection
local hitboxStatusLabel
local hitboxSizeBox
local antiHitSpeedBox
local hitboxRefreshPlayerList
local hitboxApplyAll
local antiHitRestoreRotation
local function hitboxIsEnemy(targetPlayer)
if targetPlayer == player then
return false
end
if hitboxState.targetEveryone then
return true
end
if player.Team ~= nil and targetPlayer.Team ~= nil then
return player.Team ~= targetPlayer.Team
end
if player.TeamColor ~= nil and targetPlayer.TeamColor ~= nil then
return player.TeamColor ~= targetPlayer.TeamColor
end
return true
end
local function hitboxRestoreCharacter(targetPlayer, character)
if not character then return end
local root = character:FindFirstChild("HumanoidRootPart")
if root and root:GetAttribute("CD_Hitbox_OrigSize") then
pcall(function()
root.Size = root:GetAttribute("CD_Hitbox_OrigSize")
root.Transparency = root:GetAttribute("CD_Hitbox_OrigTransparency")
root.Color = root:GetAttribute("CD_Hitbox_OrigColor")
local materialName = root:GetAttribute("CD_Hitbox_OrigMaterial")
if materialName then
root.Material = Enum.Material[materialName] or Enum.Material.Plastic
end
root.CanCollide = root:GetAttribute("CD_Hitbox_OrigCanCollide")
end)
end
local head = character:FindFirstChild("Head")
if head then
local originalTransparency = head:GetAttribute("CD_Hitbox_HeadTransparency")
if originalTransparency ~= nil then
pcall(function() head.Transparency = originalTransparency end)
end
for _, child in ipairs(head:GetChildren()) do
if child:IsA("Decal") or child:IsA("SpecialMesh") then
local original = child:GetAttribute("CD_Hitbox_DecalTransparency")
if original ~= nil then
pcall(function() child.Transparency = original end)
end
end
end
end
for _, part in ipairs(character:GetDescendants()) do
if part:IsA("BasePart") and part ~= root then
local originalMaterial = part:GetAttribute("CD_Hitbox_OrigMaterial")
if originalMaterial then
pcall(function()
part.Material = Enum.Material[originalMaterial] or Enum.Material.Plastic
end)
end
end
end
local highlight = character:FindFirstChild("CD_Hitbox_ESP")
if highlight then highlight:Destroy() end
end
local function hitboxProcessCharacter(targetPlayer, character)
if not scriptEnabled or not character or targetPlayer == player then return end
local root = character:FindFirstChild("HumanoidRootPart")
local head = character:FindFirstChild("Head")
local enemy = hitboxIsEnemy(targetPlayer)
if head then
if head:GetAttribute("CD_Hitbox_HeadTransparency") == nil then
head:SetAttribute("CD_Hitbox_HeadTransparency", head.Transparency)
end
if hitboxState.hideHead then
head.Transparency = 1
for _, child in ipairs(head:GetChildren()) do
if child:IsA("Decal") or child:IsA("SpecialMesh") then
if child:GetAttribute("CD_Hitbox_DecalTransparency") == nil then
child:SetAttribute("CD_Hitbox_DecalTransparency", child.Transparency)
end
child.Transparency = 1
end
end
else
local original = head:GetAttribute("CD_Hitbox_HeadTransparency")
if original ~= nil then head.Transparency = original end
for _, child in ipairs(head:GetChildren()) do
if child:IsA("Decal") or child:IsA("SpecialMesh") then
local decalOriginal = child:GetAttribute("CD_Hitbox_DecalTransparency")
if decalOriginal ~= nil then child.Transparency = decalOriginal end
end
end
end
end
if root then
if root:GetAttribute("CD_Hitbox_OrigSize") == nil then
root:SetAttribute("CD_Hitbox_OrigSize", root.Size)
root:SetAttribute("CD_Hitbox_OrigTransparency", root.Transparency)
root:SetAttribute("CD_Hitbox_OrigColor", root.Color)
root:SetAttribute("CD_Hitbox_OrigMaterial", root.Material.Name)
root:SetAttribute("CD_Hitbox_OrigCanCollide", root.CanCollide)
end
local allowHitbox = hitboxState.enabled
if hitboxOverrides[targetPlayer] ~= nil then
allowHitbox = hitboxState.enabled and hitboxOverrides[targetPlayer]
end
if allowHitbox then
root.Size = Vector3.new(hitboxState.size, hitboxState.size, hitboxState.size)
root.Transparency = 0.6
root.Color = hitboxThemeColor
root.Material = Enum.Material.Neon
root.CanCollide = false
else
pcall(function()
root.Size = root:GetAttribute("CD_Hitbox_OrigSize")
root.Transparency = root:GetAttribute("CD_Hitbox_OrigTransparency")
root.Color = root:GetAttribute("CD_Hitbox_OrigColor")
local materialName = root:GetAttribute("CD_Hitbox_OrigMaterial")
if materialName then
root.Material = Enum.Material[materialName] or Enum.Material.Plastic
end
root.CanCollide = root:GetAttribute("CD_Hitbox_OrigCanCollide")
end)
end
end
for _, part in ipairs(character:GetDescendants()) do
if part:IsA("BasePart") and part ~= root then
if hitboxState.chams then
if part:GetAttribute("CD_Hitbox_OrigMaterial") == nil then
part:SetAttribute("CD_Hitbox_OrigMaterial", part.Material.Name)
end
part.Material = Enum.Material.Neon
else
local originalMaterial = part:GetAttribute("CD_Hitbox_OrigMaterial")
if originalMaterial then
pcall(function()
part.Material = Enum.Material[originalMaterial] or Enum.Material.Plastic
end)
end
end
end
end
local highlight = character:FindFirstChild("CD_Hitbox_ESP")
if hitboxState.esp then
if not highlight then
highlight = Instance.new("Highlight")
highlight.Name = "CD_Hitbox_ESP"
highlight.Adornee = character
highlight.FillTransparency = 0.5
highlight.OutlineTransparency = 0
highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
highlight.Parent = character
end
highlight.Enabled = true
highlight.Adornee = character
if enemy then
highlight.FillColor = Color3.fromRGB(255, 55, 65)
highlight.OutlineColor = Color3.fromRGB(255, 110, 110)
else
highlight.FillColor = Color3.fromRGB(40, 220, 130)
highlight.OutlineColor = Color3.fromRGB(100, 255, 175)
end
elseif highlight then
highlight:Destroy()
end
end
hitboxApplyAll = function()
if not scriptEnabled then return end
for _, targetPlayer in ipairs(Players:GetPlayers()) do
if targetPlayer ~= player and targetPlayer.Character then
hitboxProcessCharacter(targetPlayer, targetPlayer.Character)
end
end
if hitboxStatusLabel and hitboxStatusLabel.Parent then
hitboxStatusLabel.Text = string.format(
"Hitbox: %s | Size: %s | Players: %d",
hitboxState.enabled and "ON" or "OFF",
tostring(hitboxState.size),
math.max(0, #Players:GetPlayers() - 1)
)
end
end
local function hitboxSaveConfig()
if type(writefile) ~= "function" then return end
pcall(function()
writefile(hitboxConfigFile, HttpService:JSONEncode(hitboxState))
end)
end
local function hitboxLoadConfig()
if type(readfile) ~= "function" or type(isfile) ~= "function" then return end
local ok, config = pcall(function()
if not isfile(hitboxConfigFile) then return nil end
return HttpService:JSONDecode(readfile(hitboxConfigFile))
end)
if ok and type(config) == "table" then
for key, defaultValue in pairs(hitboxState) do
if config[key] ~= nil and type(config[key]) == type(defaultValue) then
hitboxState[key] = config[key]
end
end
hitboxState.size = math.clamp(tonumber(hitboxState.size) or 5, 1, 120)
hitboxState.antiHitSpeed = math.clamp(tonumber(hitboxState.antiHitSpeed) or 50, 1, 1000)
end
end
local function hitboxMakeButton(parent, label, callback, height)
local button = Instance.new("TextButton")
button.Size = UDim2.new(1, 0, 0, height or 28)
button.BackgroundColor3 = Color3.fromRGB(39, 45, 58)
button.BorderSizePixel = 0
button.Text = label
button.TextColor3 = Color3.fromRGB(240, 243, 250)
button.TextSize = 12
button.Font = Enum.Font.GothamSemibold
button.AutoButtonColor = true
button.Parent = parent
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 6)
corner.Parent = button
button.MouseButton1Click:Connect(callback)
return button
end
local function hitboxRefreshControls()
if not hitboxPanel then return end
for _, item in ipairs(hitboxPanel:GetDescendants()) do
if item:IsA("TextButton") and item:GetAttribute("HitboxControlKey") then
local key = item:GetAttribute("HitboxControlKey")
item.Text = (hitboxState[key] and "ON | " or "OFF | ") .. item:GetAttribute("HitboxControlLabel")
item.BackgroundColor3 = hitboxState[key]
and Color3.fromRGB(25, 105, 78)
or Color3.fromRGB(39, 45, 58)
end
end
if hitboxSizeBox then hitboxSizeBox.Text = tostring(hitboxState.size) end
if antiHitSpeedBox then antiHitSpeedBox.Text = tostring(hitboxState.antiHitSpeed) end
if hitboxRefreshPlayerList then hitboxRefreshPlayerList() end
end
hitboxLoadConfig()
-- Compact control panel; it lives inside the existing ScreenGui and follows H hide/show.
hitboxPanel = Instance.new("Frame")
hitboxPanel.Name = "CurrentDynamicHitboxPanel"
hitboxPanel.Size = UDim2.fromOffset(275, 430)
hitboxPanel.Position = UDim2.new(0, 14, 0, 82)
hitboxPanel.BackgroundColor3 = Color3.fromRGB(17, 21, 30)
hitboxPanel.BackgroundTransparency = 0.04
hitboxPanel.BorderSizePixel = 0
hitboxPanel.Parent = gui
local panelCorner = Instance.new("UICorner")
panelCorner.CornerRadius = UDim.new(0, 10)
panelCorner.Parent = hitboxPanel
local panelStroke = Instance.new("UIStroke")
panelStroke.Color = hitboxThemeColor
panelStroke.Thickness = 1.2
panelStroke.Parent = hitboxPanel
local panelTitle = Instance.new("TextLabel")
panelTitle.Size = UDim2.new(1, -42, 0, 30)
panelTitle.Position = UDim2.fromOffset(10, 5)
panelTitle.BackgroundTransparency = 1
panelTitle.Text = "HITBOX / PLAYER VISUALS"
panelTitle.TextColor3 = hitboxThemeColor
panelTitle.TextSize = 13
panelTitle.Font = Enum.Font.GothamBold
panelTitle.TextXAlignment = Enum.TextXAlignment.Left
panelTitle.Parent = hitboxPanel
local panelHide = Instance.new("TextButton")
panelHide.Size = UDim2.fromOffset(25, 25)
panelHide.Position = UDim2.new(1, -32, 0, 7)
panelHide.BackgroundColor3 = Color3.fromRGB(55, 60, 75)
panelHide.Text = "–"
panelHide.TextColor3 = Color3.new(1, 1, 1)
panelHide.TextSize = 18
panelHide.Font = Enum.Font.GothamBold
panelHide.Parent = hitboxPanel
panelHide.MouseButton1Click:Connect(function()
hitboxPanel.Visible = false
end)
local panelShow = Instance.new("TextButton")
panelShow.Name = "ShowHitboxPanel"
panelShow.Size = UDim2.fromOffset(128, 27)
panelShow.Position = UDim2.new(0, 14, 0, 48)
panelShow.BackgroundColor3 = Color3.fromRGB(32, 75, 105)
panelShow.BorderSizePixel = 0
panelShow.Text = "SHOW HITBOX PANEL"
panelShow.TextColor3 = Color3.new(1, 1, 1)
panelShow.TextSize = 11
panelShow.Font = Enum.Font.GothamBold
panelShow.Parent = gui
local panelShowCorner = Instance.new("UICorner")
panelShowCorner.CornerRadius = UDim.new(0, 6)
panelShowCorner.Parent = panelShow
panelShow.MouseButton1Click:Connect(function()
hitboxPanel.Visible = not hitboxPanel.Visible
end)
local panelContent = Instance.new("ScrollingFrame")
panelContent.Size = UDim2.new(1, -16, 1, -43)
panelContent.Position = UDim2.fromOffset(8, 37)
panelContent.BackgroundTransparency = 1
panelContent.BorderSizePixel = 0
panelContent.ScrollBarThickness = 3
panelContent.CanvasSize = UDim2.new(0, 0, 0, 0)
panelContent.Parent = hitboxPanel
local panelLayout = Instance.new("UIListLayout")
panelLayout.Padding = UDim.new(0, 5)
panelLayout.SortOrder = Enum.SortOrder.LayoutOrder
panelLayout.Parent = panelContent
local panelPadding = Instance.new("UIPadding")
panelPadding.PaddingBottom = UDim.new(0, 7)
panelPadding.Parent = panelContent
panelLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
panelContent.CanvasSize = UDim2.new(0, 0, 0, panelLayout.AbsoluteContentSize.Y + 10)
end)
hitboxStatusLabel = Instance.new("TextLabel")
hitboxStatusLabel.Size = UDim2.new(1, 0, 0, 22)
hitboxStatusLabel.BackgroundTransparency = 1
hitboxStatusLabel.Text = "Hitbox: OFF"
hitboxStatusLabel.TextColor3 = Color3.fromRGB(205, 215, 230)
hitboxStatusLabel.TextSize = 10
hitboxStatusLabel.Font = Enum.Font.Code
hitboxStatusLabel.TextXAlignment = Enum.TextXAlignment.Left
hitboxStatusLabel.Parent = panelContent
local function hitboxAddToggle(key, label)
local button
button = hitboxMakeButton(panelContent, "", function()
hitboxState[key] = not hitboxState[key]
if key == "antiHitEnabled" and not hitboxState.antiHitEnabled and antiHitRestoreRotation then
antiHitRestoreRotation()
end
if key == "fullbright" then
if hitboxState.fullbright then
Lighting.Ambient = Color3.new(1, 1, 1)
Lighting.OutdoorAmbient = Color3.new(1, 1, 1)
else
Lighting.Ambient = hitboxOriginalLighting.Ambient
Lighting.OutdoorAmbient = hitboxOriginalLighting.OutdoorAmbient
end
end
hitboxApplyAll()
hitboxRefreshControls()
hitboxSaveConfig()
end)
button:SetAttribute("HitboxControlKey", key)
button:SetAttribute("HitboxControlLabel", label)
return button
end
hitboxAddToggle("enabled", "HITBOX EXPANDER")
hitboxAddToggle("antiHitEnabled", "ANTI HIT")
-- G or Shift+G toggles Anti Hit. Ignore input while the user is typing.
UserInputService.InputBegan:Connect(function(input)
if not scriptEnabled or input.UserInputType ~= Enum.UserInputType.Keyboard then
return
end
if input.KeyCode ~= Enum.KeyCode.G or UserInputService:GetFocusedTextBox() then
return
end
hitboxState.antiHitEnabled = not hitboxState.antiHitEnabled
if not hitboxState.antiHitEnabled and antiHitRestoreRotation then
antiHitRestoreRotation()
end
hitboxApplyAll()
hitboxRefreshControls()
hitboxSaveConfig()
end)
local antiHitSpeedRow = Instance.new("Frame")
antiHitSpeedRow.Size = UDim2.new(1, 0, 0, 30)
antiHitSpeedRow.BackgroundTransparency = 1
antiHitSpeedRow.Parent = panelContent
local antiHitSpeedLabel = Instance.new("TextLabel")
antiHitSpeedLabel.Size = UDim2.new(0.55, 0, 1, 0)
antiHitSpeedLabel.BackgroundTransparency = 1
antiHitSpeedLabel.Text = "ANTI HIT SPEED"
antiHitSpeedLabel.TextColor3 = Color3.fromRGB(225, 230, 240)
antiHitSpeedLabel.TextSize = 10
antiHitSpeedLabel.Font = Enum.Font.GothamBold
antiHitSpeedLabel.TextXAlignment = Enum.TextXAlignment.Left
antiHitSpeedLabel.Parent = antiHitSpeedRow
antiHitSpeedBox = Instance.new("TextBox")
antiHitSpeedBox.Size = UDim2.new(0.42, 0, 1, 0)
antiHitSpeedBox.Position = UDim2.new(0.58, 0, 0, 0)
antiHitSpeedBox.BackgroundColor3 = Color3.fromRGB(35, 42, 56)
antiHitSpeedBox.BorderSizePixel = 0
antiHitSpeedBox.Text = tostring(hitboxState.antiHitSpeed)
antiHitSpeedBox.PlaceholderText = "1–1000"
antiHitSpeedBox.TextColor3 = hitboxThemeColor
antiHitSpeedBox.TextSize = 12
antiHitSpeedBox.Font = Enum.Font.GothamBold
antiHitSpeedBox.ClearTextOnFocus = false
antiHitSpeedBox.Parent = antiHitSpeedRow
local antiHitSpeedCorner = Instance.new("UICorner")
antiHitSpeedCorner.CornerRadius = UDim.new(0, 5)
antiHitSpeedCorner.Parent = antiHitSpeedBox
antiHitSpeedBox.FocusLost:Connect(function()
local value = tonumber(antiHitSpeedBox.Text)
if value then
hitboxState.antiHitSpeed = math.clamp(value, 1, 1000)
hitboxSaveConfig()
end
antiHitSpeedBox.Text = tostring(hitboxState.antiHitSpeed)
end)
local sizeRow = Instance.new("Frame")
sizeRow.Size = UDim2.new(1, 0, 0, 30)
sizeRow.BackgroundTransparency = 1
sizeRow.Parent = panelContent
local sizeLabel = Instance.new("TextLabel")
sizeLabel.Size = UDim2.new(0.55, 0, 1, 0)
sizeLabel.BackgroundTransparency = 1
sizeLabel.Text = "HITBOX SIZE (1–120)"
sizeLabel.TextColor3 = Color3.fromRGB(225, 230, 240)
sizeLabel.TextSize = 10
sizeLabel.Font = Enum.Font.GothamBold
sizeLabel.TextXAlignment = Enum.TextXAlignment.Left
sizeLabel.Parent = sizeRow
hitboxSizeBox = Instance.new("TextBox")
hitboxSizeBox.Size = UDim2.new(0.42, 0, 1, 0)
hitboxSizeBox.Position = UDim2.new(0.58, 0, 0, 0)
hitboxSizeBox.BackgroundColor3 = Color3.fromRGB(35, 42, 56)
hitboxSizeBox.BorderSizePixel = 0
hitboxSizeBox.Text = tostring(hitboxState.size)
hitboxSizeBox.PlaceholderText = "1–120"
hitboxSizeBox.TextColor3 = hitboxThemeColor
hitboxSizeBox.TextSize = 12
hitboxSizeBox.Font = Enum.Font.GothamBold
hitboxSizeBox.ClearTextOnFocus = false
hitboxSizeBox.Parent = sizeRow
local sizeBoxCorner = Instance.new("UICorner")
sizeBoxCorner.CornerRadius = UDim.new(0, 5)
sizeBoxCorner.Parent = hitboxSizeBox
hitboxSizeBox.FocusLost:Connect(function()
local value = tonumber(hitboxSizeBox.Text)
if value then
hitboxState.size = math.clamp(value, 1, 120)
hitboxApplyAll()
hitboxSaveConfig()
end
hitboxSizeBox.Text = tostring(hitboxState.size)
end)
hitboxAddToggle("esp", "ESP HIGHLIGHT")
hitboxAddToggle("hideHead", "HIDE HEAD")
hitboxAddToggle("chams", "NEON CHAMS")
hitboxAddToggle("tracers", "TRACERS")
hitboxAddToggle("fullbright", "FULLBRIGHT")
hitboxAddToggle("targetEveryone", "IGNORE TEAMS / TARGET EVERYONE")
hitboxAddToggle("enemiesOnly", "PLAYER LIST: ENEMIES ONLY")
hitboxSearchBox = Instance.new("TextBox")
hitboxSearchBox.Size = UDim2.new(1, 0, 0, 27)
hitboxSearchBox.BackgroundColor3 = Color3.fromRGB(31, 37, 50)
hitboxSearchBox.BorderSizePixel = 0
hitboxSearchBox.PlaceholderText = "Search player by name..."
hitboxSearchBox.Text = ""
hitboxSearchBox.TextColor3 = Color3.fromRGB(235, 240, 250)
hitboxSearchBox.PlaceholderColor3 = Color3.fromRGB(145, 155, 175)
hitboxSearchBox.TextSize = 10
hitboxSearchBox.Font = Enum.Font.Gotham
hitboxSearchBox.ClearTextOnFocus = false
hitboxSearchBox.Parent = panelContent
local hitboxSearchCorner = Instance.new("UICorner")
hitboxSearchCorner.CornerRadius = UDim.new(0, 5)
hitboxSearchCorner.Parent = hitboxSearchBox
local playerListTitle = Instance.new("TextLabel")
playerListTitle.Size = UDim2.new(1, 0, 0, 20)
playerListTitle.BackgroundTransparency = 1
playerListTitle.Text = "PER-PLAYER HITBOX OVERRIDES"
playerListTitle.TextColor3 = hitboxThemeColor
playerListTitle.TextSize = 10
playerListTitle.Font = Enum.Font.GothamBold
playerListTitle.TextXAlignment = Enum.TextXAlignment.Left
playerListTitle.Parent = panelContent
hitboxPlayerList = Instance.new("Frame")
hitboxPlayerList.Size = UDim2.new(1, 0, 0, 105)
hitboxPlayerList.BackgroundColor3 = Color3.fromRGB(23, 28, 39)
hitboxPlayerList.BorderSizePixel = 0
hitboxPlayerList.Parent = panelContent
local playerListCorner = Instance.new("UICorner")
playerListCorner.CornerRadius = UDim.new(0, 6)
playerListCorner.Parent = hitboxPlayerList
local playerListScroll = Instance.new("ScrollingFrame")
playerListScroll.Size = UDim2.new(1, -8, 1, -8)
playerListScroll.Position = UDim2.fromOffset(4, 4)
playerListScroll.BackgroundTransparency = 1
playerListScroll.BorderSizePixel = 0
playerListScroll.ScrollBarThickness = 3
playerListScroll.CanvasSize = UDim2.new(0, 0, 0, 0)
playerListScroll.Parent = hitboxPlayerList
local playerListLayout = Instance.new("UIListLayout")
playerListLayout.Padding = UDim.new(0, 3)
playerListLayout.SortOrder = Enum.SortOrder.LayoutOrder
playerListLayout.Parent = playerListScroll
playerListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
playerListScroll.CanvasSize = UDim2.new(0, 0, 0, playerListLayout.AbsoluteContentSize.Y + 4)
end)
hitboxRefreshPlayerList = function()
if not playerListScroll or not playerListScroll.Parent then return end
for _, child in ipairs(playerListScroll:GetChildren()) do
if child:IsA("GuiObject") and not child:IsA("UIListLayout") then
child:Destroy()
end
end
local orderedPlayers = {}
for _, targetPlayer in ipairs(Players:GetPlayers()) do
if targetPlayer ~= player then
if not hitboxState.enemiesOnly or hitboxIsEnemy(targetPlayer) then
table.insert(orderedPlayers, targetPlayer)
end
end
end
table.sort(orderedPlayers, function(a, b)
return a.Name:lower() < b.Name:lower()
end)
local searchText = string.lower(hitboxSearchBox and hitboxSearchBox.Text or "")
for index, targetPlayer in ipairs(orderedPlayers) do
local matchesSearch = searchText == ""
or string.find(string.lower(targetPlayer.Name), searchText, 1, true)
or string.find(string.lower(targetPlayer.DisplayName), searchText, 1, true)
if matchesSearch then
local row = Instance.new("Frame")
row.Size = UDim2.new(1, -2, 0, 25)
row.BackgroundTransparency = 1
row.LayoutOrder = index
row.Parent = playerListScroll
local name = Instance.new("TextLabel")
name.Size = UDim2.new(1, -62, 1, 0)
name.BackgroundTransparency = 1
name.Text = targetPlayer.DisplayName .. " @" .. targetPlayer.Name
name.TextColor3 = Color3.fromRGB(220, 225, 235)
name.TextSize = 9
name.Font = Enum.Font.Gotham
name.TextXAlignment = Enum.TextXAlignment.Left
name.TextTruncate = Enum.TextTruncate.AtEnd
name.Parent = row
local override = Instance.new("TextButton")
override.Size = UDim2.fromOffset(55, 22)
override.Position = UDim2.new(1, -55, 0, 1)
override.BorderSizePixel = 0
override.TextSize = 9
override.Font = Enum.Font.GothamBold
override.TextColor3 = Color3.new(1, 1, 1)
override.Parent = row
local active = hitboxOverrides[targetPlayer] ~= false
override.Text = active and "HITBOX ON" or "HITBOX OFF"
override.BackgroundColor3 = active and Color3.fromRGB(20, 125, 85) or Color3.fromRGB(65, 65, 75)
local overrideCorner = Instance.new("UICorner")
overrideCorner.CornerRadius = UDim.new(0, 4)
overrideCorner.Parent = override
override.MouseButton1Click:Connect(function()
hitboxOverrides[targetPlayer] = not (hitboxOverrides[targetPlayer] ~= false)
local nowActive = hitboxOverrides[targetPlayer] ~= false
override.Text = nowActive and "HITBOX ON" or "HITBOX OFF"
override.BackgroundColor3 = nowActive and Color3.fromRGB(20, 125, 85) or Color3.fromRGB(65, 65, 75)
if targetPlayer.Character then
hitboxProcessCharacter(targetPlayer, targetPlayer.Character)
end
end)
end
end
end
hitboxSearchConnection = hitboxSearchBox:GetPropertyChangedSignal("Text"):Connect(function()
hitboxRefreshPlayerList()
end)
hitboxMakeButton(panelContent, "REFRESH PLAYER LIST", function()
hitboxRefreshPlayerList()
end, 25)
local function hitboxSetupPlayer(targetPlayer)
if targetPlayer == player or hitboxPlayerConnections[targetPlayer] then return end
local connections = {}
hitboxPlayerConnections[targetPlayer] = connections
table.insert(connections, targetPlayer.CharacterAdded:Connect(function(character)
task.wait(0.25)
if scriptEnabled and targetPlayer.Parent == Players then
hitboxProcessCharacter(targetPlayer, character)
end
end))
if targetPlayer.Character then
task.defer(hitboxProcessCharacter, targetPlayer, targetPlayer.Character)
end
end
for _, targetPlayer in ipairs(Players:GetPlayers()) do
hitboxSetupPlayer(targetPlayer)
end
local hitboxPlayerAddedConnection = Players.PlayerAdded:Connect(function(targetPlayer)
hitboxSetupPlayer(targetPlayer)
if hitboxRefreshPlayerList then hitboxRefreshPlayerList() end
end)
local hitboxPlayerRemovingConnection = Players.PlayerRemoving:Connect(function(targetPlayer)
if hitboxPlayerConnections[targetPlayer] then
for _, connection in ipairs(hitboxPlayerConnections[targetPlayer]) do
if connection and connection.Connected then connection:Disconnect() end
end
hitboxPlayerConnections[targetPlayer] = nil
end
hitboxOverrides[targetPlayer] = nil
local line = hitboxTracerObjects[targetPlayer]
if line then
pcall(function() line:Remove() end)
hitboxTracerObjects[targetPlayer] = nil
end
if hitboxRefreshPlayerList then hitboxRefreshPlayerList() end
end)
local hitboxTracerAccumulator = 0
local hitboxRenderConnection = RunService.RenderStepped:Connect(function(dt)
if not scriptEnabled or not hitboxState.tracers then return end
hitboxTracerAccumulator = hitboxTracerAccumulator + dt
if hitboxTracerAccumulator < (1 / 30) then return end
hitboxTracerAccumulator = 0
local camera = workspace.CurrentCamera
if not camera then return end
for _, targetPlayer in ipairs(Players:GetPlayers()) do
if targetPlayer ~= player and targetPlayer.Character then
local root = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
local line = hitboxTracerObjects[targetPlayer]
if root then
local screenPosition, onScreen = camera:WorldToViewportPoint(root.Position)
if onScreen and type(Drawing) == "table" and type(Drawing.new) == "function" then
if not line then
local ok, created = pcall(Drawing.new, "Line")
if ok then
line = created
line.Thickness = 1.5
line.Transparency = 0.7
hitboxTracerObjects[targetPlayer] = line
end
end
if line then
line.From = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y)
line.To = Vector2.new(screenPosition.X, screenPosition.Y)
line.Color = hitboxThemeColor
line.Visible = true
end
elseif line then
pcall(function() line.Visible = false end)
end
elseif line then
pcall(function() line.Visible = false end)
end
end
end
end)
hitboxRefreshControls()
hitboxApplyAll()
if hitboxState.fullbright then
Lighting.Ambient = Color3.new(1, 1, 1)
Lighting.OutdoorAmbient = Color3.new(1, 1, 1)
end
task.spawn(function()
while scriptEnabled and gui.Parent do
if hitboxState.enabled or hitboxState.esp or hitboxState.hideHead or hitboxState.chams then
hitboxApplyAll()
task.wait(0.75)
else
task.wait(1.0)
end
end
end)
-- Anti Hit rotation controller.
-- The spin is layered over the camera's current horizontal heading, instead
-- of continuously forcing one fixed world heading. This lets camera yaw input
-- remain responsive while the spin continues. The character stays upright;
-- camera pitch (looking up/down) remains controlled by the normal camera.
local antiHitAngle = 0
local antiHitRenderConnection
local antiHitLastHumanoid
local antiHitOriginalAutoRotate
antiHitRestoreRotation = function()
if antiHitLastHumanoid and antiHitLastHumanoid.Parent then
antiHitLastHumanoid.AutoRotate =
antiHitOriginalAutoRotate == nil and true or antiHitOriginalAutoRotate
end
antiHitLastHumanoid = nil
antiHitOriginalAutoRotate = nil
end
antiHitRenderConnection = RunService.RenderStepped:Connect(function(dt)
if not scriptEnabled or not hitboxState.antiHitEnabled then
return
end
local character = player.Character
local root = character and character:FindFirstChild("HumanoidRootPart")
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
local camera = workspace.CurrentCamera
if not root or not humanoid or not camera then
return
end
if antiHitLastHumanoid ~= humanoid then
antiHitLastHumanoid = humanoid
antiHitOriginalAutoRotate = humanoid.AutoRotate
end
humanoid.AutoRotate = false
antiHitAngle = (antiHitAngle + dt * (hitboxState.antiHitSpeed * 0.8)) % (math.pi * 2)
local look = camera.CFrame.LookVector
local cameraYaw = math.atan2(-look.X, -look.Z)
root.CFrame = CFrame.new(root.Position) * CFrame.Angles(0, cameraYaw + antiHitAngle, 0)
end)
local function hitboxCleanup()
if antiHitRenderConnection then
antiHitRenderConnection:Disconnect()
antiHitRenderConnection = nil
end
if antiHitRestoreRotation then
antiHitRestoreRotation()
end
if hitboxPlayerAddedConnection then hitboxPlayerAddedConnection:Disconnect() end
if hitboxPlayerRemovingConnection then hitboxPlayerRemovingConnection:Disconnect() end
if hitboxRenderConnection then hitboxRenderConnection:Disconnect() end
if hitboxSearchConnection then hitboxSearchConnection:Disconnect() end
for targetPlayer, connections in pairs(hitboxPlayerConnections) do
for _, connection in ipairs(connections) do
if connection and connection.Connected then connection:Disconnect() end
end
hitboxPlayerConnections[targetPlayer] = nil
end
for _, targetPlayer in ipairs(Players:GetPlayers()) do
if targetPlayer ~= player and targetPlayer.Character then
hitboxRestoreCharacter(targetPlayer, targetPlayer.Character)
end
end
for _, line in pairs(hitboxTracerObjects) do
if line then pcall(function() line:Remove() end) end
end
table.clear(hitboxTracerObjects)
table.clear(hitboxOverrides)
Lighting.Ambient = hitboxOriginalLighting.Ambient
Lighting.OutdoorAmbient = hitboxOriginalLighting.OutdoorAmbient
end
--==================================================--
-- END HITBOX EXPANDER INTEGRATION
--==================================================--
--==================================================--
-- H = HIDE / SHOW UI
--==================================================--
local hideUIConnection
hideUIConnection =
UserInputService.InputBegan:Connect(
function(input, processed)
if not scriptEnabled then
return
end
if processed then
return
end
if input.KeyCode ~= Enum.KeyCode.H then
return
end
uiVisible =
not uiVisible
gui.Enabled =
uiVisible
print(
"[TeleportLock] UI:",
uiVisible and "VISIBLE" or "HIDDEN"
)
end
)
--==================================================--
-- END = FULL SHUTDOWN
--==================================================--
local endConnection
local function shutdownScript()
if not scriptEnabled then
return
end
scriptEnabled = false
macroRunning = false
autoMacroRunning = false
autoMacroPending = false
autoMacroWorkerTarget = nil
busy = false
print(
"[TeleportLock] DISABLING..."
)
stopMouseTracking()
savedMousePosition = nil
disconnectTargetLabel()
if playerGuiConnection then
playerGuiConnection:Disconnect()
playerGuiConnection = nil
end
if hideUIConnection then
hideUIConnection:Disconnect()
hideUIConnection = nil
end
if endConnection then
endConnection:Disconnect()
endConnection = nil
end
if autoMacroConnection then
autoMacroConnection:Disconnect()
autoMacroConnection = nil
end
previousAutoMacroDistance = nil
autoMacroArmed = false
autoMacroPending = false
autoMacroTarget = nil
lockedTarget = nil
resetTargetPrediction()
if hitboxCleanup then
pcall(hitboxCleanup)
end
if gui then
gui:Destroy()
end
if rangePopupGui then
rangePopupGui:Destroy()
end
print(
"[TeleportLock] SCRIPT DISABLED"
)
end
endConnection =
UserInputService.InputBegan:Connect(
function(input, processed)
if processed then
return
end
if input.KeyCode ==
Enum.KeyCode.End then
shutdownScript()
end
end
)
--==================================================--
-- LOADED
--==================================================--
print(
"[TeleportLock] Loaded"
)
print(
"[TeleportLock] Waiting for game's lock target..."
)
print(
"[TeleportLock] Shift + F = Mouse Lock + Macro"
)
print(
"[TeleportLock] H = Hide/Show UI"
)
print(
"[TeleportLock] End = Kill Script"
)
print(
"[Macro] Highspeed Rush checkpoint enabled"
)
print(
"[Macro] Rush failure = sequence HARD STOP"
)
print(
"[Mouse] Continuous HEAD tracking enabled"
)
print(
"[Mouse] Head prediction lead (0 = exact head):",
PREDICTION_TIME,
"seconds"
)Turn off the hitbox in the top left menu when playing DragonBallRage. Its controlled server sided. Meaning it doesnt work. Its purpose was to offer you users a fake scouter that always shows all opponents on the map when creating alts so you dont have to buy robux for the scouter. More fun updates coming. Shift + F to execute the macro on the lockedon target. H = Hide menu End = Kill menu F6 = a stopsign designed to let you know the distance of when to somewhat realistically TP, this because you can TP from jupiter to your opponent as long as hes visible. Im soon adding a player list so you can select a player thats not shielded and tp from 1 island to another island just to kill that specific person and tp you back. You can manually set delay from key 1 to key 2 in the top right section. usually between 0 - 250MS MAX i recommend 50.ms No gatekeeping, this is the full source code. As always, DONT REDEEM IT!!!!