Run it
Copy the script and paste it into your executor.
Players = :() UIS = :() PFS = :() VIM = :() RunService = :() player = Players.LocalPlayer env = () previousBot = env.PillarChaseBot env.PercyAuto previousBot previousBot.Stop previousBot.() config = { ProfileMode = env.PillarBotProfile , ActiveProfile = , DetectedProfile = , AbilityScanInterval = , AbilitySelectionDelay = , AbilityGap = , AbilityFailedRetry = , AntiLoop = , ChaseSampleInterval = , ChaseHistorySeconds = , ChaseProgressTimeout = , ChaseCutoffSeconds = , BrutumLeapWindup = , BrutumLeapPitchMin = , BrutumLeapPitchMax = , AutoAgentSize = , NormalJumping = , JumpRetryInterval = , BackgroundMode = , BackgroundCameraAim = , BackgroundCameraResponse = , IncludeNPCs = , AutoDetectBlockDummies = , MinionNameFragments = {, , , , , , , }, PracticeDummyNames = { dummy = , trainingdummy = , practicedummy = , testdummy = , }, RespectTeams = , TargetRadius = , TargetLockSeconds = , SwitchDistanceRatio = , PredictionSeconds = , MaxPrediction = , AttackRange = , StopDistance = , SprintDuringChase = , RepathInterval = , MaxPathAge = , RepathTargetMovement = , PathTimeout = , AgentRadius = , AgentHeight = , WaypointReach = , MaxDirectDistance = , AttackInterval = , TurboInterval = , TogetherInterval = , WireInterval = , TurboMode = , TurboSelectionDelay = , MouseGain = , MouseMaxStep = , MouseDeadzone = , MousePixelsPerRadian = , TurboMinDistance = , TogetherMaxDistance = , WireMaxDistance = , TrapTriggerRange = , TrapActivationInterval = , TrapMinSpacing = , TrapPlacementRange = , TrapPlacementLifetime = , TrapConfirmWindow = , TrapMaxCount = , MinionCoordination = , Containment = , ContainmentScanInterval = , ContainmentSideProbe = , ContainmentMaxWidth = , ContainmentPlanLifetime = , } abilityProfiles = { Generic = {AttackInterval = , Abilities = {}}, PalPercy = {AttackInterval = , Abilities = { {Name=, Cooldown=}, {Name=, Cooldown=}, {Name=, Cooldown=}, }}, Vapor = {AttackInterval = , Abilities = { {Name=, Cooldown=, Min=, Max=, Hold=}, {Name=, Cooldown=, Max=}, {Name=, Cooldown=, Min=, Max=, Confirm=}, }}, Rosemary = {AttackInterval = , Abilities = { {Name=, Cooldown=, Max=}, {Name=, Cooldown=, Min=, Max=, Recast=}, {Name=, Cooldown=, Max=, Recast=}, }}, Valem = {AttackInterval = , Abilities = { {Name=, Cooldown=, Min=, Max=}, {Name=, Cooldown=, Max=, Recast=}, {Name=, Cooldown=, Min=, Max=}, {Name=, Cooldown=, Min=, Max=}, }}, AoOni = {AttackInterval = , Abilities = { {Name=, Cooldown=, Min=, Max=}, {Name=, Cooldown=, Min=, Max=, Confirm=}, {Name=, Cooldown=, Min=, Max=}, }}, Fogborn = {AttackInterval = , Abilities = { {Name=, Cooldown=, Max=}, {Name=, Cooldown=, Min=, Max=, Recast=}, {Name=, Cooldown=, Min=, Max=, Recast=}, }}, Agatha = {AttackInterval = , Abilities = { {Name=, Cooldown=, Max=}, {Name=, Aliases={}, Cooldown=, Min=, Max=}, {Name=, Cooldown=, Min=, Max=, Recast=}, {Name=, Cooldown=, Max=, Confirm=}, }}, Brutum = {AttackInterval = , Abilities = { {Name=, Cooldown=, Min=, Max=, AimLeap=}, {Name=, Cooldown=, Min=, Max=, Recast=}, {Name=, Cooldown=, Min=, Max=, Confirm=}, }}, } profileOrder = {, , , , , , , , , } abilityRoles = { []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, []=, } profileAliases = {vapor=, rosemary=, valem=, aooni=, fogborn=, thefogborn=, agatha=, brutum=, palpercy=, tamapercy=} state = { Enabled = , Running = , Sprinting = , Generation = , InputMode = , Testing = , Focused = , MouseAim = , } (isrbxactive) == ok, active = (isrbxactive) ok state.Focused = active == env.PercyAuto = state env.PillarChaseBot = state connection extraConnections = {} gui panel finishGuiDrag mouseAimButton mouseAimStatus = nativeMouseMove = mousemoverel virtualMouse triedVirtualMouse = nextMouseUpdate = backgroundCamera statusLabel toggleButton profileButton abilityKeyBox profileCharacter cachedNPCs = {} markedDummies = {} nextNPCScan = route = {} routeIndex = computing = nextPath = currentTarget last = {} hudBindings, nextAbilityScan = {}, abilityStatus = pendingAbilityRecast leapAim abilityMemory = {} chaseMemory = {} actionBusy, actionSerial = , combatStatus = combatRetryAt = movementRetryAt = trapCache, nextTrapScan = {}, activatedTraps = ({}, {__mode = }) trapPlacements = {} seenTrapObjects = {} trapStatus = trapDecision = trapFCount, trapCCount = , alliedMinions, nextMinionScan = {}, containmentGoal nextContainmentScan = targetChosenAt = eligiblePlayerCount = playerObservations = ({}, {__mode = }) targetCooldowns = ({}, {__mode = }) nav = {Path = , Blocked = , Serial = , LastGoal = , BuiltAt = , Force = , Status = , Stalls = , Failures = , RecoveryGoal = , RecoveryUntil = } nativeDown = keypress nativeUp = keyrelease nativeM1 = mouse1click nativeM2 = mouse2click virtualKeys = { [.KeyCode.Space] = , [.KeyCode.LeftShift] = , [.KeyCode.Q] = , [.KeyCode.F] = , [.KeyCode.C] = , [.KeyCode.W] = , [.KeyCode.A] = , [.KeyCode.S] = , [.KeyCode.D] = , } activeKeyBackends = {} lastBackend = autoPreferred = heldMouse = {} () button, press (heldMouse) ok = (() VIM:(press.X, press.Y, button, , , ) ) ok heldMouse[button] = (backend, code, down) backend == VIM:(down, code, , ) down state.Focused () (nativeDown) ~= (nativeUp) ~= () vk = virtualKeys[code] vk #code.Name == vk = .(code.Name) vk ( .. code.Name) result down result = (vk) result = (vk) result == () (code, down) pinned = activeKeyBackends[code] backends = pinned {pinned} ( state.Focused {}) (state.InputMode == {autoPreferred, autoPreferred == } {state.InputMode}) errors = {} _, backend (backends) ok, err = (sendKey, backend, code, down) ok activeKeyBackends[code] = down backend lastBackend = backend .(errors, backend .. .. (err)) ( .. .(errors, )) movementKeys = {.KeyCode.W, .KeyCode.A, .KeyCode.S, .KeyCode.D} heldMovement = {} steeringRoot, steeringGoal steeringExpires = monitorPosition, monitorTime autoSwitched = (forward, right) { [.KeyCode.W] = forward > , [.KeyCode.S] = forward < -, [.KeyCode.D] = right > , [.KeyCode.A] = right < -, } () steeringRoot, steeringGoal = , _, code (movementKeys) heldMovement[code] ok = (key, code, ) ok heldMovement[code] = () () () pending = {} code (activeKeyBackends) .(pending, code) _, code (pending) (key, code, ) _, code (movementKeys) activeKeyBackends[code] heldMovement[code] = state.Sprinting = activeKeyBackends[.KeyCode.LeftShift] ~= (root, destination) camera = .CurrentCamera destination camera () delta = destination - root.Position flat = .(delta.X, , delta.Z) flat.Magnitude < () look = camera.CFrame.LookVector forward = .(look.X, , look.Z) forward.Magnitude < cameraRight = camera.CFrame.RightVector forward = .(cameraRight.Z, , -cameraRight.X) forward = forward.Unit right = .(-forward.Z, , forward.X) direction = flat.Unit wanted = (direction:(forward), direction:(right)) _, code (movementKeys) heldMovement[code] wanted[code] (code, ) heldMovement[code] = _, code (movementKeys) wanted[code] heldMovement[code] heldMovement[code] = (code, ) (root, destination) steeringRoot, steeringGoal = root, destination steeringExpires = .() + (code) generation = state.Generation (code, ) .() state.Running generation == state.Generation (code, ) (button) camera = .CurrentCamera camera size = camera.ViewportSize x, y = size.X / , size.Y / state.Focused state.InputMode ~= press = {X = x, Y = y} heldMouse[button] = press ok = (() VIM:(x, y, button, , , ) ) ok .() heldMouse[button] ~= press VIM:(x, y, button, , , ) heldMouse[button] = combatStatus = button == () state.Focused state.InputMode == () native button == native = nativeM1 native = nativeM2 (native) == () == () combatStatus = button == () (model) model humanoid = model:() root = model:() model:() model:() model.PrimaryPart humanoid root root:() humanoid.Health > humanoid, root (model, owner, mode) abilityProfiles[mode] mode names = {} model _, attribute ({, , , }) value = model:(attribute) (value) == .(names, value) .(names, model.Name) current = owner:() (current) == .(names, current) _, name (names) normalized = .(name):(, ) profileAliases[normalized] profileAliases[normalized] config.DetectedProfile (text) (.((text:(, ))):(, )) (text) name = (text) name == name == {Key=.KeyCode.Space} name == name == name == name == {Mouse=} name == name == name == name == {Mouse=} #name == name:() code = .KeyCode[.(name)] code {Key=code} (text, profile) bindings = {} entry text:() entry:() name, keyName = entry:() name , wanted, matched = (name) _, ability ((abilityProfiles[profile] abilityProfiles.Generic).Abilities) (ability.Name)==wanted matched=ability.Name input = (keyName) matched ,..profile....name input ,..name....keyName bindings[matched] = input bindings () saved = env.PillarBotAbilityInputs text = (saved)== saved[config.ActiveProfile] (text)== text (item) node = item node node ~= player.PlayerGui node:() node.Visible node:() node.Enabled node = node.Parent () .() < nextAbilityScan nextAbilityScan = .() + config.AbilityScanInterval playerGui = player:() playerGui labels, keys = {}, {} _, item (playerGui:()) item:(gui) (item:() item:() item:() item:()) (item) item.AbsoluteSize.X <= item.AbsoluteSize.Y <= text = (item:() item:()) item.Text entry = {Object=item, Name=(text), ObjectName=(item.Name ), X=item.AbsolutePosition.X+item.AbsoluteSize.X/, Y=item.AbsolutePosition.Y+item.AbsoluteSize.Y/} .(labels, entry) input = (text) input entry.Input=input .(keys, entry) bindings, votes, usedKeycaps = {}, {}, {} profile, data (abilityProfiles) usedKeycaps[profile] = {} _, ability (data.Abilities) wanted = (ability.Name) _, label (labels) matches = label.Name == wanted label.ObjectName == wanted label.ObjectName == wanted.. _, alias (ability.Aliases {}) label.Name == (alias) matches = matches best, bestDistance _, keycap (keys) usedKeycaps[profile][keycap.Object] dx, dy = label.X-keycap.X, label.Y-keycap.Y distance = .(dx*dx+dy*dy) .(dx) <= .(dy) <= distance <= ( bestDistance distance < bestDistance) best,bestDistance=keycap,distance best bindings[profile....ability.Name] = best.Input usedKeycaps[profile][best.Object] = votes[profile] = votes[profile] {} votes[profile][ability.Name] = manualLeap = (env.PillarBotLeapInput) == (env.PillarBotLeapInput) bindings[] = manualLeap {Key=.KeyCode.Space} overrides = ((),config.ActiveProfile) name, input (overrides {}) bindings[config.ActiveProfile....name] = input hudBindings = bindings detected, bestVotes = , profile, abilities (votes) count = _ (abilities) count += count > bestVotes detected,bestVotes=profile,count config.DetectedProfile = bestVotes >= detected count = name (bindings) name:(,#config.ActiveProfile+) == config.ActiveProfile.. count += abilityStatus = count > (count..) config.ActiveProfile == leap = bindings[] keyName = leap.Key (leap.Key):() (leap.Mouse== ) abilityStatus ..= ..keyName missing = {} _, ability ((abilityProfiles[config.ActiveProfile] abilityProfiles.Generic).Abilities) bindings[config.ActiveProfile....ability.Name] .(missing,ability.Name) #missing> abilityStatus ..= ..table.(missing,) (humanoid, root) config.AutoAgentSize config.AgentRadius = .(root.Size.X * + , , ) head = root.Parent:() headHeight = head head:() head.Size.Y config.AgentHeight = .(humanoid.HipHeight + root.Size.Y + headHeight, , ) () backgroundCamera saved = backgroundCamera backgroundCamera = (() saved.Camera.CameraType == .CameraType.Scriptable saved.Camera.CameraType = saved.Type saved.Camera.Focus = saved.Focus ) (camera, target) _, root = (player.Character) root () backgroundCamera backgroundCamera.Camera ~= camera () now = .() backgroundCamera offset = camera.CFrame.Position - root.Position offset.Magnitude > offset = offset.Unit * backgroundCamera = {Camera = camera, Type = camera.CameraType, Focus = camera.Focus, Offset = offset, UpdatedAt = now} saved = backgroundCamera position = root.Position + saved.Offset aim = target.Position (aim - position).Magnitude < dt = .(now - saved.UpdatedAt, / , ) alpha = - .(-config.BackgroundCameraResponse * dt) camera.CameraType = .CameraType.Scriptable camera.CFrame = camera.CFrame:(.(position, aim), alpha) camera.Focus = .(aim) saved.UpdatedAt = now mouseAimStatus = (camera) leapAim state.Running state.Enabled leapAim.Generation ~= state.Generation .() >= leapAim.Until currentTarget ~= leapAim.Target.Parent leapAim = (camera, leapAim.Target) position = camera.CFrame.Position camera.CFrame = .(position, position + leapAim.Direction) mouseAimStatus = (dx, dy) (value) .(value) <= config.MouseDeadzone scaled = .(value * config.MouseGain, -config.MouseMaxStep, config.MouseMaxStep) .(scaled) * .(.(scaled) + ) (dx), (dy) (dx, dy, locked) state.Focused (nativeMouseMove) == ok, result = (nativeMouseMove, dx, dy) ok result ~= triedVirtualMouse triedVirtualMouse = ok, result = (() UIS:() ) ok virtualMouse = result virtualMouse () locked virtualMouse:(.(dx, dy)) cursor = UIS:() virtualMouse:(.(cursor.X + dx, cursor.Y + dy)) () state.GuiDragging mouseAimStatus = leapCamera = .CurrentCamera leapCamera (leapCamera) state.MouseAim () mouseAimStatus = .() < nextMouseUpdate nextMouseUpdate = .() + / _, target = (currentTarget) camera = .CurrentCamera target camera () mouseAimStatus = state.Focused config.BackgroundMode config.BackgroundCameraAim (camera, target) () locked = UIS.MouseBehavior ~= .MouseBehavior.Default dx, dy locked relative = camera.CFrame:(target.Position) horizontal = .(relative.X * relative.X + relative.Z * relative.Z) horizontal < .(relative.Y) < dx = .(relative.X, -relative.Z) * config.MousePixelsPerRadian dy = -.(relative.Y, horizontal) * config.MousePixelsPerRadian point, onScreen = camera:(target.Position) onScreen point.Z <= mouseAimStatus = cursor = UIS:() panel panel.Visible p, size = panel.AbsolutePosition, panel.AbsoluteSize cursor.X >= p.X cursor.X <= p.X + size.X cursor.Y >= p.Y cursor.Y <= p.Y + size.Y mouseAimStatus = dx, dy = point.X - cursor.X, point.Y - cursor.Y dx, dy = (dx, dy) dx == dy == mouseAimStatus = backend = (dx, dy, locked) mouseAimStatus = backend .. (locked ) (message) statusLabel held = {} _, code (movementKeys) heldMovement[code] .(held, code.Name) statusLabel.Text = message .. .. lastBackend .. .. (#held > .(held, ) ) .. .. mouseAimStatus .. .. trapStatus .. .(, trapFCount, trapCCount, trapDecision) .. .. combatStatus .. .. abilityStatus (model) model model:() ancestor = model ancestor ancestor ~= name = .(ancestor.Name):(, ) ancestor == model _, fragment (config.MinionNameFragments) .(name, fragment, , ) name == name == name == ancestor = ancestor.Parent markedDummies[model] normalizedName = .(model.Name):(, ) config.PracticeDummyNames[normalizedName] config.AutoDetectBlockDummies head = model:() head head:() _, name ({, , , , }) part = model:(name) part part:() part.Shape ~= .PartType.Block part:() () nav.Blocked nav.Blocked:() nav.Blocked = nav.Path nav.Path:() nav.Path = route, routeIndex = {}, () nav.Serial += computing = () nextPath = nav.Force, nav.LastGoal, nav.RecoveryGoal = , , nav.BuiltAt, nav.Stalls, nav.RecoveryUntil = , , nav.Failures = nav.Status = () state.Generation += state.Testing = pendingAbilityRecast = leapAim = .(chaseMemory) .(abilityMemory) () containmentGoal = actionSerial += actionBusy = () currentTarget = monitorPosition, monitorTime = , autoSwitched = () state.() finishGuiDrag () state.Enabled = state.Running = state.Testing = () () connection connection:() _, other (extraConnections) other:() gui gui:() env.PercyAuto == state env.PercyAuto = env.PillarChaseBot == state env.PillarChaseBot = () () config.ActiveProfile ~= config.MinionCoordination .() < nextMinionScan nextMinionScan = .() + alliedMinions = {} _, instance (:()) instance:() name = .(instance.Name):(, ) kind _, candidate ({, , , }) .(name, candidate, , ) kind = candidate ownerId = instance:() kind (ownerId == (ownerId) == (player.UserId)) root = instance.PrimaryPart instance:() instance:(, ) root .(alliedMinions, {Model = instance, Root = root, Kind = kind}) (position, origin) config.ActiveProfile ~= config.MinionCoordination factor = _, minion (alliedMinions) minion.Model:() minion.Root.Parent status = minion.Model:() statusValue = minion.Model:() status == statusValue statusValue:() status = statusValue.Value status = .((status )) status == status == status == proximity = (minion.Root.Position - position).Magnitude proximity <= status == factor = .(factor, minion.Kind == ) proximity <= (status == status == ) factor = .(factor, ) status == proximity <= (minion.Root.Position - origin).Magnitude > factor = .(factor, ) factor (currentDistance, challengerDistance, lockAge) lockAge < config.TargetLockSeconds challengerDistance >= currentDistance * config.SwitchDistanceRatio (origin) () bestModel, bestRoot, lockedRoot, lockedDistance bestDistance = config.TargetRadius bestScore = .huge eligiblePlayerCount = _, other (Players:()) other ~= player friendly = config.RespectTeams player.Team ~= other.Team == player.Team player.Neutral other.Neutral friendly _, root = (other.Character) root distance = (root.Position - origin).Magnitude playerObservations[other.Character] = {Position = root.Position, Velocity = root.AssemblyLinearVelocity, Time = .()} distance <= config.TargetRadius eligiblePlayerCount += available = .() >= (targetCooldowns[other.Character] ) available other.Character == currentTarget distance <= config.TargetRadius lockedRoot, lockedDistance = root, distance score = distance * (root.Position, origin) available distance <= config.TargetRadius score < bestScore bestScore = score bestDistance = distance bestModel = other.Character bestRoot = root lockedRoot (lockedDistance * (lockedRoot.Position, origin), bestScore, .() - targetChosenAt) currentTarget, lockedRoot, lockedDistance bestRoot bestModel, bestRoot, bestDistance config.IncludeNPCs .() >= nextNPCScan nextNPCScan = .() + cachedNPCs = {} _, descendant (:()) descendant:() model = descendant.Parent model model:() (model) Players:(model) (player.Character model:(player.Character)) .(cachedNPCs, model) _, model (cachedNPCs) model:() (model) _, root = (model) root distance = (root.Position - origin).Magnitude available = .() >= (targetCooldowns[model] ) available model == currentTarget distance <= config.TargetRadius lockedRoot, lockedDistance = root, distance available distance < bestDistance bestDistance = distance bestModel, bestRoot = model, root lockedRoot (lockedDistance, bestDistance, .() - targetChosenAt) currentTarget, lockedRoot, lockedDistance bestModel, bestRoot, bestDistance (root, target) params = RaycastParams.() params.FilterType = .RaycastFilterType.Exclude ignored = {player.Character} params.RespectCanCollide = _ = , params.FilterDescendantsInstances = ignored result = :(root.Position, target.Position - root.Position, params) result result.Instance:(target.Parent) node, minion = result.Instance, node node ~= node:() name = .(node.Name):(, ) .(name, , , ) .(name, , , ) .(name, , , ) .(name, , , ) minion = node node = node.Parent minion .(ignored, minion) () config.ActiveProfile == config.NormalJumping humanoid = (player.Character) humanoid humanoid.Health <= humanoid.Sit humanoid.PlatformStand humanoid:(.HumanoidStateType.Jumping) (humanoid.UseJumpPower humanoid.JumpPower humanoid.JumpHeight) > () leapAim leapAim.Generation == state.Generation .() < leapAim.Until state.Running state.Enabled state.GuiDragging () .() < (nav.NextJump ) humanoid = (player.Character) humanoid.FloorMaterial == .Material.Air ok, err = (key, .KeyCode.Space, ) ok nav.Status = .. (err) token = {} nav.JumpToken, nav.NextJump = token, .() + config.JumpRetryInterval .(, () nav.JumpToken ~= token released = (key, .KeyCode.Space, ) released nav.JumpToken = ) () ignored = {} _, other (Players:()) other.Character .(ignored, other.Character) currentTarget .(ignored, currentTarget) params = RaycastParams.() params.FilterType = .RaycastFilterType.Exclude params.FilterDescendantsInstances = ignored params.RespectCanCollide = params (position, params) :(position + .(, , ), .(, -, ), params) (target) observation = playerObservations[target.Parent] velocity = observation observation.Velocity target.AssemblyLinearVelocity lead = .(velocity.X, , velocity.Z) * config.PredictionSeconds lead.Magnitude > config.MaxPrediction lead = lead.Unit * config.MaxPrediction candidate = target.Position + lead params = () lead.Magnitude > :(target.Position, lead, params) candidate = target.Position ground = (candidate, params) base = (target.Position, params) ground base .(ground.Position.Y - base.Position.Y) < ground.Position + .(, , ) target.Position (root, destination) params = () startGround, endGround = (root.Position, params), (destination, params) startGround endGround delta = endGround.Position - startGround.Position horizontal = .(delta.X, , delta.Z) distance = horizontal.Magnitude distance > config.MaxDirectDistance distance < .(delta.Y) < forward = horizontal.Unit right = .(-forward.Z, , forward.X) hip = .(root.Position.Y - startGround.Position.Y, , ) from = startGround.Position + .(, hip, ) finish = endGround.Position + .(, hip, ) _, side ({-config.AgentRadius, , config.AgentRadius}) _, height ({, }) offset = right * side + .(, height, ) :(from + offset, finish - from, params) previousY = startGround.Position.Y steps = .(, .(distance / )) step = , steps sample = from:(finish, step / steps) ground = (sample, params) ground ground.Normal.Y < .(ground.Position.Y - previousY) > previousY = ground.Position.Y (position, waypoint) delta = waypoint - position .(delta.X, , delta.Z).Magnitude <= config.WaypointReach .(delta.Y) < (goal, now) nav.Force #route == routeIndex > #route nav.LastGoal (goal - nav.LastGoal).Magnitude >= config.RepathTargetMovement now - nav.BuiltAt >= config.MaxPathAge (root, target, distance) now = .() memory = chaseMemory memory.Target ~= target.Parent .(memory) memory.Target, memory.Samples, memory.BestDistance, memory.ProgressAt = target.Parent, {}, distance, now memory.NextDecision, memory.Breaks = now + config.ChaseProgressTimeout, config.AntiLoop distance <= config.AttackRange memory.Goal, memory.Until, memory.LoopUntil = , , memory.BestDistance, memory.ProgressAt, memory.Breaks = distance, now, .(memory.Samples) distance < memory.BestDistance - memory.BestDistance, memory.ProgressAt, memory.Breaks = distance, now, memory.Goal, memory.LoopUntil = , now >= (memory.NextSample ) memory.NextSample = now + config.ChaseSampleInterval .(memory.Samples, {At=now, Bot=root.Position, Survivor=target.Position, Distance=distance}) memory.Samples[] now-memory.Samples[].At > config.ChaseHistorySeconds .(memory.Samples, ) memory.Goal now < memory.Until (root.Position, memory.Goal) memory.Goal= memory.Goal memory.Goal = now < memory.NextDecision now-memory.ProgressAt < config.ChaseProgressTimeout samples = memory.Samples #samples < now-samples[].At < config.ChaseProgressTimeout- botTravel, targetTravel, revisited = , , index, sample (samples) index > botTravel += (sample.Bot-samples[index-].Bot).Magnitude targetTravel += (sample.Survivor-samples[index-].Survivor).Magnitude now-sample.At >= (sample.Survivor-target.Position).Magnitude < revisited= botTravel < targetTravel < memory.Breaks += memory.NextDecision, memory.LoopUntil = now+config.ChaseProgressTimeout, now+config.ChaseProgressTimeout memory.Reason = revisited alternativeAvailable = memory.Breaks >= eligiblePlayerCount > _, other (Players:()) friendly = config.RespectTeams player.Team ~= other.Team==player.Team player.Neutral other.Neutral _, alternate = (other.Character) other~=player other.Character~=target.Parent friendly alternate (alternate.Position-root.Position).Magnitude<=config.TargetRadius now>=(targetCooldowns[other.Character] ) alternativeAvailable= alternativeAvailable targetCooldowns[target.Parent] = now + memory.Reason = () () velocity = target.AssemblyLinearVelocity direction = .(velocity.X, , velocity.Z) direction.Magnitude < previous = samples[.(,#samples-)] direction = target.Position-previous.Survivor direction = .(direction.X,,direction.Z) direction.Magnitude < direction = direction.Unit side = .(-direction.Z,,direction.X) sign = memory.Breaks % == - params = () targetFloor = (target.Position, params) targetFloor best, bestScore, fallback, fallbackScore _, offset ({direction*, direction*+side*(*sign), side*(*sign), direction*-side*(*sign), direction*(-)+side*(*sign)}) candidate = target.Position+offset floor = (candidate,params) floor floor.Normal.Y < .(floor.Position.Y-targetFloor.Position.Y)> goal = floor.Position+.(,,) recentlyVisited = _, sample (samples) (sample.Bot-goal).Magnitude < recentlyVisited += score = (goal-root.Position).Magnitude + recentlyVisited* - offset:(direction)* memory.LastGoal (goal-memory.LastGoal).Magnitude< score += fallbackScore score<fallbackScore fallback,fallbackScore=goal,score (root,goal) bestScore score<bestScore best,bestScore=goal,score () best = best fallback best memory.Goal, memory.LastGoal, memory.Until = best, best, now+config.ChaseCutoffSeconds nav.Status = memory.Reason.. best memory.Reason ..= nav.Status = memory.Reason (root, target, goal) now = .() computing now < nextPath (goal, now) computing = nav.Serial += serial, generation = nav.Serial, state.Generation nextPath = now + config.RepathInterval targetModel, startPosition, targetPosition = target.Parent, root.Position, target.Position nav.Status = #route > .(config.PathTimeout, () state.Running computing nav.Serial == serial nav.Serial += computing, nav.Force = , nav.Status = ) .(() path ok, err = (() path = PFS:({AgentRadius = config.AgentRadius, AgentHeight = config.AgentHeight, AgentCanJump = (), AgentCanClimb = , WaypointSpacing = }) path:(startPosition, goal) ) current = state.Running state.Enabled generation == state.Generation nav.Serial == serial currentTarget == targetModel current path path:() computing = _, liveTarget = (targetModel) liveTarget (liveTarget.Position - targetPosition).Magnitude > config.RepathTargetMovement * path path:() nav.Force, nextPath = , .() + ok path.Status == .PathStatus.Success points = path:() () nav.Path, route, routeIndex = path, points, nav.LastGoal, nav.BuiltAt, nav.Force = goal, .(), nav.Failures = _, liveRoot = (player.Character) liveRoot route[routeIndex] route[routeIndex].Action ~= .PathWaypointAction.Jump (liveRoot.Position, route[routeIndex].Position) routeIndex += nav.Blocked = path.Blocked:((index) nav.Path == path index >= routeIndex nav.Force, nextPath = , nav.Status = () () ) nav.Status = path path:() nav.Force = nav.Failures += nav.Failures >= #route == targetCooldowns[targetModel] = .() + nav.Status = ok ( .. (err)) nextPath = .() + ) (root, goal) nav.Serial += computing = () () nav.Force, nextPath = , nav.RecoveryGoal, nav.RecoveryUntil = , nav.Stalls += nav.Stalls >= currentTarget targetCooldowns[currentTarget] = .() + delta = goal - root.Position flat = .(delta.X, , delta.Z) flat.Magnitude < forward = flat.Unit right = .(-forward.Z, , forward.X) params = () floor = (root.Position, params) landing = (root.Position + forward * , params) nav.Stalls < floor landing .(landing.Position.Y - floor.Position.Y) <= :(floor.Position + .(, , ), forward * , params) :(root.Position, .(, config.AgentHeight, ), params) () nav.RecoveryGoal, nav.RecoveryUntil = root.Position + forward * , .() + nav.Status = (root, nav.RecoveryGoal) firstSide = nav.Stalls % == - _, side ({firstSide, -firstSide}) detour = root.Position + right * ( * side) + forward * (root, detour) nav.RecoveryGoal, nav.RecoveryUntil = detour, .() + nav.Status = (root, detour) nav.Status = (root, target, overrideGoal) goal = overrideGoal (target) nav.RecoveryGoal .() < nav.RecoveryUntil (root, nav.RecoveryGoal) nav.RecoveryGoal = (root, goal) nav.Status = chaseMemory.Goal == goal (chaseMemory.Reason..) (root, goal) (root, target, goal) waypoint = route[routeIndex] waypoint (waypoint.Action ~= .PathWaypointAction.Jump nav.JumpedWaypoint == waypoint) (root.Position, waypoint.Position) routeIndex += waypoint = route[routeIndex] lookahead = .(#route, routeIndex + ) index = routeIndex, lookahead route[index].Action == .PathWaypointAction.Jump lookahead = index - index = lookahead, routeIndex + , - (root, route[index].Position) routeIndex, waypoint = index, route[index] waypoint waypoint.Action == .PathWaypointAction.Jump delta = waypoint.Position - root.Position .(delta.X, , delta.Z).Magnitude <= .(, config.WaypointReach) () nav.JumpedWaypoint = waypoint nav.Status = (root, waypoint waypoint.Position ) (distance, sight) wanted = config.SprintDuringChase state.Enabled state.Running wanted ~= state.Sprinting (wanted activeKeyBackends[.KeyCode.LeftShift]) (.KeyCode.LeftShift, wanted) state.Sprinting = wanted (root, target, distance, sight, goal) velocity = target.AssemblyLinearVelocity targetMoving = .(velocity.X,,velocity.Z).Magnitude > distance <= config.StopDistance sight targetMoving () nav.Status = distance <= config.AttackRange sight (root,target.Position) nav.Status = (root,target,goal) (name, interval, action) now = .() now - (last[name] -.huge) < interval () == last[name] = .() () config.ActiveProfile ~= generation = state.Generation (.KeyCode.Q) state.Running state.Enabled state.Generation ~= generation .(config.TurboSelectionDelay) state.Running state.Enabled state.Generation ~= generation (config.TurboMode == ) ~= (instance) node = instance _ = , node node == ownerId = node:() ownerId ~= (ownerId) == (player.UserId) owner = node:() owner owner:() owner.Value == player owner.Value == player.Character node = node.Parent (trap) trap:() trap trap.PrimaryPart trap:(, ) (instance) name = .(instance.Name):(, ):(, ) (name == name == name == ) instance:() ~= instance:() ~= (force) now = .() force now < nextTrapScan nextTrapScan = now + candidates, observed = {}, {} _, instance (:()) (instance:() instance:()) (instance) trap = instance instance.Parent instance.Parent:() (instance.Parent) trap = instance.Parent observed[trap] observed[trap] = .(candidates, trap) trapCache = {} _, trap (candidates) ownership = (trap) part = (trap) ours = ownership == _, placement (trapPlacements) part placement.Model now - placement.SentAt <= config.TrapConfirmWindow placement.Before[trap] ownership ~= (part.Position - placement.Position).Magnitude <= placement.Model = trap placement.Correlated = ownership == placement.Model == trap ownership ~= ours = ours .(trapCache, trap) seenTrapObjects = observed index = #trapPlacements, , - placement = trapPlacements[index] placement.Model placement.Model:() .(trapPlacements, index) placement.Model now - placement.SentAt > config.TrapPlacementLifetime .(trapPlacements, index) trapStatus = (#trapCache) .. _, placement (trapPlacements) placement.Model trapStatus ..= now - placement.SentAt <= config.TrapConfirmWindow (target) target target.Parent () nearest, bestDistance = , config.TrapTriggerRange _, trap (trapCache) trap:() activatedTraps[trap] (trap) ~= (trap) part = (trap) part distance = (part.Position - target.Position).Magnitude distance <= bestDistance nearest, bestDistance = trap, distance nearest (target) config.ActiveProfile ~= trap = (target) trap (, config.TrapActivationInterval, () (.KeyCode.C) activatedTraps[trap] = trapCCount += trapDecision = trapStatus = ) (root, target, distance) config.ActiveProfile ~= , root target , distance > config.TrapPlacementRange , .(root.Position.Y - target.Position.Y) > , () #trapCache >= config.TrapMaxCount , _, trap (trapCache) part = (trap) part (part.Position - root.Position).Magnitude < config.TrapMinSpacing , _, placement (trapPlacements) blockTime = placement.Model config.TrapPlacementLifetime config.WireInterval + .() - placement.SentAt < blockTime (placement.Position - root.Position).Magnitude < config.TrapMinSpacing , (root.Position, ()) , containmentGoal containmentGoal.Target == target.Parent (root.Position - containmentGoal.Position).Magnitude <= distance > config.WireMaxDistance , (root) config.ActiveProfile ~= () placement = {Position = root.Position, SentAt = .(), Before = seenTrapObjects} (.KeyCode.F) .(trapPlacements, placement) trapFCount += trapDecision = containmentGoal = nextTrapScan = trapStatus = (root, target, distance) remaining = config.WireInterval - (.() - (last.Wire -.huge)) remaining > trapDecision = .(, remaining) allowed, reason = (root, target, distance) allowed trapDecision = reason (, config.WireInterval, () (root) ) (root, target, distance) now = .() config.ActiveProfile ~= config.Containment distance <= config.AttackRange distance > config.TrapPlacementRange now - (last.Wire -.huge) < config.WireInterval containmentGoal = () #trapCache >= config.TrapMaxCount containmentGoal = containmentGoal containmentGoal.Target == target.Parent containmentGoal.Expires > now containmentGoal.Position containmentGoal = now < nextContainmentScan nextContainmentScan = now + config.ContainmentScanInterval velocity = target.AssemblyLinearVelocity flat = .(velocity.X, , velocity.Z) flat.Magnitude < forward = flat.Unit right = .(-forward.Z, , forward.X) params = () best, bestScore _, ahead ({, }) candidate = target.Position + forward * ahead ground = (candidate, params) ground spot = ground.Position + .(, , ) .(spot.Y - root.Position.Y) > probe = ground.Position + .(, , ) left = :(probe, right * -config.ContainmentSideProbe, params) rightHit = :(probe, right * config.ContainmentSideProbe, params) left rightHit width = left.Distance + rightHit.Distance width < config.AgentRadius * + width > config.ContainmentMaxWidth travel = (spot - root.Position).Magnitude travel / > (ahead / flat.Magnitude) * spaced = _, placement (trapPlacements) now - placement.SentAt < config.TrapPlacementLifetime (placement.Position - spot).Magnitude < config.TrapMinSpacing spaced = _, trap (trapCache) part = (trap) part (part.Position - spot).Magnitude < config.TrapMinSpacing spaced = spaced (root, spot) score = travel + width * bestScore score < bestScore best, bestScore = spot, score best containmentGoal = {Position = best, Target = target.Parent, Expires = now + config.ContainmentPlanLifetime} trapStatus = best () memory = abilityMemory[config.ActiveProfile] memory memory = {Uses={}, RetryUntil={}, LastAt=-.huge} abilityMemory[config.ActiveProfile] = memory memory (name, cooldown, distance) memory, now = (), .() usedAt = memory.Uses[name] score = usedAt (+.((now-usedAt)/.(cooldown,),)*) memory.LastName == name score -= role = abilityRoles[name] role == score += distance > config.AttackRange* - role == score += chaseMemory.LoopUntil now < chaseMemory.LoopUntil score += role == (role == ) score (name) memory = () memory.Uses[name], memory.LastAt, memory.LastName = .(), .(), name (binding, hold) binding.Mouse ~= (binding.Mouse) binding.Key hold (binding.Key) generation = state.Generation (binding.Key, ) .(hold) state.Running state.Enabled state.Generation ~= generation (binding.Key, ) (target, distance) humanoid, root = (player.Character) camera = .CurrentCamera humanoid root target camera humanoid.FloorMaterial == .Material.Air humanoid.Sit humanoid.PlatformStand delta = target.Position - root.Position flat = .(delta.X, , delta.Z) flat.Magnitude < pitch = .(config.BrutumLeapPitchMin + (config.BrutumLeapPitchMax-config.BrutumLeapPitchMin) * .((distance-)/, , )) leapAim = {Target=target, Generation=state.Generation, Until=.()+config.BrutumLeapWindup, Direction=flat.Unit*.(pitch)+.(,.(pitch),)} (camera) (distance, target) executionGeneration = state.Generation profile = abilityProfiles[config.ActiveProfile] profile pendingAbilityRecast pending = pendingAbilityRecast pending.Profile ~= config.ActiveProfile pending.Generation ~= state.Generation pendingAbilityRecast = .() >= pending.Due pendingAbilityRecast = combatStatus = .. pending.Name sent = (pending.Binding) sent ().LastAt=.() sent memory, now = (), .() now-memory.LastAt < config.AbilityGap candidates = {} index, ability (profile.Abilities) binding = hudBindings[config.ActiveProfile....ability.Name] binding distance < (ability.Min ) distance > (ability.Max math.huge) then continue end if now-(last["Ability:"..config.ActiveProfile..":"..ability.Name] or -math.huge)<ability.Cooldown or now<(memory.RetryUntil[ability.Name] or 0) then continue end table.insert(candidates,{Ability=ability, Binding=binding, Index=index, Score=abilityPriority(ability.Name,ability.Cooldown,distance)}) end table.sort(candidates,function(a,b) return a.Score==b.Score and a.Index<b.Index or a.Score>b.Score end) for _, candidate in ipairs(candidates) do local ability, binding = candidate.Ability, candidate.Binding local ok, used = pcall(function() return attempt("Ability:"..config.ActiveProfile..":"..ability.Name, ability.Cooldown, function() local generation = state.Generation if ability.AimLeap then if not prepareBrutumLeap(target, distance) then return false end task.wait(0.1) if not state.Running or not state.Enabled or generation ~= state.Generation then leapAim=nil return false end end if not pressAbility(binding, ability.Hold) then if ability.AimLeap then leapAim=nil end return false end if ability.Confirm ~= nil then task.wait(config.AbilitySelectionDelay) if not state.Running or not state.Enabled or state.Generation ~= generation then return false end if click(ability.Confirm) == false then return false end end if ability.Recast then pendingAbilityRecast = {Binding=binding, Profile=config.ActiveProfile, Name=ability.Name, Due=os.clock()+ability.Recast, Generation=state.Generation} end combatStatus = ability.Name .. " input sent" return true end) end) if ok and used then recordAbility(ability.Name) return true end memory.RetryUntil[ability.Name] = os.clock()+config.AbilityFailedRetry if not ok then releaseMouseButtons() if binding.Key then pcall(key,binding.Key,false) end leapAim=nil combatStatus = ability.Name.." failed; trying another ability" end if not state.Running or not state.Enabled or state.Generation ~= executionGeneration then return false end end return false end local function chooseAction(distance, target) if leapAim and leapAim.Generation == state.Generation and os.clock() < leapAim.Until then return end local profile = abilityProfiles[config.ActiveProfile] or abilityProfiles.Generic if distance <= config.AttackRange and attempt("Attack", profile.AttackInterval, function() return click(0) end) then return end if config.ActiveProfile ~= "PalPercy" then useHUDAbility(distance, target) return end if activateNearbyTrap(target) then return end local memory = getAbilityMemory() if os.clock()-memory.LastAt < config.AbilityGap then return end local _, root = characterParts(player.Character) local candidates = { {Name="Wire Terror", Cooldown=config.WireInterval, Key="Wire", Index=1, Run=function() return tryPlaceTrap(root,target,distance) end}, {Name="Turbo Time", Cooldown=config.TurboInterval, Key="Turbo", Index=2, Run=function() return (config.TurboMode=="Minions" or distance>=config.TurboMinDistance) and attempt("Turbo",config.TurboInterval,useTurbo) end}, {Name="Together Forever", Cooldown=config.TogetherInterval, Key="Together", Index=3, Run=function() return distance<=config.TogetherMaxDistance and attempt("Together",config.TogetherInterval,function() return click(1) end) end}, } for _, candidate in ipairs(candidates) do candidate.Score=abilityPriority(candidate.Name,candidate.Cooldown,distance) end table.sort(candidates,function(a,b) return a.Score==b.Score and a.Index<b.Index or a.Score>b.Score end) for _, candidate in ipairs(candidates) do if os.clock()-(last[candidate.Key] or -math.huge)>=candidate.Cooldown and candidate.Run() then recordAbility(candidate.Name) return end end end local function scheduleCombat(target) if actionBusy or state.GuiDragging or os.clock() < combatRetryAt then return end actionBusy = true actionSerial += 1 local serial, generation = actionSerial, state.Generation task.spawn(function() local ok, err = pcall(function() if not state.Running or not state.Enabled or state.GuiDragging or (not state.Focused and not config.BackgroundMode) or state.Generation ~= generation or actionSerial ~= serial or UIS:GetFocusedTextBox() then return end local _, root = characterParts(player.Character) local _, liveTarget = characterParts(target.Parent) if not root or liveTarget ~= target or currentTarget ~= target.Parent then return end local distance = (target.Position - root.Position).Magnitude if visible(root, target) then chooseAction(distance, target) else if activateNearbyTrap(target) then return end if containmentGoal and canPlaceTrap(root, target, distance) then tryPlaceTrap(root, target, distance) end end end) if serial ~= actionSerial then return end actionBusy = false if not ok then releaseMouseButtons() combatStatus = "input error: " .. tostring(err) combatRetryAt = os.clock() + 1 warn("[Percy] Combat: " .. tostring(err)) end end) end local function toggle() if not state.Running then return end if state.Testing then setStatus("Wait for the W input test to finish.") return end state.Enabled = not state.Enabled resetMovement() toggleButton.Text = state.Enabled and "Disable (F8)" or "Enable (F8)" setStatus(state.Enabled and "Automatically looking for players and block-style dummies..." or "Disabled. Click Enable for automatic target detection.") print("[Percy] " .. (state.Enabled and "Enabled" or "Disabled")) end gui = Instance.new("ScreenGui") gui.Name = "PillarChaseUniversalBot" gui.ResetOnSpawn = false gui.DisplayOrder = 100 gui.Parent = player:WaitForChild("PlayerGui") panel = Instance.new("Frame") panel.Size = UDim2.fromOffset(390, 385) panel.Position = UDim2.new(0, 20, 0, 100) panel.BackgroundColor3 = Color3.fromRGB(24, 24, 30) panel.Parent = gui statusLabel = Instance.new("TextLabel") statusLabel.Size = UDim2.new(1, -20, 0, 125) statusLabel.Position = UDim2.fromOffset(10, 5) statusLabel.BackgroundTransparency = 1 statusLabel.TextColor3 = Color3.new(1, 1, 1) statusLabel.TextSize = 14 statusLabel.TextWrapped = true statusLabel.Text = "Eight killer ability profiles. Reads visible HUD keycaps. K selects killer if Auto cannot identify it." statusLabel.Parent = panel toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.fromOffset(190, 36) toggleButton.Position = UDim2.fromOffset(10, 135) toggleButton.Text = "Enable (F8)" toggleButton.TextSize = 16 toggleButton.Parent = panel toggleButton.Activated:Connect(toggle) local stopButton = Instance.new("TextButton") stopButton.Size = UDim2.fromOffset(110, 36) stopButton.Position = UDim2.fromOffset(210, 135) stopButton.Text = "Unload (F9)" stopButton.TextSize = 16 stopButton.Parent = panel stopButton.Activated:Connect(state.Stop) local backendButton = Instance.new("TextButton") backendButton.Size = UDim2.fromOffset(190, 36) backendButton.Position = UDim2.fromOffset(10, 178) backendButton.Text = "Input: Auto (VIM first)" backendButton.TextSize = 14 backendButton.Parent = panel backendButton.Activated:Connect(function() state.Testing = false resetMovement() local nextMode = {Auto = "VIM", VIM = "Native", Native = "Auto"} state.InputMode = nextMode[state.InputMode] backendButton.Text = "Input: " .. state.InputMode setStatus("Input mode changed. Test W checks movement without needing a target.") end) local testButton = Instance.new("TextButton") testButton.Size = UDim2.fromOffset(160, 36) testButton.Position = UDim2.fromOffset(210, 178) testButton.Text = "Test W (1 second)" testButton.TextSize = 14 testButton.Parent = panel mouseAimButton = Instance.new("TextButton") mouseAimButton.Size = UDim2.fromOffset(360, 32) mouseAimButton.Position = UDim2.fromOffset(10, 222) mouseAimButton.Text = "Mouse aim: ON (H)" mouseAimButton.TextSize = 14 mouseAimButton.Parent = panel local function toggleMouseAim() state.MouseAim = not state.MouseAim if not state.MouseAim then restoreBackgroundCamera() end if state.MouseAim and not virtualMouse then triedVirtualMouse = false end mouseAimStatus = state.MouseAim and "waiting for target" or "OFF (H)" mouseAimButton.Text = "Mouse aim: " .. (state.MouseAim and "ON" or "OFF") .. " (H)" end mouseAimButton.Activated:Connect(toggleMouseAim) profileButton = Instance.new("TextButton") profileButton.Size = UDim2.fromOffset(360, 32) profileButton.Position = UDim2.fromOffset(10, 262) profileButton.Text = "Profile: " .. config.ProfileMode .. " (K)" profileButton.TextSize = 14 profileButton.Parent = panel local function cycleProfile() local index = table.find(profileOrder, config.ProfileMode) or 0 config.ProfileMode = profileOrder[index % #profileOrder + 1] env.PillarBotProfile = config.ProfileMode config.ActiveProfile = resolveKillerProfile(player.Character, player, config.ProfileMode) resetMovement() table.clear(last) table.clear(trapPlacements) table.clear(trapCache) table.clear(alliedMinions) nextMinionScan, nextTrapScan = 0, 0 profileButton.Text = "Profile: " .. config.ProfileMode .. " / " .. config.ActiveProfile .. " (K)" if abilityKeyBox then abilityKeyBox.Text=savedAbilityOverrides() end setStatus("Profile selected. Abilities use detected HUD controls; Generic uses M1 only.") end profileButton.Activated:Connect(cycleProfile) local leapKeyBox = Instance.new("TextBox") leapKeyBox.Size = UDim2.fromOffset(360, 32) leapKeyBox.Position = UDim2.fromOffset(10, 302) leapKeyBox.Text = type(env.PillarBotLeapInput) == "string" and env.PillarBotLeapInput or "" leapKeyBox.PlaceholderText = "Leap key: Space (blank = Space)" leapKeyBox.ClearTextOnFocus = false leapKeyBox.TextSize = 14 leapKeyBox.Parent = panel leapKeyBox.FocusLost:Connect(function() local value = leapKeyBox.Text:match("^%s*(.-)%s*$") if value ~= "" and not parseAbilityInput(value) then setStatus("Leap key must be Space, a letter, or RMB / MouseButton2. Blank uses Space.") return end env.PillarBotLeapInput = value ~= "" and value or nil nextAbilityScan = 0 scanAbilityHUD() setStatus(value == "" and "Leap uses Space." or "Leap key saved: " .. value) end) abilityKeyBox = Instance.new("TextBox") abilityKeyBox.Size = UDim2.fromOffset(360,32) abilityKeyBox.Position = UDim2.fromOffset(10,342) abilityKeyBox.Text = savedAbilityOverrides() abilityKeyBox.PlaceholderText = "Ability keys: Name=Q; Other Name=RMB" abilityKeyBox.ClearTextOnFocus = false abilityKeyBox.TextSize = 13 abilityKeyBox.Parent = panel abilityKeyBox.FocusLost:Connect(function() local text = abilityKeyBox.Text local parsed, reason = parseAbilityOverrides(text,config.ActiveProfile) if not parsed then setStatus(reason) return end if type(env.PillarBotAbilityInputs)~="table" then env.PillarBotAbilityInputs={} end env.PillarBotAbilityInputs[config.ActiveProfile] = text nextAbilityScan=0 scanAbilityHUD() setStatus("Ability controls saved for "..config.ActiveProfile..". Blank uses detected controls.") end) testButton.Activated:Connect(function() if state.Testing or not state.Running then return end state.Enabled = false toggleButton.Text = "Enable (F8)" resetMovement() local _, root = characterParts(player.Character) if not root then setStatus("No living character available for the W test.") return end state.Testing = true local generation = state.Generation local initialPosition = root.Position task.spawn(function() local ok, err = pcall(function() heldMovement[Enum.KeyCode.W] = true key(Enum.KeyCode.W, true) setStatus("Testing W. Your character should walk forward for one second.") local deadline = os.clock() + 1 repeat task.wait(0.05) until os.clock() >= deadline or not state.Running or not state.Testing or not state.Focused or generation ~= state.Generation end) if generation ~= state.Generation or not state.Running then return end releaseMovement() state.Testing = false if not ok then setStatus("W test error: " .. tostring(err)) return end if root.Parent then local displacement = root.Position - initialPosition local distance = Vector3.new(displacement.X, 0, displacement.Z).Magnitude setStatus(string.format("W test: moved %.1f studs. %s", distance, distance > 0.5 and "Input produced movement. Click Enable." or "No movement observed. Try another input mode, or check for an obstacle/stun.")) end end) end) local dragHandle = Instance.new("TextLabel") dragHandle.Name = "DragHandle" dragHandle.Size = UDim2.new(1, 0, 0, 30) dragHandle.BackgroundColor3 = Color3.fromRGB(45, 49, 65) dragHandle.TextColor3 = Color3.new(1, 1, 1) dragHandle.TextSize = 14 dragHandle.Text = "PILLAR CHASE BOT | Drag here to move" dragHandle.Active = true dragHandle.Parent = panel for _, child in ipairs(panel:GetChildren()) do if child ~= dragHandle and child:IsA("GuiObject") then child.Position = child.Position + UDim2.fromOffset(0, 32) end end panel.Size = panel.Size + UDim2.fromOffset(0, 32) local dragInput, dragOrigin, panelOrigin local function movePanel(x, y) local camera = workspace.CurrentCamera if camera then local viewport, size = camera.ViewportSize, panel.AbsoluteSize x = math.clamp(x, 0, math.max(0, viewport.X - size.X)) y = math.clamp(y, 0, math.max(0, viewport.Y - size.Y - 36)) end panel.Position = UDim2.fromOffset(x, y) end finishGuiDrag = function() if state.GuiDragging then env.PillarBotGuiPosition = {X = panel.Position.X.Offset, Y = panel.Position.Y.Offset} end state.GuiDragging = false dragInput, dragOrigin, panelOrigin = nil, nil, nil end local savedPosition = env.PillarBotGuiPosition if type(savedPosition) == "table" and type(savedPosition.X) == "number" and type(savedPosition.Y) == "number" and savedPosition.X == savedPosition.X and savedPosition.Y == savedPosition.Y then movePanel(savedPosition.X, savedPosition.Y) end table.insert(extraConnections, dragHandle.InputBegan:Connect(function(input) if not state.Running then return end if input.UserInputType ~= Enum.UserInputType.MouseButton1 and input.UserInputType ~= Enum.UserInputType.Touch then return end if state.GuiDragging then return end state.GuiDragging = true dragInput, dragOrigin, panelOrigin = input, input.Position, panel.Position end)) table.insert(extraConnections, UIS.InputChanged:Connect(function(input) if not state.GuiDragging then return end local isMouse = dragInput.UserInputType == Enum.UserInputType.MouseButton1 and input.UserInputType == Enum.UserInputType.MouseMovement if not isMouse and input ~= dragInput then return end local delta = input.Position - dragOrigin movePanel(panelOrigin.X.Offset + delta.X, panelOrigin.Y.Offset + delta.Y) end)) table.insert(extraConnections, UIS.InputEnded:Connect(function(input) if not state.GuiDragging then return end if input == dragInput or (dragInput.UserInputType == Enum.UserInputType.MouseButton1 and input.UserInputType == Enum.UserInputType.MouseButton1) then finishGuiDrag() end end)) table.insert(extraConnections, UIS.WindowFocusReleased:Connect(function() finishGuiDrag() state.Focused = false nextMouseUpdate = 0 state.Testing = false state.Generation += 1 actionSerial += 1 actionBusy = false releaseAllKeys() invalidateNavigation() monitorPosition, monitorTime = nil, nil if not config.BackgroundMode then resetMovement() end setStatus(config.BackgroundMode and "Background mode: Roblox input only; tracking continues." or "Paused: focus the Roblox window to continue.") end)) table.insert(extraConnections, UIS.WindowFocused:Connect(function() state.Focused = true nextMouseUpdate = 0 restoreBackgroundCamera() end)) table.insert(extraConnections, UIS.TextBoxFocused:Connect(function() state.Testing = false resetMovement() end)) table.insert(extraConnections, player.CharacterRemoving:Connect(function() state.Testing = false resetMovement() end)) table.insert(extraConnections, RunService.Heartbeat:Connect(function() if not state.Running or state.Testing then return end if not state.Enabled or (not state.Focused and not config.BackgroundMode) or UIS:GetFocusedTextBox() then restoreBackgroundCamera() releaseAllKeys() monitorPosition, monitorTime = nil, nil return end local mouseOK, mouseError = pcall(updateMouseAim) if not mouseOK then restoreBackgroundCamera() nextMouseUpdate = os.clock() + 2 mouseAimStatus = tostring(mouseError) mouseAimButton.Text = "Mouse input retrying; background camera enabled (H)" warn("[Percy] Mouse aim: " .. tostring(mouseError)) end if os.clock() < movementRetryAt then return end local root, goal = steeringRoot, steeringGoal if not root or not root.Parent or not goal or os.clock() > steeringExpires then releaseMovement() monitorPosition, monitorTime = nil, nil return end local ok, err = pcall(function() applyWASD(root, goal) if next(heldMovement) == nil then monitorPosition, monitorTime = nil, nil return end local now = os.clock() if not monitorPosition then monitorPosition, monitorTime = root.Position, now elseif now - monitorTime >= 1.5 then local displacement = root.Position - monitorPosition local moved = Vector3.new(displacement.X, 0, displacement.Z).Magnitude monitorPosition, monitorTime = root.Position, now if moved < 0.5 and state.InputMode == "Auto" and not autoSwitched then local movementBackend = autoPreferred for _, code in ipairs(movementKeys) do if activeKeyBackends[code] then movementBackend = activeKeyBackends[code] break end end releaseAllKeys() autoPreferred = movementBackend == "VIM" and "Native" or "VIM" autoSwitched = true steeringRoot, steeringGoal = root, goal steeringExpires = now + 0.4 applyWASD(root, goal) nav.Force, nextPath = true, 0 elseif moved < 0.5 then recoverFromStall(root, goal) else nav.Stalls = 0 end end end) if not ok then releaseAllKeys() if not state.Focused and config.BackgroundMode then movementRetryAt = os.clock() + 1.5 combatStatus = "Background movement unavailable: " .. tostring(err) else state.Enabled = false resetMovement() toggleButton.Text = "Enable (F8)" setStatus("W/A/S/D input error: " .. tostring(err)) end warn("[Percy] W/A/S/D input: " .. tostring(err)) end end)) connection = UIS.InputBegan:Connect(function(input) if UIS:GetFocusedTextBox() then return end if input.KeyCode == Enum.KeyCode.F9 then state.Stop() elseif input.KeyCode == Enum.KeyCode.H then toggleMouseAim() elseif input.KeyCode == Enum.KeyCode.J then config.Containment = not config.Containment containmentGoal = nil setStatus("Chokepoint containment: " .. (config.Containment and "ON" or "OFF")) elseif input.KeyCode == Enum.KeyCode.K then cycleProfile() elseif input.KeyCode == Enum.KeyCode.P then local part = player:GetMouse().Target local model = part while model and model ~= workspace do if model:IsA("Model") and model:FindFirstChildOfClass("Humanoid") then break end model = model.Parent end if not model or model == workspace or model == player.Character or (player.Character and model:IsDescendantOf(player.Character)) or Players:GetPlayerFromCharacter(model) then setStatus("Point at the practice dummy's body, then press P. Press L to unlock your mouse if needed.") return end local humanoid, root = characterParts(model) if not humanoid or not root then setStatus("That model has no living Humanoid or supported root part.") return end markedDummies[model] = true nextNPCScan = 0 setStatus("Marked dummy: " .. model.Name .. ". Click Enable if disabled.") print("[Percy] Manually marked dummy: " .. model:GetFullName()) elseif input.KeyCode == Enum.KeyCode.O then markedDummies = {} nextNPCScan = 0 resetMovement() setStatus("Manual marks cleared. Aim at a dummy and press P to mark it again.") elseif input.KeyCode == Enum.KeyCode.F8 then toggle() end end) task.spawn(function() while state.Running do task.wait(0.1) if not state.Running then break end if not state.Enabled then continue end local ok, err = pcall(function() if not state.Focused and not config.BackgroundMode then resetMovement() setStatus("Paused: Roblox window is unfocused.") return end if UIS:GetFocusedTextBox() then resetMovement() setStatus("Paused while typing") return end local humanoid, root = characterParts(player.Character) if not humanoid then resetMovement() setStatus("Waiting for your character's living Humanoid and root part") return end scanAbilityHUD() local detected = resolveKillerProfile(player.Character, player, config.ProfileMode) if config.ActiveProfile ~= detected or profileCharacter ~= player.Character then resetMovement() table.clear(last) table.clear(trapPlacements) table.clear(trapCache) table.clear(alliedMinions) nextMinionScan, nextTrapScan = 0, 0 config.ActiveProfile, profileCharacter = detected, player.Character applyAgentSize(humanoid, root) profileButton.Text = "Profile: " .. config.ProfileMode .. " / " .. detected .. " (K)" if abilityKeyBox then abilityKeyBox.Text=savedAbilityOverrides() end end local model, target, distance = nearestTarget(root.Position) if not target then resetMovement() setStatus("No player or recognized dummy within " .. config.TargetRadius .. " studs. Unknown NPC rigs are ignored; P can manually mark a dummy.") return end if currentTarget ~= model then state.Generation += 1 invalidateNavigation() releaseMovement() currentTarget = model targetChosenAt = os.clock() monitorPosition, monitorTime = nil, nil autoSwitched = false actionSerial += 1 actionBusy = false containmentGoal = nil table.clear(chaseMemory) releaseMouseButtons() end local sight = visible(root, target) local cutoffPosition = updateChaseTactics(root,target,distance) if os.clock()<(targetCooldowns[model] or 0) then setStatus("Changing target after repeated unsuccessful approaches.") return end local containmentPosition = not cutoffPosition and planContainment(root, target, distance) or nil if not state.Focused then local sprintOK, sprintError = pcall(updateSprint, distance, sight) if not sprintOK then combatStatus = "Background sprint unavailable: " .. tostring(sprintError) end else updateSprint(distance, sight) end updateChaseMovement(root,target,distance,sight,cutoffPosition or containmentPosition) setStatus(string.format("Players located: %d | Target: %s (%.0f studs)\nXYZ: %.0f, %.0f, %.0f | %s", eligiblePlayerCount, model.Name, distance, target.Position.X, target.Position.Y, target.Position.Z, nav.Status)) scheduleCombat(target) end) if not ok then state.Enabled = false resetMovement() toggleButton.Text = "Enable (F8)" setStatus("Error: " .. tostring(err)) warn("[Percy] Disabled: " .. tostring(err)) end end end) print("[Percy] Loaded. F8 toggles; F9 unloads.")Obfuscated. The code is scrambled, so you can't read what it does. Common for key systems, but take care.
its a auto play script that plays for you as killer