Run it
Copy the script and paste it into your executor.
().xyzevade_unload
(().xyzevade_unload)
repo =
library = (:(repo .. ))()
theme_manager = (:(repo .. ))()
save_manager = (:(repo .. ))()
players = :()
rs = :()
run_service = :()
uis = :()
lighting = :()
tween_service = :()
sound_service = :()
core_gui = :()
ws = :()
lp = players.LocalPlayer
options = library.Options
toggles = library.Toggles
alive =
conns = {}
cfg = {}
(c)
conns[#conns + ] = c
c
(root, ...)
o = root
_, n ({ ... })
o = o o:(n, )
o
(inst)
inst
ok, res = (, inst)
ok (res) ==
res
asset_svc = (rs, , )
char_svc = (asset_svc asset_svc:(, ))
col_svc = (asset_svc asset_svc:(, ))
interact_remote = (rs, , , )
(text, time_)
(()
library:({ Title = , Description = text, Time = time_ })
)
(box, key, text, default, tip, cb)
cfg[key] = default
box:(key, {
Text = text,
Default = default,
Tooltip = tip,
Callback = (v)
cfg[key] = v
cb
(v)
,
})
(box, key, text, default, min, max, rounding, suffix, cb)
cfg[key] = default
box:(key, {
Text = text,
Default = default,
Min = min,
Max = max,
Rounding = rounding ,
Suffix = suffix ,
Callback = (v)
cfg[key] = v
cb
(v)
,
})
(box, key, text, values, default_index, tip, cb)
cfg[key] = values[default_index]
box:(key, {
Text = text,
Values = values,
Default = default_index,
Multi = ,
Searchable = #values > ,
Tooltip = tip,
Callback = (v)
cfg[key] = v
cb
(v)
,
})
(host, key, default, title)
cfg[key] = default
host:(key, {
Default = default,
Title = title,
Callback = (v)
cfg[key] = v
,
})
()
c = lp.Character
c (c.PrimaryPart c:())
()
char_svc
ok, st = (()
lc = char_svc:()
lc lc.DataRegistry:()
)
ok st
()
c = lp.Character
h = c c:()
h h.Health <=
st = ()
st ~= st ~= st ~=
()
ws:()
()
out = {}
f = ()
f
out
_, m (f:())
m:() players:(m.Name)
out[#out + ] = m
out
(pos, radius)
radius <=
_, m (())
r = m.PrimaryPart m:()
r (r.Position - pos).Magnitude <= radius
(from)
best, best_d = , .huge
_, p (players:())
c = p ~= lp p.Character
c
r = c.PrimaryPart c:()
h = c:()
r h h.Health >
d = (r.Position - from).Magnitude
d < best_d
best_d = d
best = r
best
(seconds, stick, abort)
t0 = .()
abort ()
()
run_service.Heartbeat:()
.() - t0 >= seconds alive
(tag)
char_svc
ok, ch = (()
char_svc:(tag)
)
ok ch
(model)
rigs = ws:()
(rigs rigs:(model.Name)) model
D = {
on = ,
pos = .zero,
near_t = ,
near_at = ,
busy = ,
spam_last = ,
spam_at = ,
farm_cf = ,
clear_t = ,
}
D.()
cfg.immortal_method ==
now = .()
D.near_t D.near_t.Parent now - D.near_at >
D.near_t = (D.pos)
D.near_at = now
D.near_t D.near_t.Parent
D.near_t.CFrame * .(cfg.near_x, cfg.near_y, cfg.near_z)
max_h = .(, ws.StreamingTargetRadius - )
.(D.pos.X, D.pos.Y + .(cfg.park_height, max_h), D.pos.Z)
D.()
now = .()
D.spam_last (now - D.spam_at) * < cfg.spam_interval
D.spam_last
D.spam_at = now
r, h = cfg.spam_range, cfg.spam_height
D.spam_last = .((.() * - ) * r, (.() * - ) * h, (.() * - ) * r)
D.spam_last
D.()
cfg.immortal_method ==
D.()
D.()
D.()
D.on
D.on =
D.near_t =
D.()
D.on
root = ()
root
D.pos = root.Position
D.on =
D.clear_t =
D.()
(cfg.immortal cfg.autowin)
cfg.autowin cfg.immortal_trigger ==
r = ()
pos = D.on D.pos (r r.Position)
pos
(pos, cfg.immortal_radius + (D.on ))
D.(dt)
D.()
D.clear_t =
D.on ()
D.()
D.on
D.clear_t += dt
D.clear_t >
D.()
D.on () ==
D.()
D.()
D.on
D.pos
r = ()
r r.Position .zero
F = {
cool = {},
attempts = ({}, { __mode = }),
}
F.()
cfg.collect cfg.autowin
F.()
cfg.revive cfg.autowin
F.()
root = ()
root
D.busy +=
released =
cfg.farm_method ==
saved_cf, saved_vel = root.CFrame, root.AssemblyLinearVelocity
()
released
released =
D.busy = .(, D.busy - )
root.Parent
root.AssemblyAngularVelocity = .zero
root.CFrame = saved_cf
root.AssemblyLinearVelocity = saved_vel
root, release
proxy = ({}, {
__index = (_, k)
k ==
D.farm_cf root.CFrame
root[k]
,
__newindex = (_, k, v)
k ==
D.farm_cf = v
,
})
()
released
released =
D.busy = .(, D.busy - )
D.busy ==
D.farm_cf =
proxy, release
F.(tag)
ch = (tag)
ch
ok, st = (()
ch.DataRegistry:()
)
ok st ==
F.()
out = {}
folder = ()
my_char = lp.Character
my_tag = my_char my_char:()
folder char_svc
out
_, m (folder:())
m ~= my_char players:(m.Name)
tag = m:()
root = m.PrimaryPart
ch = tag root (tag)
ch ch.Local
ok, res = (()
reg = ch.DataRegistry
reg:() ~=
q = reg:()
someone_else = (q) == q[] ~= q[] ~= my_tag
carried = (reg:() ) ~=
rag = reg:() ==
(someone_else carried rag)
)
ok res
out[#out + ] = { model = m, tag = tag, root = root }
out
F.()
char_svc
ok, v = (()
char_svc:().DataRegistry:()
)
(ok (v) == ) v
F.()
interact_remote ()
list = F.()
#list ==
ref = D.()
.(list, (a, b)
(a.root.Position - ref).Magnitude < (b.root.Position - ref).Magnitude
)
target
_, t (list)
d = (t.root.Position - ref).Magnitude
(cfg.revive_dist <= d <= cfg.revive_dist)
.() - (F.cool[t.tag] ) >
(t.root.Position, cfg.safe_radius)
target = t
target
F.cool[target.tag] = .()
root, release = F.()
root
(()
()
target.root target.root.Parent
root.CFrame = target.root.CFrame * .(, , )
root.AssemblyLinearVelocity = .zero
()
alive F.(target.tag) ()
()
(, stick, gone)
interact_remote:(, target.tag, )
(F.() + , stick, gone)
interact_remote:(, target.tag)
(, stick)
)
()
F.(c)
c.Collected
s = c.CollectableScript
p = s s.CollectedProperty
p ~= p.Value ==
F.()
list = {}
col_svc
list
_, ctx (col_svc.Contexts)
_, c (ctx.CollectableIDs)
c.Ready F.(c)
ok_m, model = (c.GetCollectableModel, c)
ok_m model model.Parent
tp = c.Properties c.Properties.Type
is_wisp = tp tp.Value ==
(is_wisp cfg.collect_wisps) ( is_wisp cfg.collect_drops)
cm = c.Behavior c.Behavior.CollectionMethod
list[#list + ] = {
c = c,
model = model,
pos = model:().Position,
method = cm cm.Method ,
}
list
F.()
()
candidates = {}
_, t (F.())
a = F.attempts[t.c]
( a (a.n < .() - a.t > )) (t.pos, cfg.safe_radius)
candidates[#candidates + ] = t
#candidates ==
route, cur = {}, D.()
#candidates > #route <
bi, bd = , .huge
i, t (candidates)
d = (t.pos - cur).Magnitude
d < bd
bd = d
bi = i
t = .(candidates, bi)
route[#route + ] = t
cur = t.pos
root, release = F.()
root
(()
_, t (route)
alive F.() ()
F.() #F.() >
a = F.attempts[t.c] { n = , t = }
a.n +=
a.t = .()
F.attempts[t.c] = a
()
root.CFrame = .(t.pos)
root.AssemblyLinearVelocity = .zero
()
F.(t.c) t.model.Parent
()
(, stick, done)
t.method ~= ()
.(()
(t.c.TryCollect, t.c)
)
(cfg.collect_dwell, stick, done) ()
.(()
(t.c.TryCollect, t.c)
)
(, stick, done)
)
()
F.()
wisps, drops = ,
col_svc
_, ctx (col_svc.Contexts)
_, c (ctx.CollectableIDs)
c.Ready F.(c)
tp = c.Properties c.Properties.Type
tp tp.Value ==
wisps +=
drops +=
wisps, drops
F.()
alive
did =
ok = (()
F.()
did = F.()
F.() did
did = F.()
)
ok
.()
.(did )
E = {
items = {},
lines = {},
cache = {},
folder = ,
}
()
ok, h = (()
gethui ()
)
ok h
h
core_gui
E.()
E.folder = .()
E.folder.Name =
E.folder.Parent = ()
E.()
item = {}
hl = .()
hl.DepthMode = .HighlightDepthMode.AlwaysOnTop
hl.FillTransparency =
hl.OutlineTransparency =
hl.Enabled =
hl.Parent = E.folder
bb = .()
bb.AlwaysOnTop =
bb.Size = .(, )
bb.StudsOffset = .(, , )
bb.ResetOnSpawn =
label = .()
label.BackgroundTransparency =
label.Size = .(, )
label.Font = .Font.GothamBold
label.TextSize =
label.TextStrokeTransparency =
label.Parent = bb
bb.Parent = E.folder
item.hl = hl
item.bb = bb
item.label = label
item.sprite =
item.sprite_src =
item
E.(item, src, part, color)
item.sprite item.sprite.Parent item.sprite_src ~= src
item.sprite
(()
item.sprite:()
)
clone = src:()
clone.Name =
clone.AlwaysOnTop =
clone.LightInfluence =
clone.MaxDistance = .huge
clone.ResetOnSpawn =
clone.Parent = E.folder
item.sprite = clone
item.sprite_src = src
sprite = item.sprite
sprite.Adornee = part
sprite.Enabled = src.Enabled
sprite.Size = src.Size
sprite.StudsOffset = src.StudsOffset
sprite.ExtentsOffset = src.ExtentsOffset
_, d (sprite:())
d:()
o = src:(d.Name, )
o o:()
d.Image = o.Image
d.ImageRectOffset = o.ImageRectOffset
d.ImageRectSize = o.ImageRectSize
d.Visible = o.Visible
d.ImageColor3 = color
d.ImageTransparency =
E.(item)
(()
item.hl:()
item.bb:()
item.sprite
item.sprite:()
)
E.()
key, item (E.items)
E.(item)
E.items[key] =
key, line (E.lines)
(()
line:()
)
E.lines[key] =
E.cache = {}
E.(ref)
want = {}
(key, part, cham_target, text, color, model)
dist = (part.Position - ref).Magnitude
dist > cfg.esp_dist
want[key] = { part = part, cham = cham_target, text = text, dist = dist, color = color, model = model }
cfg.esp_nextbots
_, m (())
part = m.PrimaryPart m:()
part
( .. m.Name, part, (m), m.Name, cfg.esp_nextbot_color, m)
cfg.esp_players cfg.esp_downed
f = ()
f
_, m (f:())
m ~= lp.Character players:(m.Name)
part = m.PrimaryPart
part
tag = m:()
down = tag F.(tag)
down cfg.esp_downed
( .. m.Name, part, (m), m.Name .. , cfg.esp_downed_color)
down cfg.esp_players
( .. m.Name, part, (m), m.Name, cfg.esp_player_color)
(cfg.esp_wisps cfg.esp_drops) col_svc
ci, ctx (col_svc.Contexts)
id, c (ctx.CollectableIDs)
c.Ready F.(c)
tp = c.Properties c.Properties.Type
is_wisp = tp tp.Value ==
(is_wisp cfg.esp_wisps) ( is_wisp cfg.esp_drops)
ok_m, model = (c.GetCollectableModel, c)
ok_m model model.Parent
part = model.PrimaryPart model:(, )
part
name = is_wisp .((tp tp.Value ))
(
.. ci .. .. (id),
part,
,
name,
is_wisp cfg.esp_wisp_color cfg.esp_drop_color
)
want
E.()
ref = D.()
want = E.(ref)
key, item (E.items)
want[key]
E.(item)
E.items[key] =
chams =
key, w (want)
item = E.items[key]
item
item = E.()
E.items[key] = item
item.bb.Adornee = w.part
item.bb.Enabled = cfg.esp_names
text = w.text
cfg.esp_distance
text = text .. .. .(w.dist) ..
item.label.Text = text
item.label.TextColor3 = w.color
used_sprite =
w.model cfg.esp_chams chams <
src = w.model:(, )
src
chams +=
used_sprite =
E.(item, src, w.part, w.color)
item.sprite used_sprite
item.sprite.Enabled =
used_sprite
item.hl.Enabled =
w.cham cfg.esp_chams chams <
chams +=
item.hl.Adornee = w.cham
item.hl.FillColor = w.color
item.hl.OutlineColor = w.color
item.hl.Enabled =
item.hl.Enabled =
E.cache = want
E.()
draw = ().Drawing
cam = ws.CurrentCamera
draw cam cfg.esp_tracers
key, line (E.lines)
(()
line:()
)
E.lines[key] =
vp = cam.ViewportSize
origin = .(vp.X / , vp.Y)
key, w (E.cache)
line = E.lines[key]
line
ok, l = (()
draw.()
)
ok
line = l
line.Thickness =
E.lines[key] = line
line
sp, on_screen = cam:(w.part.Position)
line.Visible = on_screen
line.Color = w.color
line.From = origin
line.To = .(sp.X, sp.Y)
key, line (E.lines)
E.cache[key]
(()
line:()
)
E.lines[key] =
sky_presets = {
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
SunAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
},
[] = {
SkyboxBk = ,
SkyboxDn = ,
SkyboxFt = ,
SkyboxLf = ,
SkyboxRt = ,
SkyboxUp = ,
StarCount = ,
SunAngularSize = ,
MoonAngularSize = ,
MoonTextureId = ,
},
}
sky_names = {
, , , , , , ,
, , , , , , ,
, , , , , ,
, , , , , , ,
, , , , , , , ,
, , , , , , , ,
, , , , , , ,
, , , , , , , ,
, , , , ,
, , , , , , , ,
,
}
V = {
lorig = {},
stores = {},
flash = ,
weather_part = ,
weather_emitter = ,
weather_t = ,
bolts = ,
sky_cache = {},
}
V.(prop, enabled, value)
(()
enabled
V.lorig[prop] ==
V.lorig[prop] = lighting[prop]
lighting[prop] ~= value
lighting[prop] = value
V.lorig[prop] ~=
lighting[prop] = V.lorig[prop]
V.lorig[prop] =
)
V.(key, class, own, enabled, props)
store = V.stores[key]
store
store = { orig = {} }
V.stores[key] = store
enabled
store.inst store.inst.Parent
inst = ( own) lighting:(class)
store.created =
store.orig = {}
inst
inst = .(class)
inst.Name = .. key
inst.Parent = lighting
store.created =
store.inst = inst
inst = store.inst
k, v (props)
(()
store.created store.orig[k] ==
store.orig[k] = inst[k]
inst[k] ~= v
inst[k] = v
)
store.inst
store.created
store.inst:()
elseif store.inst.Parent then
for k, v in pairs(store.orig) do
pcall(function()
store.inst[k] = v
end)
end
end
store.inst = nil
store.orig = {}
end
end
local weather_presets = {
snow = {
color = Color3.fromRGB(255, 255, 255), speed = 14, size = 0.3, rate = 260,
accel = Vector3.new(0, -1, 0), texture = "rbxasset://textures/particles/sparkles_main.dds",
orient = Enum.ParticleOrientation.FacingCamera, down = true, squash = 0,
},
rain = {
color = Color3.fromRGB(170, 200, 255), speed = 130, size = 0.16, rate = 520,
accel = Vector3.new(0, -20, 0), texture = "rbxasset://textures/particles/sparkles_main.dds",
orient = Enum.ParticleOrientation.VelocityParallel, down = true, squash = -4,
},
ash = {
color = Color3.fromRGB(150, 150, 150), speed = 6, size = 0.35, rate = 180,
accel = Vector3.new(0, -0.5, 0), texture = "rbxasset://textures/particles/smoke_main.dds",
orient = Enum.ParticleOrientation.FacingCamera, down = true, squash = 0,
},
embers = {
color = Color3.fromRGB(255, 120, 30), speed = 9, size = 0.25, rate = 150,
accel = Vector3.new(0, 4, 0), texture = "rbxasset://textures/particles/sparkles_main.dds",
orient = Enum.ParticleOrientation.FacingCamera, down = false, squash = 0,
},
["blood rain"] = {
color = Color3.fromRGB(190, 15, 15), speed = 120, size = 0.18, rate = 460,
accel = Vector3.new(0, -20, 0), texture = "rbxasset://textures/particles/sparkles_main.dds",
orient = Enum.ParticleOrientation.VelocityParallel, down = true, squash = -4,
},
}
V.weather_names = { "snow", "rain", "ash", "embers", "blood rain" }
function V.weather_apply()
local preset = weather_presets[cfg.w_preset] or weather_presets.snow
if not V.weather_part or not V.weather_part.Parent then
local part = Instance.new("Part")
part.Name = "xyz_weather"
part.Anchored = true
part.CanCollide = false
part.CanQuery = false
part.CanTouch = false
part.Transparency = 1
part.Parent = ws
local em = Instance.new("ParticleEmitter")
em.Parent = part
V.weather_part = part
V.weather_emitter = em
end
local em = V.weather_emitter
local speed = preset.speed * cfg.w_speed
local color = cfg.w_color_on and cfg.w_color or preset.color
V.weather_part.Size = Vector3.new(cfg.w_spread * 2, 0.5, cfg.w_spread * 2)
local wind = Vector3.new(math.cos(math.rad(cfg.w_wind_angle)), 0, math.sin(math.rad(cfg.w_wind_angle))) * cfg.w_wind
em.Texture = preset.texture
em.Orientation = preset.orient
em.Rate = preset.rate * cfg.w_rate
em.Speed = NumberRange.new(speed)
em.Lifetime = NumberRange.new(math.clamp((cfg.w_height + 15) / math.max(speed, 1), 1, 25))
em.Size = NumberSequence.new(preset.size * cfg.w_size)
em.Squash = NumberSequence.new(preset.squash)
em.Color = ColorSequence.new(color)
em.LightEmission = cfg.w_glow
em.Acceleration = preset.accel + wind
em.EmissionDirection = preset.down and Enum.NormalId.Bottom or Enum.NormalId.Top
em.SpreadAngle = Vector2.new(4, 4)
em.LockedToPart = false
em.Transparency = NumberSequence.new({
NumberSequenceKeypoint.new(0, 1),
NumberSequenceKeypoint.new(0.08, 0.15),
NumberSequenceKeypoint.new(0.92, 0.15),
NumberSequenceKeypoint.new(1, 1),
})
em.Enabled = true
end
function V.weather_remove()
if V.weather_part then
V.weather_part:Destroy()
V.weather_part = nil
V.weather_emitter = nil
end
end
function V.ground_hit(origin)
local params = RaycastParams.new()
params.FilterType = Enum.RaycastFilterType.Exclude
local skip = {}
if ws.CurrentCamera then
skip[#skip + 1] = ws.CurrentCamera
end
for _, name in ipairs({ "Players", "Rigs", "Effects" }) do
local f = ws:FindFirstChild(name)
if f then
skip[#skip + 1] = f
end
end
if V.bolts then
skip[#skip + 1] = V.bolts
end
params.FilterDescendantsInstances = skip
local from = origin
for _ = 1, 20 do
local hit = ws:Raycast(from, Vector3.new(0, -4000, 0), params)
if not hit then
return nil
end
local inst = hit.Instance
if inst:IsA("Terrain") or inst.Transparency < 0.9 then
return hit
end
skip[#skip + 1] = inst
params.FilterDescendantsInstances = skip
from = hit.Position - Vector3.new(0, 0.05, 0)
end
return nil
end
function V.strike()
local cam = ws.CurrentCamera
if not cam then
return
end
local ang = math.random() * math.pi * 2
local dist = cfg.lg_dist * (0.5 + math.random() * 0.8)
local base = cam.CFrame.Position + Vector3.new(math.cos(ang) * dist, 0, math.sin(ang) * dist)
local ground = V.ground_hit(base + Vector3.new(0, 600, 0))
local gy = ground and ground.Position.Y or base.Y
local top = Vector3.new(base.X, gy + cfg.lg_height, base.Z)
local bottom = Vector3.new(base.X, gy, base.Z)
if not V.bolts or not V.bolts.Parent then
V.bolts = Instance.new("Folder")
V.bolts.Name = "xyz_lightning"
V.bolts.Parent = ws
end
local function bolt(a_pos, b_pos, segs, thick)
local pts = { a_pos }
for i = 1, segs - 1 do
local p = a_pos:Lerp(b_pos, i / segs)
pts[#pts + 1] = p + Vector3.new((math.random() - 0.5) * cfg.lg_jag * 2, 0, (math.random() - 0.5) * cfg.lg_jag * 2)
end
pts[#pts + 1] = b_pos
for i = 1, #pts - 1 do
local a, b = pts[i], pts[i + 1]
local len = (b - a).Magnitude
local seg = Instance.new("Part")
seg.Anchored = true
seg.CanCollide = false
seg.CanQuery = false
seg.CanTouch = false
seg.CastShadow = false
seg.Material = Enum.Material.Neon
seg.Color = cfg.lg_color
seg.Size = Vector3.new(thick, thick, len)
seg.CFrame = CFrame.lookAt((a + b) / 2, b)
seg.Parent = V.bolts
tween_service:Create(seg, TweenInfo.new(0.35), { Transparency = 1 }):Play()
task.delay(0.4, function()
seg:Destroy()
end)
end
return pts
end
local pts = bolt(top, bottom, 16, cfg.lg_thick * 0.2)
for _ = 1, 3 do
local from = pts[math.random(3, #pts - 3)]
local to = from + Vector3.new((math.random() - 0.5) * 60, -math.random(20, 60), (math.random() - 0.5) * 60)
bolt(from, to, 6, cfg.lg_thick * 0.1)
end
V.flash = math.max(V.flash, cfg.lg_flash / 20)
local id = tonumber(cfg.lg_sound)
if id then
task.delay(math.clamp(dist / 340, 0.1, 3), function()
local s = Instance.new("Sound")
s.SoundId = "rbxassetid://" .. id
s.Volume = 1
s.Parent = sound_service
s:Play()
s.Ended:Once(function()
s:Destroy()
end)
end)
end
end
function V.sky_props()
local p = sky_presets[cfg.sky_preset]
return p or {}
end
function V.step()
V.lset("ClockTime", cfg.l_time, cfg.l_time_v)
V.lset("Brightness", cfg.l_bright, cfg.l_bright_v)
V.lset("ExposureCompensation", cfg.l_expo, cfg.l_expo_v)
V.lset("GeographicLatitude", cfg.l_lat, cfg.l_lat_v)
V.lset("Ambient", cfg.l_amb, cfg.l_amb_in)
V.lset("OutdoorAmbient", cfg.l_amb, cfg.l_amb_out)
V.lset("ColorShift_Top", cfg.l_shift, cfg.l_shift_top)
V.lset("ColorShift_Bottom", cfg.l_shift, cfg.l_shift_bot)
V.lset("EnvironmentDiffuseScale", cfg.l_diffuse, cfg.l_diffuse_v)
V.lset("EnvironmentSpecularScale", cfg.l_spec, cfg.l_spec_v)
V.lset("GlobalShadows", cfg.l_noshadows, false)
V.lset("ShadowSoftness", cfg.l_soft, cfg.l_soft_v)
V.lset("LightingStyle", cfg.l_style, cfg.l_style_v == "soft" and Enum.LightingStyle.Soft or Enum.LightingStyle.Realistic)
V.lset("FogColor", cfg.f_on, cfg.f_color)
V.lset("FogStart", cfg.f_on, cfg.f_start)
V.lset("FogEnd", cfg.f_on, cfg.f_end)
V.managed("atmo", "Atmosphere", false, cfg.a_on, {
Color = cfg.a_color, Decay = cfg.a_decay, Density = cfg.a_density,
Offset = cfg.a_offset, Glare = cfg.a_glare, Haze = cfg.a_haze,
})
V.managed("bloom", "BloomEffect", true, cfg.bl_on, {
Intensity = cfg.bl_int, Size = cfg.bl_size, Threshold = cfg.bl_thr,
})
V.managed("cc", "ColorCorrectionEffect", true, cfg.cc_on, {
TintColor = cfg.cc_tint, Saturation = cfg.cc_sat, Brightness = cfg.cc_bri, Contrast = cfg.cc_con,
})
V.managed("dof", "DepthOfFieldEffect", true, cfg.dof_on, {
FarIntensity = cfg.dof_far, FocusDistance = cfg.dof_focus,
InFocusRadius = cfg.dof_radius, NearIntensity = cfg.dof_near,
})
V.managed("sunrays", "SunRaysEffect", true, cfg.sr_on, { Intensity = cfg.sr_int, Spread = cfg.sr_spread })
V.managed("grading", "ColorGradingEffect", true, cfg.tm_retro, { TonemapperPreset = Enum.TonemapperPreset.Retro })
V.managed("sky", "Sky", false, cfg.sky_on, V.sky_props())
V.flash = V.flash * 0.88
V.managed("flash", "ColorCorrectionEffect", true, V.flash > 0.01, { Brightness = V.flash })
if cfg.w_on then
local cam = ws.CurrentCamera
V.weather_t += 1
if V.weather_t % 12 == 1 or not V.weather_part or not V.weather_part.Parent then
pcall(V.weather_apply)
end
if cam and V.weather_part then
V.weather_part.CFrame = CFrame.new(cam.CFrame.Position + Vector3.new(0, cfg.w_height, 0))
end
else
V.weather_remove()
end
end
function V.lightning_loop()
local wait_s = 2
while alive do
task.wait(0.1)
if cfg.lg_on then
wait_s -= 0.1
if wait_s <= 0 then
pcall(V.strike)
wait_s = cfg.lg_interval * (0.6 + math.random() * 0.8)
end
end
end
end
V.walls = { set = setmetatable({}, { __mode = "k" }), conn = nil, running = false }
local WALL_VISUALS = {
"Decal", "Texture", "SurfaceAppearance", "SurfaceGui", "BillboardGui", "ParticleEmitter",
"Beam", "Trail", "Fire", "Smoke", "Sparkles", "PointLight", "SpotLight", "SurfaceLight", "Highlight",
}
function V.wall_skip(p)
local top = p
while top.Parent and top.Parent ~= ws do
top = top.Parent
end
if top == ws.CurrentCamera or top.Name == "Players" or top.Name == "Rigs" or top.Name == "Effects" then
return true
end
return string.sub(top.Name, 1, 4) == "xyz_" or top == (E and E.folder)
end
function V.wall_check(p, floor_y)
if not p:IsA("BasePart") or p:IsA("Terrain") or V.walls.set[p] then
return
end
if p.Transparency < 0.95 or not p.CanCollide or V.wall_skip(p) then
return
end
for _, c in ipairs(p:GetChildren()) do
for _, cls in ipairs(WALL_VISUALS) do
if c:IsA(cls) then
return
end
end
end
-- thin flat slabs below you are floors, leave those so you do not fall out of the map
local sz = p.Size
local flat = p.CFrame.UpVector.Y > 0.7 and sz.Y <= 4 and sz.X >= 8 and sz.Z >= 8
if flat and floor_y and p.Position.Y <= floor_y + 3 then
return
end
V.walls.set[p] = { cc = p.CanCollide, cq = p.CanQuery }
p.CanCollide = false
p.CanQuery = false
end
function V.walls_scan()
if V.walls.running then
return
end
V.walls.running = true
task.spawn(function()
local root = get_root()
local floor_y = root and root.Position.Y
local n = 0
for _, d in ipairs(ws:GetDescendants()) do
if not alive or not cfg.walls_on then
break
end
pcall(V.wall_check, d, floor_y)
n += 1
if n % 400 == 0 then
task.wait()
end
end
V.walls.running = false
end)
end
function V.walls_set(on)
local w = V.walls
if on then
if not w.conn then
w.conn = ws.DescendantAdded:Connect(function(d)
if cfg.walls_on and d:IsA("BasePart") then
task.defer(function()
local root = get_root()
pcall(V.wall_check, d, root and root.Position.Y)
end)
end
end)
end
V.walls_scan()
else
if w.conn then
w.conn:Disconnect()
w.conn = nil
end
for p, o in pairs(w.set) do
if p.Parent then
pcall(function()
p.CanCollide = o.cc
p.CanQuery = o.cq
end)
end
end
w.set = setmetatable({}, { __mode = "k" })
end
end
function V.cleanup()
V.walls_set(false)
for prop, value in pairs(V.lorig) do
pcall(function()
lighting[prop] = value
end)
end
V.lorig = {}
for key in pairs(V.stores) do
V.managed(key, "", true, false, {})
end
V.weather_remove()
if V.bolts then
V.bolts:Destroy()
V.bolts = nil
end
end
local M = {
aj_conn = nil,
fe = { installed = false },
}
function M.aj_stop()
if M.aj_conn then
M.aj_conn:Disconnect()
M.aj_conn = nil
end
end
function M.aj_start()
if M.aj_conn then
return
end
local rng = Random.new()
local decel = 80
local turn_min, turn_max = 2, 45
local roll_chance = 0.35
local roll_every = { 0.12, 0.3 }
local gain = { 0.2, 0.7 }
local gain_rate = 4
local function roll_cap()
local lo = math.min(cfg.aj_cap_min, cfg.aj_cap_max)
local hi = math.max(cfg.aj_cap_min, cfg.aj_cap_max)
return rng:NextNumber(lo, hi)
end
local cap = roll_cap()
local pending, next_roll, turn_rate = 0, 0, 0
local last_look, jump_at, mover = nil, nil, nil
local was_airborne = false
local function get_mover(character)
if mover and mover.Parent and mover.Enabled then
return mover
end
mover = nil
local hrp = character:FindFirstChild("HumanoidRootPart")
if not hrp then
return nil
end
for _, v in ipairs(hrp:GetChildren()) do
if v:IsA("LinearVelocity") and v.Enabled and v.VelocityConstraintMode == Enum.VelocityConstraintMode.Plane then
mover = v
return v
end
end
return nil
end
M.aj_conn = run_service.Stepped:Connect(function(_, dt)
if dt <= 0 then
return
end
local character = lp.Character
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
local hrp = character and character:FindFirstChild("HumanoidRootPart")
if not humanoid or not hrp or humanoid.Health <= 0 then
return
end
local camera = ws.CurrentCamera
local look = camera.CFrame.LookVector * Vector3.new(1, 0, 1)
if look.Magnitude > 0.001 then
look = look.Unit
if last_look then
local raw = math.abs(math.deg(math.atan2(last_look:Cross(look).Y, last_look:Dot(look)))) / dt
turn_rate = turn_rate * 0.8 + raw * 0.2
end
last_look = look
end
local state = humanoid:GetState()
local on_ground = state == Enum.HumanoidStateType.Running or state == Enum.HumanoidStateType.Landed
local airborne = state == Enum.HumanoidStateType.Freefall or state == Enum.HumanoidStateType.Jumping
if airborne and not was_airborne then
cap = roll_cap()
end
was_airborne = airborne
local space_held = uis:IsKeyDown(Enum.KeyCode.Space) and not uis:GetFocusedTextBox()
if space_held and on_ground then
if cfg.aj_humanly then
if not jump_at then
local lo = math.min(cfg.aj_delay_min, cfg.aj_delay_max)
local hi = math.max(cfg.aj_delay_min, cfg.aj_delay_max)
jump_at = os.clock() + rng:NextNumber(lo, hi) / 1000
end
if os.clock() >= jump_at then
humanoid.Jump = true
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
jump_at = nil
end
else
humanoid.Jump = true
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
else
jump_at = nil
if space_held and airborne then
humanoid.Jump = true
end
end
local m = get_mover(character)
if space_held and airborne then
next_roll -= dt
if next_roll <= 0 then
next_roll = rng:NextNumber(roll_every[1], roll_every[2])
if turn_rate >= turn_min and turn_rate <= turn_max and rng:NextNumber() < roll_chance then
pending += rng:NextNumber(gain[1], gain[2])
end
end
if pending > 0 and m then
local v = m.PlaneVelocity
local mag = v.Magnitude
if mag > 1 and mag < cap then
local step = math.min(pending, gain_rate * dt, cap - mag)
m.PlaneVelocity = v.Unit * (mag + step)
pending -= step
else
pending = 0
end
end
else
pending = 0
end
if m then
local v = m.PlaneVelocity
local mag = v.Magnitude
if mag > cap then
m.PlaneVelocity = v.Unit * math.max(cap, mag - decel * dt)
end
end
local av = hrp.AssemblyLinearVelocity
local hv = Vector3.new(av.X, 0, av.Z)
if hv.Magnitude > cap + 2 then
local nh = hv.Unit * math.max(cap, hv.Magnitude - decel * dt)
hrp.AssemblyLinearVelocity = Vector3.new(nh.X, av.Y, nh.Z)
end
end)
end
function M.fe_remove()
local fe = M.fe
if not fe.installed then
return
end
pcall(function()
fe.helpers.Accelerate = fe.orig_accel
end)
pcall(function()
fe.functions.Air = fe.orig_air
fe.functions.Slide = fe.orig_slide
end)
fe.installed = false
end
function M.fe_install()
local fe = M.fe
if fe.installed then
return true
end
local ok = pcall(function()
local fn_folder = rs.Objects.Game.Character.Client.Movement.MoveFunction
fe.functions = require(fn_folder.Functions)
fe.helpers = require(fn_folder.Functions.Helpers)
end)
if not ok or not fe.functions or not fe.helpers then
return false
end
local max_steps = 10
local orig_accel = fe.helpers.Accelerate
local orig_air, orig_slide = fe.functions.Air, fe.functions.Slide
fe.orig_accel, fe.orig_air, fe.orig_slide = orig_accel, orig_air, orig_slide
local local_call = false
local last_yaw, last_yaw_t = nil, 0
local function rot_y(v, a)
return CFrame.Angles(0, a, 0):VectorToWorldSpace(v)
end
local function patched(self, vel, wishdir, wishspeed, accel, dt, swim)
if not local_call or swim == true or type(dt) ~= "number" or dt <= 0 or wishspeed ~= accel then
return orig_accel(self, vel, wishdir, wishspeed, accel, dt, swim)
end
local n = math.clamp(math.floor(dt * cfg.fe_target + 0.5), 1, max_steps)
if n <= 1 then
return orig_accel(self, vel, wishdir, wishspeed, accel, dt, swim)
end
local look = ws.CurrentCamera.CFrame.LookVector
local yaw = math.atan2(-look.X, -look.Z)
local now = os.clock()
local delta = 0
if last_yaw and now - last_yaw_t < 0.1 then
delta = (yaw - last_yaw + math.pi) % (2 * math.pi) - math.pi
if math.abs(delta) > 1.5 then
delta = 0
end
end
last_yaw, last_yaw_t = yaw, now
local sub = dt / n
for i = 1, n do
local ang = -delta * (n - i) / n
local dir = ang == 0 and wishdir or rot_y(wishdir, ang)
vel = orig_accel(self, vel, dir, wishspeed, accel, sub, swim)
end
return vel
end
local function wrap(orig)
return function(...)
local prev = local_call
local_call = (select(4, ...) == lp.Character)
local r = table.pack(pcall(orig, ...))
local_call = prev
if not r[1] then
error(r[2], 0)
end
return table.unpack(r, 2, r.n)
end
end
local ok_a = pcall(function()
fe.helpers.Accelerate = patched
end)
local ok_b = pcall(function()
fe.functions.Air = wrap(orig_air)
fe.functions.Slide = wrap(orig_slide)
end)
fe.installed = ok_a and ok_b
return fe.installed
end
local function build_unlock_all()
local http = game:GetService("HttpService")
if getgenv().UnlockAllStop then
pcall(getgenv().UnlockAllStop)
end
local instance = {}
getgenv().UnlockAllInstance = instance
local enabled = false
local running = true
local function on()
return enabled and running and getgenv().UnlockAllInstance == instance
end
local Registry = require(rs.Items.Registry)
local Skins = require(rs.Items.Skins)
local Inv = require(rs.Client.Services.UserData.Inventory)
local CharacterService = require(rs.Services.Asset.CharacterService)
local CharRegistry = require(rs.Objects.Game.Character.DataRegistry)
local Remotes = rs.Shared.UserData.Remotes
local EquipRemote, SwapRemote, SetSkinRemote = Remotes.Equip, Remotes.SwapSlots, Remotes.SetSkin
local TaskRemote = rs.Remotes.Character.CharacterTask
local origSetTerm
local fakeEmote = nil
local SAVE_FOLDER, SAVE_FILE = "xyzevade", "xyzevade/unlock_all.json"
local COSMETIC_SLOT = {
Cosmetic = true, Unusual = true, Character = true,
Emote = true, CarryAnimation = true, Nametag = true,
}
local cache, allCosmetics = {}, {}
local function isCosmetic(id)
local c = cache[id]
if c ~= nil then
return c
end
local ok, conf = pcall(Registry.GetConfig, id)
local r = false
if ok and type(conf) == "table" then
local st = conf.EquipInfo and conf.EquipInfo.SlotType
r = (st ~= nil and COSMETIC_SLOT[st] == true) or conf.CosmeticInfo ~= nil or conf.EmoteInfo ~= nil
end
cache[id] = r
return r
end
local skinCache = {}
local function isSkinId(id)
local c = skinCache[id]
if c ~= nil then
return c
end
local ok, r = pcall(Skins.IsSkin, id)
c = ok and r == true
skinCache[id] = c
return c
end
local function slotTypeOf(id)
local ok, conf = pcall(Registry.GetConfig, id)
return ok and type(conf) == "table" and conf.EquipInfo and conf.EquipInfo.SlotType or nil
end
for id = 1, Registry.GetCount() + 2000 do
if isCosmetic(id) then
allCosmetics[#allCosmetics + 1] = id
end
end
local slotOverlay, skinOverlay = {}, {}
local slotObs, skinObs, loadoutObs = {}, {}, {}
local blocked = 0
local function save()
pcall(function()
if not isfolder(SAVE_FOLDER) then
makefolder(SAVE_FOLDER)
end
local skins = {}
for k, v in pairs(skinOverlay) do
skins[tostring(k)] = v
end
writefile(SAVE_FILE, http:JSONEncode({ slots = slotOverlay, skins = skins }))
end)
end
local function load_state()
table.clear(slotOverlay)
table.clear(skinOverlay)
pcall(function()
if isfile(SAVE_FILE) then
local d = http:JSONDecode(readfile(SAVE_FILE))
for k, v in pairs(d.slots or {}) do
slotOverlay[k] = v
end
for k, v in pairs(d.skins or {}) do
skinOverlay[tonumber(k)] = v
end
end
end)
end
local orig = {}
local function hook(name, fn, optional)
if type(Inv[name]) ~= "function" then
if optional then
return
end
error("inventory function missing: " .. name)
end
orig[name] = hookfunction(Inv[name], fn)
end
local function effective(slot)
local o = slotOverlay[slot]
if o == nil then
return orig.GetEquipped(slot)
end
if o == false then
return nil
end
return o
end
local function effectiveSkin(base)
local o = skinOverlay[base]
if o == nil then
return orig.GetSkin(base)
end
if o == false then
return nil
end
return o
end
local refreshLocal
local function fireAll()
for _, o in ipairs(slotObs) do
pcall(o.push)
end
for _, o in ipairs(skinObs) do
pcall(o.push)
end
for _, cb in ipairs(loadoutObs) do
pcall(cb)
end
if refreshLocal then
pcall(refreshLocal)
end
end
hook("Owns", function(id)
if on() and (isCosmetic(id) or isSkinId(id)) then
return true
end
return orig.Owns(id)
end)
hook("IsUnlocked", function(id)
if on() and isCosmetic(id) then
return true
end
return orig.IsUnlocked(id)
end)
hook("OwnedIds", function()
local list = orig.OwnedIds()
if not on() then
return list
end
local have = {}
for _, id in ipairs(list) do
have[id] = true
end
for _, id in ipairs(allCosmetics) do
if not have[id] then
list[#list + 1] = id
end
end
table.sort(list)
return list
end)
hook("GetOwnedBySlotType", function(slotType)
local list = orig.GetOwnedBySlotType(slotType)
if not on() or not COSMETIC_SLOT[slotType] then
return list
end
local have = {}
for _, id in ipairs(list) do
have[id] = true
end
for _, id in ipairs(allCosmetics) do
if not have[id] and slotTypeOf(id) == slotType then
list[#list + 1] = id
end
end
return list
end)
hook("IsSlotAvailable", function(slot)
if on() and COSMETIC_SLOT[Inv.GetSlotType(slot)] then
return true
end
return orig.IsSlotAvailable(slot)
end)
hook("GetEquipped", function(slot)
if not on() then
return orig.GetEquipped(slot)
end
return effective(slot)
end)
hook("GetLoadout", function()
local r = orig.GetLoadout()
if not on() then
return r
end
for slot, v in pairs(slotOverlay) do
r[slot] = v or nil
end
return r
end)
hook("IsEquipped", function(id)
if not on() then
return orig.IsEquipped(id)
end
for slot in pairs(Inv.GetSlots()) do
if effective(slot) == id then
return true, slot
end
end
return false, nil
end)
hook("ObserveSlot", function(slot, cb)
local entry = {
push = function()
cb(on() and effective(slot) or orig.GetEquipped(slot))
end,
}
local disc = orig.ObserveSlot(slot, function()
entry.push()
end)
slotObs[#slotObs + 1] = entry
return function()
pcall(disc)
local i = table.find(slotObs, entry)
if i then
table.remove(slotObs, i)
end
end
end)
hook("ObserveLoadout", function(cb)
local disc = orig.ObserveLoadout(cb)
loadoutObs[#loadoutObs + 1] = cb
return function()
pcall(disc)
local i = table.find(loadoutObs, cb)
if i then
table.remove(loadoutObs, i)
end
end
end)
hook("GetSkin", function(base)
if not on() then
return orig.GetSkin(base)
end
return effectiveSkin(base)
end)
hook("GetWornSkin", function(base)
if not on() then
return orig.GetWornSkin(base)
end
local o = skinOverlay[base]
if o == nil then
return orig.GetWornSkin(base)
end
if o == false then
return nil
end
return o
end, true)
hook("ObserveSkin", function(base, cb)
local entry = {
push = function()
cb(on() and effectiveSkin(base) or orig.GetSkin(base))
end,
}
local disc = orig.ObserveSkin(base, function()
entry.push()
end)
skinObs[#skinObs + 1] = entry
return function()
pcall(disc)
local i = table.find(skinObs, entry)
if i then
table.remove(skinObs, i)
end
end
end)
local function handleEquip(slot, id)
if type(slot) ~= "string" or not COSMETIC_SLOT[Inv.GetSlotType(slot)] then
return false
end
if id == nil then
if slotOverlay[slot] ~= nil then
slotOverlay[slot] = nil
save()
fireAll()
return true
end
return false
end
local fake = isCosmetic(id) and not orig.Owns(id)
local locked = not orig.IsSlotAvailable(slot)
if fake or locked then
slotOverlay[slot] = id
save()
fireAll()
return true
end
if slotOverlay[slot] ~= nil then
slotOverlay[slot] = nil
save()
fireAll()
end
return false
end
local function handleSwap(a, b)
if slotOverlay[a] == nil and slotOverlay[b] == nil then
return false
end
local ea, eb = effective(a), effective(b)
slotOverlay[a] = eb == nil and false or eb
slotOverlay[b] = ea == nil and false or ea
save()
fireAll()
return true
end
local function handleSkin(base, skin)
if skin == nil then
if skinOverlay[base] ~= nil then
skinOverlay[base] = false
save()
fireAll()
return true
end
return false
end
if (isCosmetic(skin) or isSkinId(skin)) and not orig.Owns(skin) then
skinOverlay[base] = skin
save()
fireAll()
return true
end
if skinOverlay[base] ~= nil then
skinOverlay[base] = nil
save()
fireAll()
end
return false
end
local function setLocalEmote(id)
local lc = CharacterService:GetLocalCharacter()
if lc and lc.DataRegistry and origSetTerm then
origSetTerm(lc.DataRegistry, "Emote", id)
end
end
local function handleEmoteTask(kind, id)
if kind ~= "Emote" then
return false
end
if id == nil or id == 0 then
if fakeEmote then
fakeEmote = nil
setLocalEmote(0)
return true
end
return false
end
if type(id) == "number" and isCosmetic(id) and not orig.Owns(id) then
fakeEmote = id
setLocalEmote(id)
return true
end
return false
end
local oldNamecall
oldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
if on() and getnamecallmethod() == "FireServer" then
local method = getnamecallmethod()
local handled = false
if self == EquipRemote then
handled = handleEquip(...)
elseif self == SwapRemote then
handled = handleSwap(...)
elseif self == SetSkinRemote then
handled = handleSkin(...)
elseif self == TaskRemote then
handled = handleEmoteTask(...)
end
if handled then
blocked += 1
return
end
if setnamecallmethod then
setnamecallmethod(method)
end
end
return oldNamecall(self, ...)
end))
local deploySwaps = 0
do
local ok, DeployableService = pcall(require, rs.Services.Items.DeployableService)
if ok and type(DeployableService) == "table" and DeployableService.Build then
local myName = lp.Name
local origBuild
origBuild = hookfunction(DeployableService.Build, function(self, model, itemId, skinId, upgrades, owner, ...)
if on() and owner == myName then
local o = skinOverlay[itemId]
if o ~= nil then
skinId = o or nil
deploySwaps += 1
end
end
return origBuild(self, model, itemId, skinId, upgrades, owner, ...)
end)
end
end
local WORN_SLOTS = { "CosmeticSlot_1", "CosmeticSlot_2", "UnusualSlot", "CharacterSlot" }
local OVERRIDE_TERMS = { "Cosmetics", "Nametag", "Emotes", "CarryItem", "ToolSkins" }
local IS_OVERRIDDEN = { Cosmetics = true, Nametag = true, Emotes = true, CarryItem = true, ToolSkins = true }
local serverVal = setmetatable({}, { __mode = "k" })
local function hasWornOverlay()
for _, s in ipairs(WORN_SLOTS) do
if slotOverlay[s] ~= nil then
return true
end
end
return false
end
local function wornList()
local list = {}
for _, s in ipairs(WORN_SLOTS) do
local id = effective(s)
if id then
list[#list + 1] = id
end
end
return list
end
local function hasEmoteOverlay()
for i = 1, 12 do
if slotOverlay["EmoteSlot_" .. i] ~= nil then
return true
end
end
return false
end
local function emoteList()
local list = {}
for i = 1, 12 do
local id = effective("EmoteSlot_" .. i)
if id then
list[#list + 1] = { i, id }
end
end
return list
end
local function toolSkinList(server)
local list = {}
if type(server) == "table" then
for _, id in ipairs(server) do
local ok, base = pcall(Skins.BaseOf, id)
if not (ok and base ~= nil and skinOverlay[base] ~= nil) then
list[#list + 1] = id
end
end
end
for base, skin in pairs(skinOverlay) do
if type(skin) == "number" and skin ~= base then
list[#list + 1] = skin
end
end
table.sort(list)
return list
end
local function desired(term, serverValue)
if not on() then
return serverValue
end
if term == "ToolSkins" and next(skinOverlay) ~= nil then
return toolSkinList(serverValue)
end
if term == "Cosmetics" and hasWornOverlay() then
return wornList()
end
if term == "Emotes" and hasEmoteOverlay() then
return emoteList()
end
if term == "Nametag" and slotOverlay.NametagSlot ~= nil then
return effective("NametagSlot")
end
if term == "CarryItem" and slotOverlay.CarryAnimationSlot ~= nil then
return effective("CarryAnimationSlot") or 0
end
return serverValue
end
local function sameValue(a, b)
if type(a) == "table" and type(b) == "table" then
if #a ~= #b then
return false
end
for i = 1, #a do
if not sameValue(a[i], b[i]) then
return false
end
end
return true
end
return a == b
end
origSetTerm = hookfunction(CharRegistry.SetTerm, function(self, term, value)
if term == "Emote" and fakeEmote and value ~= fakeEmote then
local p = rawget(self, "Parent")
if type(p) == "table" and p.Local then
fakeEmote = nil
end
end
if term == "Carried" and type(value) == "string" and on() and slotOverlay.CarryAnimationSlot ~= nil then
local carrier = string.split(value, ":")[1]
local lc = CharacterService:GetLocalCharacter()
local my_tag = lc and lc.Tag
if my_tag ~= nil and tonumber(carrier) == tonumber(my_tag) then
value = carrier .. ":" .. tostring(effective("CarryAnimationSlot") or 0)
end
end
if IS_OVERRIDDEN[term] then
local p = rawget(self, "Parent")
if type(p) == "table" and p.Local then
local sv = serverVal[self]
if not sv then
sv = { seeded = true }
serverVal[self] = sv
end
sv[term] = value
value = desired(term, value)
end
end
return origSetTerm(self, term, value)
end)
refreshLocal = function()
for _, c in CharacterService:GetCharacters() do
local reg = c.Local and c.DataRegistry
if reg then
local sv = serverVal[reg]
if not sv then
sv = {
seeded = true,
Cosmetics = reg.Data.Cosmetics, Nametag = reg.Data.Nametag, Emotes = reg.Data.Emotes,
CarryItem = reg.Data.CarryItem, ToolSkins = reg.Data.ToolSkins,
}
serverVal[reg] = sv
end
for _, term in ipairs(OVERRIDE_TERMS) do
local want = desired(term, sv[term])
if not (sv[term] == nil and want == nil) and not sameValue(want, reg.Data[term]) then
origSetTerm(reg, term, want)
end
end
end
end
end
task.spawn(function()
while running do
pcall(refreshLocal)
task.wait(0.5)
end
end)
local api = {}
function api.set(v)
v = v and true or false
if v == enabled then
return
end
enabled = v
if v then
load_state()
else
table.clear(slotOverlay)
table.clear(skinOverlay)
if fakeEmote then
fakeEmote = nil
pcall(setLocalEmote, 0)
end
end
pcall(fireAll)
end
function api.stop()
api.set(false)
running = false
if getgenv().UnlockAllInstance == instance then
getgenv().UnlockAllInstance = nil
end
end
function api.debug()
return {
enabled = enabled,
blocked = blocked,
slots = slotOverlay,
skins = skinOverlay,
cosmetics = #allCosmetics,
deploy_swaps = deploySwaps,
}
end
return api
end
local ua = nil
local function ua_set(v)
if v then
if not ua then
local ok, res = pcall(build_unlock_all)
if not ok or not res then
notify("unlock all failed to load, the game may have updated", 6)
return
end
ua = res
end
ua.set(true)
elseif ua then
ua.set(false)
end
end
local window = library:CreateWindow({
Title = "xyzevade",
Footer = "made with love",
Center = true,
AutoShow = true,
NotifyOnError = true,
})
local tabs = {
farm = window:AddTab("farm", "wheat"),
evasion = window:AddTab("evasion", "ghost"),
esp = window:AddTab("esp", "eye"),
visuals = window:AddTab("visuals", "sun"),
weather = window:AddTab("weather", "cloud-lightning"),
movement = window:AddTab("movement", "footprints"),
misc = window:AddTab("misc", "sparkles"),
settings = window:AddTab("settings", "settings"),
}
local g_farm = tabs.farm:AddLeftGroupbox("autofarm", "wheat")
ui_toggle(g_farm, "collect", "auto collect", false, "shows the server your position at each pickup, your own character does not move")
ui_toggle(g_farm, "collect_wisps", "wisps (candy)", true)
ui_toggle(g_farm, "collect_drops", "drops (tokens, xp, points)", false, "untested, so it is off by default")
ui_slider(g_farm, "collect_dwell", "hold time per pickup", 0.4, 0.1, 1.5, 2, "s")
g_farm:AddDivider()
ui_toggle(g_farm, "revive", "auto revive", false, "shows the server you next to the nearest downed player while it holds revive")
ui_slider(g_farm, "revive_dist", "max revive distance (0 = any)", 600, 0, 2000, 0, " studs")
g_farm:AddDivider()
ui_slider(g_farm, "safe_radius", "skip targets near nextbots", 45, 0, 200, 0, " studs")
ui_drop(g_farm, "farm_method", "movement method", { "desync", "teleport" }, 1, "desync only moves what the server sees, teleport is the old way that moves your real character")
local g_win = tabs.farm:AddRightGroupbox("autowin", "trophy")
ui_toggle(g_win, "autowin", "autowin", false, "immortality, auto collect and auto revive all at once")
g_win:AddLabel("stays safe from nextbots the whole round while it collects wisps and revives teammates", true)
g_win:AddDivider()
local status_label = g_win:AddLabel("...", true)
local g_imm = tabs.evasion:AddLeftGroupbox("nextbot immortality", "ghost")
ui_toggle(g_imm, "immortal", "nextbot immortality", false, "the server sees you somewhere else while you keep playing normally on your screen")
ui_drop(g_imm, "immortal_trigger", "when", { "when nextbot near", "always" }, 1, "when nextbot near only engages while a bot is close")
ui_drop(g_imm, "immortal_method", "method", { "park", "near player", "spam" }, 1, "park shows the server a spot above you, near player puts it next to someone else, spam jumps it around the map")
ui_slider(g_imm, "immortal_radius", "trigger distance", 200, 50, 600, 0, " studs")
g_imm:AddDivider()
g_imm:AddLabel("nothing moves your character, only the server copy of you moves. it turns off by itself if you get downed", true)
local g_spam = tabs.evasion:AddRightGroupbox("spam method", "shuffle")
ui_slider(g_spam, "spam_range", "range x / z", 6000, 500, 20000, 0, " studs")
ui_slider(g_spam, "spam_height", "range y", 2500, 200, 10000, 0, " studs")
ui_slider(g_spam, "spam_interval", "interval (0 = every frame)", 0, 0, 250, 0, "ms")
local g_park = tabs.evasion:AddRightGroupbox("park / near player", "map-pin")
ui_slider(g_park, "park_height", "park height above you", 350, 20, math.max(200, math.floor(ws.StreamingTargetRadius - 150)), 0, " studs")
g_park:AddDivider()
g_park:AddLabel("near player offsets")
ui_slider(g_park, "near_x", "offset x", 2, -50, 50, 1)
ui_slider(g_park, "near_y", "offset y", 0, -50, 50, 1)
ui_slider(g_park, "near_z", "offset z", 0, -50, 50, 1)
local g_targets = tabs.esp:AddLeftGroupbox("targets", "crosshair")
ui_color(ui_toggle(g_targets, "esp_nextbots", "nextbots", false), "esp_nextbot_color", Color3.fromRGB(255, 60, 60), "nextbots")
ui_color(ui_toggle(g_targets, "esp_players", "players", false), "esp_player_color", Color3.fromRGB(90, 170, 255), "players")
ui_color(ui_toggle(g_targets, "esp_downed", "downed players", false), "esp_downed_color", Color3.fromRGB(255, 170, 40), "downed players")
ui_color(ui_toggle(g_targets, "esp_wisps", "wisps (candy)", false), "esp_wisp_color", Color3.fromRGB(190, 120, 255), "wisps")
ui_color(ui_toggle(g_targets, "esp_drops", "drops (tokens, xp, points)", false), "esp_drop_color", Color3.fromRGB(255, 230, 80), "drops")
local g_style = tabs.esp:AddRightGroupbox("style", "palette")
ui_toggle(g_style, "esp_chams", "chams", true)
ui_toggle(g_style, "esp_names", "names", true)
ui_toggle(g_style, "esp_distance", "distance", true)
ui_toggle(g_style, "esp_tracers", "tracers", false, "needs drawing api support from your executor")
ui_slider(g_style, "esp_dist", "max distance", 2000, 100, 5000, 0, " studs")
local g_light = tabs.visuals:AddLeftGroupbox("lighting", "sun")
ui_toggle(g_light, "l_time", "clock time", false)
ui_slider(g_light, "l_time_v", "time", 12, 0, 24, 2)
ui_toggle(g_light, "l_bright", "brightness", false)
ui_slider(g_light, "l_bright_v", "brightness", 2, 0, 10, 2)
ui_toggle(g_light, "l_expo", "exposure", false)
ui_slider(g_light, "l_expo_v", "exposure", 0, -5, 5, 2)
ui_toggle(g_light, "l_lat", "geographic latitude", false)
ui_slider(g_light, "l_lat_v", "latitude", 41.7, -90, 90, 1)
local t_amb = ui_toggle(g_light, "l_amb", "ambient colors", false)
ui_color(t_amb, "l_amb_in", Color3.fromRGB(59, 203, 255), "indoor ambient")
ui_color(t_amb, "l_amb_out", Color3.fromRGB(1, 102, 139), "outdoor ambient")
local t_shift = ui_toggle(g_light, "l_shift", "color shift", false)
ui_color(t_shift, "l_shift_top", Color3.fromRGB(100, 160, 255), "shift top")
ui_color(t_shift, "l_shift_bot", Color3.fromRGB(20, 40, 90), "shift bottom")
ui_toggle(g_light, "l_diffuse", "environment diffuse scale", false)
ui_slider(g_light, "l_diffuse_v", "diffuse scale", 0, 0, 1, 2)
ui_toggle(g_light, "l_spec", "environment specular scale", false)
ui_slider(g_light, "l_spec_v", "specular scale", 0, 0, 1, 2)
ui_toggle(g_light, "l_noshadows", "disable global shadows", false)
ui_toggle(g_light, "l_soft", "shadow softness", false)
ui_slider(g_light, "l_soft_v", "softness", 0.5, 0, 1, 2)
ui_toggle(g_light, "l_style", "lighting style", false)
ui_drop(g_light, "l_style_v", "style", { "realistic", "soft" }, 1)
local g_fog = tabs.visuals:AddRightGroupbox("fog and atmosphere", "cloud-fog")
ui_color(ui_toggle(g_fog, "f_on", "fog", false), "f_color", Color3.fromRGB(192, 192, 192), "fog color")
ui_slider(g_fog, "f_start", "fog start", 0, 0, 10000, 0)
ui_slider(g_fog, "f_end", "fog end", 1000, 0, 10000, 0)
g_fog:AddDivider()
local t_atmo = ui_toggle(g_fog, "a_on", "atmosphere", false)
ui_color(t_atmo, "a_color", Color3.fromRGB(200, 170, 108), "atmosphere color")
ui_color(t_atmo, "a_decay", Color3.fromRGB(92, 60, 14), "atmosphere decay")
ui_slider(g_fog, "a_density", "density", 0.395, 0, 1, 2)
ui_slider(g_fog, "a_offset", "offset", 0, 0, 1, 2)
ui_slider(g_fog, "a_glare", "glare", 0, 0, 1, 2)
ui_slider(g_fog, "a_haze", "haze", 0, 0, 1, 2)
local g_post = tabs.visuals:AddRightGroupbox("post processing", "sparkles")
ui_toggle(g_post, "bl_on", "bloom", false)
ui_slider(g_post, "bl_int", "intensity", 0.4, 0, 3, 2)
ui_slider(g_post, "bl_size", "size", 24, 0, 56, 0)
ui_slider(g_post, "bl_thr", "threshold", 0.95, 0, 4, 2)
g_post:AddDivider()
ui_color(ui_toggle(g_post, "cc_on", "color correction", false), "cc_tint", Color3.fromRGB(255, 255, 255), "tint")
ui_slider(g_post, "cc_sat", "saturation", 0, -1, 1, 2)
ui_slider(g_post, "cc_bri", "brightness", 0, -1, 1, 2)
ui_slider(g_post, "cc_con", "contrast", 0, -1, 1, 2)
g_post:AddDivider()
ui_toggle(g_post, "dof_on", "depth of field", false)
ui_slider(g_post, "dof_far", "far intensity", 0.75, 0, 1, 2)
ui_slider(g_post, "dof_focus", "focus distance", 50, 0, 500, 0)
ui_slider(g_post, "dof_radius", "in focus radius", 10, 0, 500, 0)
ui_slider(g_post, "dof_near", "near intensity", 0.75, 0, 1, 2)
g_post:AddDivider()
ui_toggle(g_post, "sr_on", "sun rays", false)
ui_slider(g_post, "sr_int", "intensity", 0.25, 0, 1, 2)
ui_slider(g_post, "sr_spread", "spread", 1, 0, 1, 2)
g_post:AddDivider()
ui_toggle(g_post, "tm_retro", "retro tonemapper", false)
local g_sky = tabs.visuals:AddLeftGroupbox("skybox", "moon")
ui_toggle(g_sky, "sky_on", "custom skybox", false)
ui_drop(g_sky, "sky_preset", "preset", sky_names, 1, "pick a skybox preset, turn on custom skybox to apply it")
local g_weather = tabs.weather:AddLeftGroupbox("weather", "cloud-snow")
ui_toggle(g_weather, "w_on", "weather", false)
ui_drop(g_weather, "w_preset", "preset", V.weather_names, 1)
ui_slider(g_weather, "w_rate", "amount", 1, 0.1, 4, 2)
ui_slider(g_weather, "w_speed", "speed", 1, 0.2, 3, 2)
ui_slider(g_weather, "w_size", "particle size", 1, 0.3, 4, 2)
ui_slider(g_weather, "w_height", "height", 45, 10, 150, 0)
ui_slider(g_weather, "w_spread", "area", 60, 15, 200, 0)
ui_slider(g_weather, "w_glow", "glow", 0.4, 0, 1, 2)
ui_slider(g_weather, "w_wind", "wind", 0, 0, 40, 1)
ui_slider(g_weather, "w_wind_angle", "wind angle", 0, 0, 360, 0)
ui_color(ui_toggle(g_weather, "w_color_on", "custom color", false), "w_color", Color3.fromRGB(255, 255, 255), "weather color")
local g_lightning = tabs.weather:AddRightGroupbox("lightning", "zap")
ui_color(ui_toggle(g_lightning, "lg_on", "lightning", false), "lg_color", Color3.fromRGB(214, 230, 255), "bolt color")
ui_slider(g_lightning, "lg_interval", "interval", 4, 0.5, 30, 1, "s")
ui_slider(g_lightning, "lg_dist", "distance", 120, 30, 400, 0, " studs")
ui_slider(g_lightning, "lg_height", "height", 220, 60, 500, 0, " studs")
ui_slider(g_lightning, "lg_thick", "thickness", 4, 1, 12, 1)
ui_slider(g_lightning, "lg_jag", "jaggedness", 7, 1, 20, 1)
ui_slider(g_lightning, "lg_flash", "flash", 8, 0, 20, 1)
cfg.lg_sound = ""
g_lightning:AddInput("lg_sound", {
Text = "thunder sound id",
Default = "",
Numeric = true,
Finished = true,
Placeholder = "optional asset id",
Callback = function(v)
cfg.lg_sound = v
end,
})
g_lightning:AddButton({
Text = "strike now",
Func = function()
pcall(V.strike)
end,
})
M.mv = { parts = {}, movers = {}, gravity = nil }
M.ds = {}
M.gm = {}
M.nc = {}
function M.mv_restore_collision()
for part in pairs(M.mv.parts) do
pcall(function()
part.CanCollide = true
end)
end
M.mv.parts = {}
end
function M.mv_restore_fly()
local mv = M.mv
for mover in pairs(mv.movers) do
pcall(function()
mover.Enabled = true
end)
end
mv.movers = {}
if mv.gravity ~= nil then
pcall(function()
ws.Gravity = mv.gravity
end)
mv.gravity = nil
end
end
function M.ds_active()
return D.farm_cf ~= nil or D.on or cfg.ds_on
end
-- PreSimulation: your real position is in place here
function M.ds_apply()
local ds = M.ds
local root = get_root()
if D.on and root then
D.pos = root.Position
end
local now = os.clock()
if M.ds_active() then
ds.last_active = now
if ds.orig == nil then
local ok, cur = pcall(getfflag, "S2PhysicsSenderRate")
ds.orig = (ok and cur ~= nil and cur ~= "") and tostring(cur) or "15"
local ok2 = pcall(setfflag, "S2PhysicsSenderRate", "120")
if not ok2 and not ds.warned then
ds.warned = true
notify("desync could not raise the send rate, your executor may not have setfflag", 6)
end
end
if root and now - (ds.stream_at or 0) > 0.25 then
ds.stream_at = now
local pos = root.Position
task.spawn(function()
pcall(function()
lp:RequestStreamAroundAsync(pos, 0.6)
end)
end)
end
elseif ds.orig ~= nil and now - (ds.last_active or 0) > 2 then
pcall(setfflag, "S2PhysicsSenderRate", ds.orig)
ds.orig, ds.anchor, ds.mode = nil, nil, nil
end
end
function M.ds_ghost_set(cf)
local ds = M.ds
if cf and cfg.ds_ghost then
if not ds.ghost or not ds.ghost.Parent then
local p = Instance.new("Part")
p.Name = "xyz_ghost"
p.Anchored = true
p.CanCollide = false
p.CanQuery = false
p.CanTouch = false
p.CastShadow = false
p.Size = Vector3.new(2, 4, 2)
p.Material = Enum.Material.ForceField
p.Color = Color3.fromRGB(255, 80, 80)
p.Transparency = 0.2
p.Parent = ws.CurrentCamera
ds.ghost = p
end
ds.ghost.CFrame = cf
elseif ds.ghost then
pcall(function()
ds.ghost:Destroy()
end)
ds.ghost = nil
end
end
-- picks where the server should see you, the farm wins over evasion, evasion over the manual desync
function M.ds_pick(real)
local ds = M.ds
if D.farm_cf then
return D.farm_cf
end
if D.on then
return D.method_cf()
end
if cfg.ds_on then
if ds.mode ~= cfg.ds_mode then
ds.mode = cfg.ds_mode
ds.anchor = nil
end
if cfg.ds_mode == "freeze" then
ds.anchor = ds.anchor or real
return ds.anchor
end
return real + Vector3.new(cfg.ds_x, cfg.ds_y, cfg.ds_z)
end
return nil
end
-- heartbeat, after physics: puts the root where the server should see it
function M.ds_heartbeat()
local ds = M.ds
if ds.old ~= nil then
return
end
local character = lp.Character
local root = get_root()
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
if not root or not humanoid or humanoid.Health <= 0 then
M.ds_ghost_set(nil)
return
end
local real = root.CFrame
local fake = M.ds_pick(real)
if not fake then
M.ds_ghost_set(nil)
return
end
ds.old = real
root.CFrame = fake
M.ds_ghost_set(fake)
end
-- first thing on render, before the camera and the game's movement: puts the root back
function M.ds_render()
local ds = M.ds
if ds.old == nil then
return
end
local root = get_root()
if root then
root.CFrame = ds.old
end
ds.old = nil
end
function M.ws_apply()
local mv = M.mv
if not mv.cs then
local ok, mod = pcall(function()
return require(rs.Services.Asset.CharacterService)
end)
if not ok then
return
end
mv.cs = mod
end
local ok, lc = pcall(function()
return mv.cs:GetLocalCharacter()
end)
local ms = ok and lc and lc.Movement and lc.Movement.MoveStats
if not ms or not ms.MoveStats then
return
end
if cfg.ws_on then
local base = ms.MoveStats.BaseSpeed or 1500
ms:SpeedChange("xyz_walkspeed", cfg.ws_v / (base / 90))
mv.ws_ms = ms
elseif mv.ws_ms then
pcall(mv.ws_ms.SpeedChange, mv.ws_ms, "xyz_walkspeed", nil)
pcall(ms.SpeedChange, ms, "xyz_walkspeed", nil)
mv.ws_ms = nil
end
end
function M.gm_install()
local gm = M.gm
if gm.installed or gm.failed then
return gm.installed
end
local ok = pcall(function()
gm.mod = require(rs.Objects.Game.Character.Client.Movement.MoveFunction)
end)
if not ok or type(gm.mod) ~= "table" or type(gm.mod.Move) ~= "function" then
gm.failed = true
notify("velocity gain could not load, the game may have updated", 6)
return false
end
local orig = gm.mod.Move
gm.orig = orig
gm.mod.Move = function(self, dt, state, stats)
local movers, terms = orig(self, dt, state, stats)
if not cfg.gm_on or type(movers) ~= "table" or type(terms) ~= "table" then
return movers, terms
end
pcall(function()
if self.Character ~= lp.Character then
return
end
local base = movers.BaseMover
local new = terms.Velocity
local old = self.DataRegistry:Get("Velocity")
if not base or typeof(new) ~= "Vector3" or typeof(old) ~= "Vector3" then
return
end
local old_h = Vector3.new(old.X, 0, old.Z).Magnitude
local new_h = Vector3.new(new.X, 0, new.Z).Magnitude
if new_h <= old_h or new_h < 0.01 then
return
end
local mag = math.min(old_h + (new_h - old_h) * cfg.gm_mult, math.max(cfg.gm_cap * 90, new_h))
local k = mag / new_h
local v = Vector3.new(new.X * k, new.Y, new.Z * k)
terms.Velocity = v
base.PlaneVelocity = Vector2.new(v.X, v.Z)
end)
return movers, terms
end
gm.installed = true
return true
end
function M.nc_install()
local nc = M.nc
if nc.installed or nc.failed then
return
end
local ok = pcall(function()
nc.helpers = require(rs.Objects.Game.Character.Client.Movement.MoveFunction.Functions.Helpers)
end)
if not ok or type(nc.helpers) ~= "table" or type(nc.helpers.WallImpact) ~= "function" then
nc.failed = true
notify("noclip could not hook the game's wall check, the game may have updated", 6)
return
end
local orig = nc.helpers.WallImpact
nc.orig = orig
nc.helpers.WallImpact = function(self, dt, mvt, reg, char, stats, vel)
if cfg.nc_on and char == lp.Character and typeof(vel) == "Vector3" then
return vel
end
return orig(self, dt, mvt, reg, char, stats, vel)
end
nc.installed = true
end
function M.mv_step()
M.ds_apply()
if cfg.nc_on and not M.nc.installed then
M.nc_install()
end
if cfg.gm_on and not M.gm.installed then
M.gm_install()
end
M.ws_apply()
local character = lp.Character
local hrp = character and character:FindFirstChild("HumanoidRootPart")
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
local mv = M.mv
if not hrp or not humanoid or humanoid.Health <= 0 then
return
end
if cfg.nc_on then
for _, p in ipairs(character:GetDescendants()) do
if p:IsA("BasePart") and p.CanCollide then
mv.parts[p] = true
p.CanCollide = false
end
end
elseif next(mv.parts) then
M.mv_restore_collision()
end
if cfg.fly_on then
if mv.gravity == nil then
mv.gravity = ws.Gravity
end
ws.Gravity = 0
for _, v in ipairs(hrp:GetChildren()) do
if v:IsA("LinearVelocity") and v.Enabled then
mv.movers[v] = true
v.Enabled = false
end
end
local cam = ws.CurrentCamera
local dir = Vector3.zero
if not uis:GetFocusedTextBox() then
if uis:IsKeyDown(Enum.KeyCode.W) then
dir += cam.CFrame.LookVector
end
if uis:IsKeyDown(Enum.KeyCode.S) then
dir -= cam.CFrame.LookVector
end
if uis:IsKeyDown(Enum.KeyCode.D) then
dir += cam.CFrame.RightVector
end
if uis:IsKeyDown(Enum.KeyCode.A) then
dir -= cam.CFrame.RightVector
end
if uis:IsKeyDown(Enum.KeyCode.Space) then
dir += Vector3.yAxis
end
if uis:IsKeyDown(Enum.KeyCode.LeftControl) or uis:IsKeyDown(Enum.KeyCode.LeftShift) then
dir -= Vector3.yAxis
end
end
hrp.AssemblyLinearVelocity = dir.Magnitude > 0.01 and dir.Unit * cfg.fly_speed or Vector3.zero
elseif mv.gravity ~= nil or next(mv.movers) then
M.mv_restore_fly()
end
end
function M.mv_cleanup()
M.mv_restore_collision()
M.mv_restore_fly()
cfg.ds_on, cfg.ws_on = false, false
D.farm_cf = nil
M.ds_render()
M.ds_ghost_set(nil)
M.ds.last_active = -math.huge
M.ds_apply()
M.ws_apply()
pcall(function()
run_service:UnbindFromRenderStep("xyz_desync")
end)
local nc = M.nc
if nc.installed and nc.helpers then
pcall(function()
nc.helpers.WallImpact = nc.orig
end)
nc.installed = false
end
local gm = M.gm
if gm.installed and gm.mod and gm.mod.Move ~= gm.orig then
pcall(function()
gm.mod.Move = gm.orig
end)
gm.installed = false
end
end
local g_aj = tabs.movement:AddLeftGroupbox("auto jump", "chevrons-up")
local t_aj = ui_toggle(g_aj, "aj_on", "auto jump", false, "hold space and it jumps and gains speed for you", function(v)
if v then
M.aj_start()
else
M.aj_stop()
end
end)
t_aj:AddKeyPicker("aj_key", {
Default = "RightControl",
SyncToggleState = true,
Mode = "Toggle",
Text = "auto jump",
NoUI = false,
})
ui_toggle(g_aj, "aj_humanly", "humanly delay", true)
ui_slider(g_aj, "aj_delay_min", "delay min", 10, 0, 100, 0, "ms")
ui_slider(g_aj, "aj_delay_max", "delay max", 35, 0, 100, 0, "ms")
ui_slider(g_aj, "aj_cap_min", "speed cap min", 55.5, 30, 90, 1)
ui_slider(g_aj, "aj_cap_max", "speed cap max", 60.6, 30, 90, 1)
local g_fe = tabs.movement:AddRightGroupbox("fps equalizer", "gauge")
ui_toggle(g_fe, "fe_on", "fps equalizer", false, "runs the strafe step in smaller substeps so low fps gets high fps gains", function(v)
if v then
if not M.fe_install() then
notify("fps equalizer could not load", 5)
task.defer(function()
if toggles.fe_on then
toggles.fe_on:SetValue(false)
end
end)
end
else
M.fe_remove()
end
end)
ui_slider(g_fe, "fe_target", "target fps", 240, 60, 360, 0)
do
local g_fly = tabs.movement:AddLeftGroupbox("fly and noclip", "plane")
local t_fly = ui_toggle(g_fly, "fly_on", "fly", false, "wasd moves where you look, space goes up, shift or ctrl goes down")
t_fly:AddKeyPicker("fly_key", { Default = "None", SyncToggleState = true, Mode = "Toggle", Text = "fly", NoUI = false })
ui_slider(g_fly, "fly_speed", "fly speed", 60, 10, 300, 0)
local t_nc = ui_toggle(g_fly, "nc_on", "noclip", false, "walk through walls, it also turns off the game's own wall pushback")
t_nc:AddKeyPicker("nc_key", { Default = "None", SyncToggleState = true, Mode = "Toggle", Text = "noclip", NoUI = false })
local g_spd = tabs.movement:AddRightGroupbox("speed and jump", "zap")
ui_toggle(g_spd, "ws_on", "walk speed", false, "sets your base speed using the game's own speed system, perks and slows still stack on top")
ui_slider(g_spd, "ws_v", "walk speed", 17, 10, 100, 0)
ui_toggle(g_spd, "gm_on", "velocity gain", false, "multiplies how fast you gain speed while moving or strafing, never slows you down")
ui_slider(g_spd, "gm_mult", "gain multiplier", 2, 1, 6, 1)
ui_slider(g_spd, "gm_cap", "gain speed cap", 100, 20, 300, 0)
ui_toggle(g_spd, "ij_on", "infinite jump", false, "jump again in mid air")
local g_world = tabs.movement:AddRightGroupbox("world", "map")
ui_toggle(g_world, "walls_on", "remove invisible walls", false, "turns off every invisible wall and ceiling, tall or flat, flat ones below your feet stay so you do not fall out", function(v)
V.walls_set(v)
end)
g_world:AddButton({
Text = "scan again now",
Func = function()
if cfg.walls_on then
V.walls_scan()
end
end,
})
local g_ds = tabs.movement:AddLeftGroupbox("desync", "unlink")
local t_ds = ui_toggle(g_ds, "ds_on", "desync", false, "the server sees your character somewhere else while you move normally on your screen")
t_ds:AddKeyPicker("ds_key", { Default = "None", SyncToggleState = true, Mode = "Toggle", Text = "desync", NoUI = false })
ui_drop(g_ds, "ds_mode", "mode", { "offset", "freeze" }, 1, "offset keeps the server copy at a fixed distance from you, freeze leaves it where you turned this on")
ui_slider(g_ds, "ds_x", "offset x", 0, -80, 80, 0, " studs")
ui_slider(g_ds, "ds_y", "offset y", 40, -20, 80, 0, " studs")
ui_slider(g_ds, "ds_z", "offset z", 0, -80, 80, 0, " studs")
ui_toggle(g_ds, "ds_ghost", "show server position", false, "a red box where the server thinks you are, works for farm and evasion too")
g_ds:AddButton({
Text = "set freeze point here",
Func = function()
M.ds.anchor = nil
end,
})
end
local g_unlock = tabs.visuals:AddRightGroupbox("unlock all", "unlock")
ui_toggle(g_unlock, "unlock_all", "unlock all cosmetics", true, "client side unlock of cosmetics, emotes, skins and nametags", ua_set)
g_unlock:AddLabel("equip things from your normal inventory menu and they stay saved", true)
do
local g_qol = tabs.misc:AddLeftGroupbox("quality of life", "sparkles")
ui_toggle(g_qol, "afk_on", "anti afk", true, "stops the game kicking you for sitting idle")
local vu = game:GetService("VirtualUser")
track(lp.Idled:Connect(function()
if cfg.afk_on then
pcall(function()
vu:CaptureController()
vu:ClickButton2(Vector2.new())
end)
end
end))
local zoom_orig = lp.CameraMaxZoomDistance
ui_toggle(g_qol, "fov_on", "custom fov", false)
ui_slider(g_qol, "fov_v", "fov", 90, 40, 120, 0)
ui_toggle(g_qol, "zoom_on", "far zoom", false, "lets you pull the camera out much further", function(v)
if not v then
pcall(function()
lp.CameraMaxZoomDistance = zoom_orig
end)
end
end)
ui_slider(g_qol, "zoom_v", "max zoom", 200, 20, 1000, 0, " studs")
pcall(function()
run_service:UnbindFromRenderStep("xyz_camera")
end)
run_service:BindToRenderStep("xyz_camera", Enum.RenderPriority.Camera.Value + 1, function()
local cam = ws.CurrentCamera
if cfg.fov_on and cam then
cam.FieldOfView = cfg.fov_v
end
if cfg.zoom_on then
lp.CameraMaxZoomDistance = cfg.zoom_v
end
end)
local fps_orig = 60
if typeof(getfpscap) == "function" then
local ok, v = pcall(getfpscap)
if ok and type(v) == "number" and v > 0 then
fps_orig = v
end
end
local function apply_fps()
if typeof(setfpscap) == "function" then
pcall(setfpscap, cfg.fps_on and cfg.fps_v or fps_orig)
end
end
ui_toggle(g_qol, "fps_on", "fps cap", false, "needs setfpscap from your executor", apply_fps)
ui_slider(g_qol, "fps_v", "cap", 144, 30, 360, 0, nil, apply_fps)
local g_alert = tabs.misc:AddRightGroupbox("nextbot alert", "siren")
ui_toggle(g_alert, "alert_on", "alert", false, "pops up a message when a nextbot gets close")
ui_slider(g_alert, "alert_dist", "alert distance", 120, 30, 400, 0, " studs")
task.spawn(function()
local last = {}
while alive do
task.wait(0.3)
if cfg.alert_on then
pcall(function()
local root = get_root()
if not root then
return
end
for _, m in ipairs(nextbot_models()) do
local part = m.PrimaryPart or m:FindFirstChild("HumanoidRootPart")
if part then
local d = (part.Position - root.Position).Magnitude
if d <= cfg.alert_dist and os.clock() - (last[m.Name] or 0) > 4 then
last[m.Name] = os.clock()
notify(m.Name .. " is " .. math.floor(d) .. " studs away", 2)
end
end
end
end)
end
end
end)
local g_srv = tabs.misc:AddRightGroupbox("server", "server")
g_srv:AddButton({
Text = "rejoin this server",
Func = function()
pcall(function()
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, lp)
end)
end,
})
g_srv:AddButton({
Text = "join a new server",
Func = function()
pcall(function()
game:GetService("TeleportService"):Teleport(game.PlaceId, lp)
end)
end,
})
M.misc_cleanup = function()
pcall(function()
run_service:UnbindFromRenderStep("xyz_camera")
end)
pcall(function()
lp.CameraMaxZoomDistance = zoom_orig
end)
if typeof(setfpscap) == "function" then
pcall(setfpscap, fps_orig)
end
end
end
local g_menu = tabs.settings:AddLeftGroupbox("menu", "settings")
g_menu:AddButton({
Text = "unload",
Func = function()
library:Unload()
end,
})
g_menu:AddLabel("menu keybind"):AddKeyPicker("menu_keybind", {
Default = "RightShift",
NoUI = true,
Text = "menu keybind",
})
library.ToggleKeybind = options.menu_keybind
theme_manager:SetLibrary(library)
save_manager:SetLibrary(library)
save_manager:IgnoreThemeSettings()
save_manager:SetIgnoreIndexes({ "menu_keybind" })
theme_manager:SetFolder("xyzevade")
save_manager:SetFolder("xyzevade/evade")
save_manager:BuildConfigSection(tabs.settings)
theme_manager:ApplyToTab(tabs.settings)
save_manager:LoadAutoloadConfig()
if cfg.unlock_all then
task.spawn(ua_set, true)
end
E.init()
track(run_service.RenderStepped:Connect(function()
pcall(V.step)
pcall(E.render_lines)
end))
track(run_service.PreSimulation:Connect(function()
pcall(M.mv_step)
end))
track(run_service.Heartbeat:Connect(function()
pcall(M.ds_heartbeat)
end))
pcall(function()
run_service:UnbindFromRenderStep("xyz_desync")
end)
run_service:BindToRenderStep("xyz_desync", Enum.RenderPriority.First.Value, function()
pcall(M.ds_render)
end)
track(uis.JumpRequest:Connect(function()
if cfg.ij_on and not cfg.fly_on then
local c = lp.Character
local h = c and c:FindFirstChildOfClass("Humanoid")
if h and h.Health > 0 then
h:ChangeState(Enum.HumanoidStateType.Jumping)
end
end
end))
track(lp:GetPropertyChangedSignal("Character"):Connect(function()
if D.on then
D.disengage(true)
end
end))
task.spawn(F.worker)
task.spawn(V.lightning_loop)
task.spawn(function()
while alive do
pcall(D.controller, 0.15)
task.wait(0.15)
end
end)
task.spawn(function()
while alive do
pcall(E.refresh)
task.wait(0.15)
end
end)
task.spawn(function()
while alive do
local ok, text = pcall(function()
local wisps, drops = F.count()
local downed = #F.list_downed()
local imm = "off"
if D.on then
imm = "on (" .. cfg.immortal_method .. ")"
end
return string.format("wisps: %d | drops: %d | downed: %d\nimmortality: %s", wisps, drops, downed, imm)
end)
if ok then
pcall(function()
status_label:SetText(text)
end)
end
task.wait(0.4)
end
end)
library:OnUnload(function()
alive = false
cfg.autowin = false
cfg.collect = false
cfg.revive = false
cfg.immortal = false
D.disengage()
M.aj_stop()
M.fe_remove()
M.mv_cleanup()
if M.misc_cleanup then
M.misc_cleanup()
end
if ua then
ua.stop()
end
E.clear_all()
if E.folder then
E.folder:Destroy()
end
V.cleanup()
for _, c in ipairs(conns) do
pcall(function()
c:Disconnect()
end)
end
getgenv().xyzevade_unload = nil
end)
getgenv().xyzevade_unload = function()
library:Unload()
end
if not char_svc or not col_svc or not interact_remote then
notify("some game modules were not found, the game may have updated", 8)
endLoads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: raw.githubusercontent.com.

Universal