Run it
Copy the script and paste it into your executor.
env = ( ())
env.BeyondNenAutoParry
(env.BeyondNenAutoParry)
CONFIG = {
ParryKey = .KeyCode.F,
ToggleKey = .KeyCode.P,
UnloadKey = .KeyCode.End,
Range = ,
FacingDot = ,
ReactionDelay = ,
HoldTime = ,
Cooldown = ,
TargetPlayers = ,
TargetNPCs = ,
ActionPriorities = {
[.AnimationPriority.Action] = ,
[.AnimationPriority.Action2] = ,
[.AnimationPriority.Action3] = ,
[.AnimationPriority.Action4] = ,
},
IgnoreNames = { , , , , , , , , , },
ForceNames = { , , , , , , , , , },
ParryOnlyIds = ,
ParryIds = {
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
},
PointBlank = ,
NormalHitAt = ,
DodgeKey = .KeyCode.Q,
HeavyNames = { , , , , , , , , , , },
HeavyMinLength = ,
DodgeLead = ,
HeavyHitFraction = ,
HeavyDB = {
[] = { hit = , at = },
[] = { hit = , at = },
[] = { hit = , at = },
[] = { hit = , at = },
[] = { hit = },
[] = { hit = },
[] = { hit = },
[] = { hit = },
[] = { hit = },
},
DodgeDirKey = .KeyCode.S,
DodgeDirHold = ,
HeavyDedupeWindow = ,
DodgeCooldown = ,
IgnoreIds = {
[] = ,
[] = ,
[] = ,
},
CancelOwnAttack = ,
CancelFadeTime = ,
ClearAttributes = { },
ParryEnabled = ,
DodgeEnabled = ,
AutoFight = ,
FightKey = .KeyCode.G,
BossNames = { },
FightRange = ,
ApproachDist = ,
AttackRange = ,
AttackMinEndlag = ,
ClickInterval = ,
AvoidZones = ,
ZoneMinSize = ,
ZoneMaxThickness = ,
ZoneMargin = ,
ZoneExitPad = ,
ZoneDashDist = ,
ZoneNames = { , , , , , },
LogZones = ,
ShowGui = ,
GuiToggleKey = .KeyCode.RightControl,
Debug = ,
}
Players = :()
RunService = :()
UserInputService = :()
VIM = :()
LocalPlayer = Players.LocalPlayer
enabled =
lastParry =
lastDodge =
lastHeavyHit = -.huge
fleeUntil =
connections = {}
hooked = {}
(conn)
.(connections, conn)
conn
(model)
model (model:() model.PrimaryPart)
()
(LocalPlayer.Character)
(text)
(()
:():(, {
Title = ,
Text = text,
Duration = ,
})
)
(name, list)
name = .(name )
_, word (list)
.(name, word, , )
(keyCode)
ok = (()
VIM:(, keyCode, , )
.(CONFIG.HoldTime)
VIM:(, keyCode, , )
)
ok keypress keyrelease
code = keyCode.Value
(keypress, code)
.(CONFIG.HoldTime)
(keyrelease, code)
()
char = LocalPlayer.Character
char
animator = char:(, )
animator
_, animTrack (animator:())
CONFIG.ActionPriorities[animTrack.Priority]
(animTrack.Name, CONFIG.IgnoreNames)
(() animTrack:(CONFIG.CancelFadeTime) )
_, attr (CONFIG.ClearAttributes)
char:(attr) ==
(() char:(attr, ) )
(keyCode, dirKey)
CONFIG.CancelOwnAttack
()
.()
dir = dirKey CONFIG.DodgeDirKey
keyCode == CONFIG.DodgeKey dir
char = LocalPlayer.Character
hum = char char:()
dirKey (hum hum.MoveDirection.Magnitude < )
(() VIM:(, dir, , ) )
.()
(keyCode)
.(CONFIG.DodgeDirHold)
(() VIM:(, dir, , ) )
(keyCode)
()
now = .()
now - lastParry < CONFIG.Cooldown
lastParry = now
.(defend, CONFIG.ParryKey)
(dirKey)
now = .()
now - lastDodge < CONFIG.DodgeCooldown
lastDodge = now
.(defend, CONFIG.DodgeKey, dirKey)
(attackerModel)
mine, theirs = (), (attackerModel)
mine theirs
offset = mine.Position - theirs.Position
dist = offset.Magnitude
dist > CONFIG.Range
dist <
dist <= CONFIG.PointBlank
facing = theirs.CFrame.LookVector:(offset.Unit)
facing >= CONFIG.FacingDot
(animTrack)
anim = animTrack.Animation
(anim anim.Name) animTrack.Name
(animTrack)
anim = animTrack.Animation
anim .(anim.AnimationId, )
(animTrack)
name = (animTrack)
(name, CONFIG.ForceNames)
(name, CONFIG.IgnoreNames)
CONFIG.ActionPriorities[animTrack.Priority] ==
(animTrack)
CONFIG.HeavyDB[(animTrack)]
((animTrack), CONFIG.HeavyNames)
animTrack.Length >= CONFIG.HeavyMinLength (animTrack)
(attackerModel, animTrack)
enabled
CONFIG.IgnoreIds[(animTrack)]
heavy = CONFIG.DodgeEnabled (animTrack)
heavy (CONFIG.ParryEnabled (animTrack))
(attackerModel)
CONFIG.Debug
(.(,
attackerModel.Name, (animTrack), (animTrack), animTrack.Length,
animTrack.Priority.Name, heavy ))
heavy
entry = CONFIG.HeavyDB[(animTrack)]
speed = .(animTrack.Speed, )
hitAt = entry entry.hit (animTrack.Length / speed) * CONFIG.HeavyHitFraction
= entry entry.at .(, hitAt - CONFIG.DodgeLead)
now = .()
absHit = now + hitAt
.(absHit - lastHeavyHit) < CONFIG.HeavyDedupeWindow lastHeavyHit > now -
lastHeavyHit = absHit
.(, ()
enabled CONFIG.DodgeEnabled (attackerModel)
()
)
CONFIG.ParryOnlyIds CONFIG.ParryIds[(animTrack)]
pressDelay = CONFIG.ParryIds[(animTrack)]
(pressDelay) ~= pressDelay = CONFIG.ReactionDelay
.(pressDelay, ()
(enabled animTrack.IsPlaying (attackerModel))
char = LocalPlayer.Character
char char:() ==
CONFIG.DodgeEnabled char:() ~=
= .(, CONFIG.NormalHitAt - CONFIG.DodgeLead - CONFIG.ReactionDelay)
.(, ()
enabled (attackerModel) ()
)
()
)
(model)
model == LocalPlayer.Character
isPlayer = Players:(model) ~=
isPlayer
CONFIG.TargetPlayers
CONFIG.TargetNPCs
(animator)
hooked[animator]
model = animator:()
model (model)
hooked[animator] = animator.AnimationPlayed:((animTrack)
(model, animTrack)
)
animator.Destroying:(()
hooked[animator]
hooked[animator]:()
hooked[animator] =
)
_, inst (:())
inst:()
(inst)
(.DescendantAdded:((inst)
inst:()
.(hookAnimator, inst)
))
bossModel
lastScan, lastClick = ,
(model)
model == LocalPlayer.Character Players:(model)
model:() ~=
.(CONFIG.BossNames, model.Name) ~=
(model)
model model.Parent
hum = model:()
hum ~= hum.Health > (model) ~=
()
root = ()
root
best, bestDist = , CONFIG.FightRange
_, inst (:())
inst:()
model = inst.Parent
model model:() (model) (model)
d = ((model).Position - root.Position).Magnitude
d < bestDist best, bestDist = model, d
best
(model)
untilAt = model:()
(untilAt) ~=
untilAt - :()
()
cam = .CurrentCamera
c = cam (cam.ViewportSize / ) .(, )
ok = (()
VIM:(c.X, c.Y, , , , )
.()
VIM:(c.X, c.Y, , , , )
)
ok mouse1click
(mouse1click)
fightAccum =
(RunService.Heartbeat:((dt)
fightAccum += dt
fightAccum <
fightAccum =
(enabled CONFIG.AutoFight)
char = LocalPlayer.Character
hum = char char:()
root = ()
(hum root hum.Health > )
now = .()
now < fleeUntil
(bossModel) now - lastScan >
lastScan = now
bossModel = ()
(bossModel)
char:() ~= char:() ~=
bpos = (bossModel).Position
flat = .(bpos.X - root.Position.X, , bpos.Z - root.Position.Z)
dist = flat.Magnitude
dist > dist <
root.CFrame = .(root.Position, root.Position + flat)
dist > CONFIG.ApproachDist
hum:(bpos)
dist <= CONFIG.AttackRange
(bossModel) >= CONFIG.AttackMinEndlag
now - lastClick >= CONFIG.ClickInterval
lastClick = now
.(clickM1)
))
zones = {}
(line)
CONFIG.LogZones appendfile
(appendfile, , .(, .(), line))
(inst)
m = inst:()
m
m:()
m = m.Parent m.Parent:()
(c)
c.R >= c.G <= c.B <=
(part)
(part)
(part.Name, CONFIG.ZoneNames) (part.Parent part.Parent.Name , CONFIG.ZoneNames)
s = part.Size
mx, mn = .(s.X, s.Y, s.Z), .(s.X, s.Y, s.Z)
mx < CONFIG.ZoneMinSize mn > CONFIG.ZoneMaxThickness
part.Transparency < (part.Color)
(part)
.(()
boss = bossModel
(boss boss.Parent)
_, m (:())
m:() .(CONFIG.BossNames, m.Name) m:() boss = m
broot = boss (boss)
i = ,
part.Parent (part.Name .. .. .(, (i - ) * ))
mine = ()
rel = broot broot.CFrame:(part.Position) .zero
me = (broot mine) broot.CFrame:(mine.Position) .zero
(.(,
part.Name, (i - ) * , (part.Size), part.Transparency, (rel), (me)))
.()
)
(part)
s = part.Size
s.X <= s.Y s.X <= s.Z , ,
s.Y <= s.Z , ,
, ,
(part, pos)
cf, s = part.CFrame, part.Size
lp = cf:(pos)
t, u, v = (part)
.(lp[t]) > s[t] / +
hu, hv = s[u] / + CONFIG.ZoneMargin, s[v] / + CONFIG.ZoneMargin
pu, pv = lp[u], lp[v]
round = part:() (part.Shape == .PartType.Ball part.Shape == .PartType.Cylinder)
inside, tu, tv
round
k = (pu / hu) ^ + (pv / hv) ^
inside = k <=
k <
tu, tv = hu + CONFIG.ZoneExitPad,
len = .(k)
tu, tv = pu / len * ( + CONFIG.ZoneExitPad / hu), pv / len * ( + CONFIG.ZoneExitPad / hv)
inside = .(pu) <= hu .(pv) <= hv
.(hu - .(pu)) <= .(hv - .(pv))
tu = (pu >= -) * (hu + CONFIG.ZoneExitPad); tv = pv
tv = (pv >= -) * (hv + CONFIG.ZoneExitPad); tu = pu
inside
target = { X = , Y = , Z = }
target[t], target[u], target[v] = lp[t], tu, tv
, cf:(.(target.X, target.Y, target.Z))
(part)
zones[part] part:()
(part)
zones[part] = .()
mine = ()
(.(,
part:(), part.ClassName, (part.Size), (part.Color), part.Transparency,
part:() part.Shape.Name , mine (mine.Position - part.Position).Magnitude -))
part.Destroying:(() zones[part] = )
CONFIG.LogZones (part.Name, CONFIG.ZoneNames)
(part)
(.DescendantAdded:((inst)
inst:()
.(, () inst.Parent (inst) )
CONFIG.LogZones (inst.Name, CONFIG.ZoneNames)
( .. inst.ClassName .. .. inst:())
))
zoneAccum =
(RunService.Heartbeat:((dt)
zoneAccum += dt
zoneAccum <
zoneAccum =
(enabled CONFIG.AvoidZones)
char = LocalPlayer.Character
hum = char char:()
root = ()
(hum root hum.Health > )
bestExit
part (zones)
part.Parent
zones[part] =
inside, exitPos = (part, root.Position)
inside bestExit = exitPos
bestExit
fleeUntil = .() +
toExit = .(bestExit.X - root.Position.X, , bestExit.Z - root.Position.Z)
hum:(bestExit)
toExit.Magnitude > CONFIG.ZoneDashDist char:() ~=
char:() ==
cam = .CurrentCamera
look = .(cam.CFrame.LookVector.X, , cam.CFrame.LookVector.Z).Unit
right = .(cam.CFrame.RightVector.X, , cam.CFrame.RightVector.Z).Unit
dirn = toExit.Unit
f, r = dirn:(look), dirn:(right)
key
.(f) >= .(r) key = f >= .KeyCode.W .KeyCode.S
key = r >= .KeyCode.D .KeyCode.A
(key)
))
screenGui
refreshGui = ()
()
parent
gethui
ok, h = (gethui)
parent = ok h
parent
ok, cg = (() :() )
parent = ok cg LocalPlayer:()
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.DisplayOrder =
screenGui.Parent = parent
ON, OFF = .(, , ), .(, , )
frame = .()
frame.Size = .(, )
frame.AutomaticSize = .AutomaticSize.Y
frame.Position = .(, , , )
frame.BackgroundColor3 = .(, , )
frame.BorderSizePixel =
frame.Parent = screenGui
.(, frame).CornerRadius = .(, )
pad = .(, frame)
pad.PaddingBottom = .(, )
pad.PaddingLeft, pad.PaddingRight = .(, ), .(, )
list = .(, frame)
list.Padding = .(, )
list.SortOrder = .SortOrder.LayoutOrder
title = .()
title.LayoutOrder =
title.Size = .(, , , )
title.BackgroundTransparency =
title.Font = .Font.GothamBold
title.TextSize =
title.TextColor3 = .(, , )
title.Text =
title.Parent = frame
dragging, dragStart, startPos
(title.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging, dragStart, startPos = , input.Position, frame.Position
))
(UserInputService.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch)
d = input.Position - dragStart
frame.Position = .(startPos.X.Scale, startPos.X.Offset + d.X,
startPos.Y.Scale, startPos.Y.Offset + d.Y)
))
(UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
))
rows = {
{ , () enabled , (v) enabled = v },
{ , () CONFIG.ParryEnabled , (v) CONFIG.ParryEnabled = v },
{ , () CONFIG.DodgeEnabled , (v) CONFIG.DodgeEnabled = v },
{ , () CONFIG.CancelOwnAttack , (v) CONFIG.CancelOwnAttack = v },
{ , () CONFIG.AvoidZones , (v) CONFIG.AvoidZones = v },
{ , () CONFIG.AutoFight , (v) CONFIG.AutoFight = v },
}
buttons = {}
i, row (rows)
btn = .()
btn.LayoutOrder = i
btn.Size = .(, , , )
btn.AutoButtonColor =
btn.BorderSizePixel =
btn.Font = .Font.Gotham
btn.TextSize =
btn.TextColor3 = .(, , )
btn.Parent = frame
.(, btn).CornerRadius = .(, )
(btn.MouseButton1Click:(()
row[]( row[]())
()
))
buttons[i] = btn
refreshGui = ()
i, row (rows)
on = row[]()
buttons[i].Text = row[] .. .. (on )
buttons[i].BackgroundColor3 = on ON OFF
i = , #rows
buttons[i].TextTransparency = enabled
()
CONFIG.ShowGui
ok, err = (buildGui)
ok
( .. (err))
()
enabled =
screenGui
(() screenGui:() )
screenGui =
_, conn (connections)
(() conn:() )
animator, conn (hooked)
(() conn:() )
hooked[animator] =
env.BeyondNenAutoParry =
()
env.BeyondNenAutoParry = unload
(UserInputService.InputBegan:((input, processed)
processed
input.KeyCode == CONFIG.ToggleKey
enabled = enabled
()
(enabled )
input.KeyCode == CONFIG.FightKey
CONFIG.AutoFight = CONFIG.AutoFight
()
( .. (CONFIG.AutoFight ))
input.KeyCode == CONFIG.GuiToggleKey
screenGui
screenGui.Enabled = screenGui.Enabled
input.KeyCode == CONFIG.UnloadKey
()
))
( .. CONFIG.ToggleKey.Name .. .. CONFIG.UnloadKey.Name .. )Auto fight for Beyond Nen, only for the first boss to beat him.

[CHAINS!] Beyond Nen