Run it
Copy the script and paste it into your executor.
started, problem = (()
.PlaceId ~=
()
env = ()
_, key ({ , })
env[key]
(env[key])
players = :()
replicatedstorage = :()
runservice = :()
userinputservice = :()
lighting = :()
httpservice = :()
collectionservice = :()
virtualuser = :()
localplayer = players.LocalPlayer
playergui = localplayer:()
remotes = replicatedstorage:(, )
replicators = replicatedstorage:(, )
contentmodel = :(, )
(remotes replicators contentmodel)
()
savepath =
oldsavepath =
reconpath =
tint = { , , , , , , , , , , , , , , , , , , , }
(list)
out = {}
index, value (list)
out[index] = .(bit32.(value, ))
.(out)
build = (tint)
lobbyspot = { -, , }
defaults = {
autosurvive = ,
bannerseconds = ,
countdown = ,
keeplab = ,
nomusic = ,
mode = ,
skyheight = ,
movedelay = ,
spot = lobbyspot,
looptp = ,
boardon = ,
boardwhich = ,
boardfollow = ,
boarddistance = ,
earlypopup = ,
playeresp = ,
glidespeed = ,
softland = ,
maxfall = ,
antifling = ,
waterwalk = ,
safetouch = ,
autoapple = ,
applehealth = ,
hazardesp = ,
banner = ,
speedon = ,
speed = ,
jumpon = ,
jump = ,
infjump = ,
fly = ,
flyspeed = ,
noclip = ,
fullbright = ,
nofog = ,
noflash = ,
antiafk = ,
recon = ,
}
settings = .(defaults)
()
(isfile readfile)
ok, data = (()
path = (savepath) savepath ((oldsavepath) oldsavepath)
path httpservice:((path))
)
ok (data) ~=
key, value (data)
(defaults[key]) == (value)
settings[key] = value
()
writefile
(()
makefolder isfolder ()
()
(savepath, httpservice:(settings))
)
()
settings.build = build
#settings.spot ~= .(settings.spot[] + ) <
settings.spot = .(lobbyspot)
connections = {}
lasterror
(signal, callback)
connection = signal:((...)
ok, problem = (callback, ...)
ok
lasterror = (problem)
( .. lasterror)
)
.(connections, connection)
connection
disasters = {
{ key = , label = , words = { , }, place = },
{ key = , label = , words = { }, place = },
{ key = , label = , words = { , , }, place = },
{ key = , label = , words = { }, place = },
{ key = , label = , words = { }, place = },
{ key = , label = , words = { , }, place = },
{ key = , label = , words = { }, place = },
{ key = , label = , words = { , }, place = },
{ key = , label = , words = { }, place = },
{ key = , label = , words = { }, place = },
{ key = , label = , words = { , }, place = },
{ key = , label = , words = { }, place = },
{ key = , label = , words = { , }, place = },
}
knownworkspace = {
Camera = , NPCs = , WeatherMachine = , Spawns = , BillboardTop10 = ,
Structure = , Tower = , Island = , BillboardBalloon = , BillboardAd = ,
BillboardApple = , ContentModel = , Sandboxes = , WaterLevel = ,
WeatherDome = , Terrain = , [] = , [] = ,
}
moverclasses = {
BodyForce = , BodyVelocity = , BodyPosition = , BodyGyro = , BodyThrust = ,
BodyAngularVelocity = , LinearVelocity = , AngularVelocity = , VectorForce = ,
Torque = , AlignPosition = , AlignOrientation = , LineForce = ,
}
state = {
active = {},
warnings = {},
lasthealth = ,
lastapple = ,
hold = ,
holdkind = ,
manualhold = ,
nextcompute = ,
creds = ,
survived = ,
multi = ,
hazards = {},
hazardlinks = {},
touched = {},
fog = {},
collide = {},
cover = ,
covertime = ,
light = ,
seen = {},
staletags = {},
ownwarn = {},
earlyname = ,
earlyclock = ,
lead = ,
started = .(),
esp = {},
log = {},
logdirty = ,
history = {},
hiddenscreens = {},
muted = {},
soundseen = {},
historydirty = ,
}
()
.()
(kind, data)
settings.recon
#state.log >=
.(state.log, )
data = data {}
data.kind = kind
data.t = .(:())
data.ms = .((() - state.started) * )
.(state.log, data)
state.logdirty =
()
writefile
(()
makefolder isfolder ()
()
(reconpath, httpservice:(state.log))
state.logdirty =
)
(, { text = build })
()
character = localplayer.Character
character
root = character:()
humanoid = character:()
(root humanoid humanoid.Health > )
character, root, humanoid
(vector)
{ .(vector.X), .(vector.Y), .(vector.Z) }
(instance)
instance:() instance.Position
instance:() instance:().Position
part = instance:(, )
part part.Position
()
replicators.Round:()
()
round = ()
round == round ==
()
() localplayer:() ==
()
waterlevel = :()
structure = :()
flood = structure structure:()
level = waterlevel waterlevel.Position.Y
flood .(level, flood.Position.Y) level
playarea = {
low = .(-, , -),
high = .(, , ),
center = .(-, , -),
}
()
playarea
(root)
position = root.Position
.(
.(position.X, playarea.low.X, playarea.high.X),
settings.skyheight,
.(position.Z, playarea.low.Z, playarea.high.Z)
)
()
spot = settings.spot
#spot == .(spot[], spot[], spot[])
(root)
position = root.Position
.(.(position.X, -, ), .(() + , ), .(position.Z, -, ))
(floor, params)
_, offset ({ .zero, .(, , ), .(-, , ), .(, , ), .(, , -) })
:(floor + offset, .(, , ), params)
(root)
structure = :()
structure
params = RaycastParams.()
params.FilterType = .RaycastFilterType.Include
params.FilterDescendantsInstances = { structure }
bounds = ()
surface = ()
best, bestdistance
step =
x = bounds.low.X, bounds.high.X, step
z = bounds.low.Z, bounds.high.Z, step
down = :(.(x, bounds.high.Y + , z), .(, -(bounds.high.Y - bounds.low.Y) - , ), params)
hit = down
floors =
hit floors <
floors +=
floor = hit.Position + .(, , )
floor.Y > surface +
(floor, params)
distance = (floor - root.Position).Magnitude
bestdistance distance < bestdistance
best, bestdistance = floor, distance
origin = hit.Position - .(, , )
origin.Y < bounds.low.Y
hit = :(origin, .(, bounds.low.Y - origin.Y - , ), params)
best
()
settings.mode ~= settings.mode
_, disaster (disasters)
state.active[disaster.key] disaster.place ==
(root)
settings.looptp ()
(),
state.manualhold
(root),
(settings.autosurvive (state.active) ())
state.earlyclock #state.warnings == () - state.earlyclock < settings.movedelay
place = ()
place ==
(root),
place == ()
(),
place ==
state.cover () - state.covertime >
state.cover = (root)
state.covertime = ()
state.cover state.cover,
(root),
(root, target, delta)
position = root.Position
offset = target - position
distance = offset.Magnitude
travel = settings.glidespeed * delta
nextposition = distance <= travel target position + offset.Unit * travel
root.CFrame = .(nextposition) * root.CFrame.Rotation
root.AssemblyLinearVelocity = .zero
root.AssemblyAngularVelocity = .zero
(root, target)
root.CFrame = .(target) * root.CFrame.Rotation
root.AssemblyLinearVelocity = .zero
root.AssemblyAngularVelocity = .zero
(root, humanoid, delta)
camera = .CurrentCamera
look, right = camera.CFrame.LookVector, camera.CFrame.RightVector
direction = .zero
userinputservice:() ==
isdown = (code) userinputservice:(code)
(.KeyCode.W) direction += look
(.KeyCode.S) direction -= look
(.KeyCode.D) direction += right
(.KeyCode.A) direction -= right
(.KeyCode.Space) direction += .yAxis
(.KeyCode.LeftControl) direction -= .yAxis
direction.Magnitude ==
direction = humanoid.MoveDirection
direction.Magnitude >
root.CFrame += direction.Unit * settings.flyspeed * delta
root.AssemblyLinearVelocity = .zero
root.AssemblyAngularVelocity = .zero
(root, humanoid)
velocity = root.AssemblyLinearVelocity
x, y, z = velocity.X, velocity.Y, velocity.Z
changed =
settings.softland y < -settings.maxfall
y = -settings.maxfall
changed =
settings.antifling
flat = .(x, , z)
limit = .(humanoid.WalkSpeed * , )
flat.Magnitude > limit
flat = flat.Unit * humanoid.WalkSpeed
x, z = flat.X, flat.Z
changed =
y > .(, humanoid.JumpPower * )
y =
changed =
root.AssemblyAngularVelocity.Magnitude >
root.AssemblyAngularVelocity = .zero
changed
root.AssemblyLinearVelocity = .(x, y, z)
(root)
root.Position.X < -
floor = () +
root.Position.Y < floor
position = root.Position
root.CFrame = .(position.X, floor, position.Z) * root.CFrame.Rotation
velocity = root.AssemblyLinearVelocity
root.AssemblyLinearVelocity = .(velocity.X, .(velocity.Y, ), velocity.Z)
(character, humanoid)
tool = character:() (localplayer:() localplayer.Backpack:())
tool
state.lastapple = ()
.(()
humanoid:(tool)
.()
tool.Parent == character
tool:()
.()
tool.Parent == character
humanoid:()
)
(position)
best, bestdistance
hazard (state.hazards)
hazard.Parent
at = (hazard)
distance = at (at - position).Magnitude
distance ( bestdistance distance < bestdistance)
best, bestdistance = hazard, distance
best, bestdistance
(root, humanoid, character)
health = humanoid.Health
previous = state.lasthealth
state.lasthealth = health
previous health >= previous
hazard, distance = (root.Position)
(, {
amount = .((previous - health) * ) / ,
health = .(health),
at = (root.Position),
place = state.holdkind,
nearest = hazard hazard.Name,
distance = distance .(distance),
})
settings.autoapple health < settings.applehealth () - state.lastapple >
(character, humanoid)
scantime =
(runservice.Heartbeat, (delta)
() >= scantime
scantime = () +
state.scantags state.()
state.applyscreens state.()
state.applylab state.()
character, root, humanoid = ()
character
state.lasthealth =
state.hold, state.holdkind = ,
() >= state.nextcompute
state.nextcompute = () +
state.hold, state.holdkind = (root)
(root, humanoid, character)
state.hold
state.holdkind ==
(root, state.hold)
(root, state.hold, delta)
settings.fly
(root, humanoid, delta)
(root, humanoid)
settings.waterwalk
(root)
)
(runservice.Stepped, ()
character = localplayer.Character
ghost = settings.noclip state.hold ~=
character ( ghost (state.collide) == )
_, part (character:())
part:()
ghost
part.CanCollide
state.collide[part] =
part.CanCollide =
state.collide[part]
state.collide[part] =
part.CanCollide =
)
(character)
state.lasthealth =
.(state.collide)
humanoid = character:(, )
humanoid
humanoid:(.HumanoidStateType.FallingDown, settings.antifling)
humanoid:(.HumanoidStateType.Ragdoll, settings.antifling)
(instance)
settings.antifling moverclasses[instance.ClassName] .(instance.Name, , ) ~= instance:()
(, { class = instance.ClassName, name = instance.Name, parent = instance.Parent instance.Parent.Name })
.(()
instance.Parent instance:()
)
_, instance (character:())
(instance)
(character.DescendantAdded, check)
(localplayer.CharacterAdded, protectcharacter)
localplayer.Character
.(protectcharacter, localplayer.Character)
(userinputservice.JumpRequest, ()
settings.infjump
character, _, humanoid = ()
character
humanoid:(.HumanoidStateType.Jumping)
)
(localplayer.Idled, ()
settings.antiafk
(()
virtualuser:()
virtualuser:(.())
)
)
()
board = state.board
board
state.board =
board.part.Parent
board.part.CFrame = board.home
board.part.Transparency = board.transparency
board.part.CanCollide = board.collide
()
settings.boardwhich ==
part = collectionservice:()[]
part
screen = playergui:()
part, screen screen.Face .NormalId.Front
model = :()
part = model model:()
part
part, .NormalId.Front
(root)
part, face = ()
part
()
state.board state.board.part ~= part
()
state.board = { part = part, home = part.CFrame, transparency = part.Transparency, collide = part.CanCollide }
part.Transparency =
part.CanCollide =
look = root.CFrame.LookVector * .(, , )
look = look.Magnitude > look.Unit .zAxis
at = root.Position + look * settings.boarddistance + .(, , )
facing = .(at, .(root.Position.X, at.Y, root.Position.Z))
turn = .(.zero, .(face))
part.CFrame = facing * turn:()
(runservice.RenderStepped, ()
settings.boardon
state.boardplaced =
()
settings.boardfollow state.boardplaced
character, root = ()
character
state.boardplaced = (root)
)
(instance)
(part)
part:() part.CanTouch
state.touched[part] =
part.CanTouch =
(instance)
_, part (instance:())
(part)
()
part (state.touched)
part.Parent part.CanTouch =
state.touched[part] =
(instance)
count, touch = ,
_, child (instance:())
count +=
child:() touch +=
count >=
at = (instance)
{
name = instance.Name,
class = instance.ClassName,
parent = instance.Parent instance.Parent.Name,
at = at (at),
size = instance:() (instance.Size) ,
children = count,
touch = touch,
}
(explosion)
settings.antifling
explosion.BlastPressure =
explosion.DestroyJointRadiusPercent =
(, { at = (explosion.Position), radius = .(explosion.BlastRadius) })
scenery = { Mountain = , Cloud = }
(instance)
instance:()
(instance)
state.hazards[instance] scenery[instance.Name]
players:(instance)
(instance:() instance:())
(, (instance))
state.hazards[instance] =
seen = state.seen[instance.Name]
seen
seen.count +=
state.seen[instance.Name] = { count = }
(, (instance))
settings.safetouch (instance)
instance:()
state.hazardlinks[instance] = instance.DescendantAdded:((part)
settings.safetouch part:() part.CanTouch
state.touched[part] =
part.CanTouch =
)
()
hazard (state.hazards)
hazard.Parent
state.hazards[hazard] =
state.hazardlinks[hazard]
state.hazardlinks[hazard]:()
state.hazardlinks[hazard] =
part (state.touched)
part.Parent state.touched[part] =
(.ChildAdded, (child)
child:()
(child)
knownworkspace[child.Name]
.()
child.Parent (child)
)
(sound)
structure = :()
node = sound
node node ~= structure
.(.(node.Name), , , )
node = node.Parent
(sound)
sound:()
path = sound:()
sound.Looped state.soundseen[path]
state.soundseen[path] =
(, { path = path, music = (sound) })
settings.nomusic state.muted[sound] (sound)
state.muted[sound] = sound.Volume
sound.Volume =
()
structure = :()
_, child (structure structure:() {})
(child)
()
sound, volume (state.muted)
sound.Parent
state.muted[sound] =
settings.nomusic
sound.Volume = volume
state.muted[sound] =
sound.Volume >
state.muted[sound] = sound.Volume
sound.Volume =
()
lab = replicatedstorage:()
settings.keeplab
lab
lab.Parent =
state.labmoved =
state.labmoved
placed = :()
_, root = ()
placed root root.Position.X > -
placed.Parent = replicatedstorage
state.labmoved =
state.applylab = applylab
(structure)
(structure.DescendantAdded, checksound)
(structure.ChildAdded, (child)
child:() child.Name == (() child.Name ~= contentmodel.Information.Value)
(child)
)
flood = structure:()
flood (flood)
structure = :()
structure (structure)
(.ChildAdded, (child)
child.Name == (child)
)
_, child (:())
knownworkspace[child.Name]
(child)
(text)
lower = .(text)
_, disaster (disasters)
_, word (disaster.words)
.(lower, word, , )
disaster.key
(remotes.Round.OnClientEvent, (kind, ...)
kind ==
text = ((...))
state.ownwarn[text]
key = (text)
state.bannerclock = ()
state.active[key] =
state.earlyclock state.lead
state.lead = () - state.earlyclock
(, { seconds = .(state.lead * ) / , text = text })
.(state.warnings, , text)
state.warnings[] =
state.nextcompute =
(, { text = text, matched = key, round = (), map = contentmodel.Information.Value })
kind ==
list = ...
count =
_, entry ((list) == list {})
count +=
(entry) == entry.Player == localplayer
state.survived +=
(, { count = count })
latest = state.history[]
latest latest.survivors ==
latest.survivors = count
_, entry ((list) == list {})
(entry) == entry.Player == localplayer
latest.you =
state.historydirty =
kind ==
(, { text = ((...)) })
)
eventremote = replicatedstorage:()
eventremote
(eventremote.OnClientEvent, (kind, amount)
kind ==
state.multi = (amount)
(, { amount = state.multi })
)
(remotes.Award.OnClientEvent, (kind, data)
kind == (data) ==
state.creds += (data.amount)
)
(name)
(settings.earlypopup firesignal)
text = name ..
state.ownwarn[text] =
(firesignal, remotes.Round.OnClientEvent, , text)
(text)
state.earlyname == text
state.earlyname = text
state.bannerclock = ()
state.earlyclock = state.earlyclock ()
piece .(text, )
state.active[(piece)] =
state.nextcompute =
(, { text = text, round = (), map = contentmodel.Information.Value, playing = localplayer:() })
#state.warnings ==
(text)
closedphases = { [] = , [] = , [] = , Paused = }
()
() localplayer:() ==
state.wasplaying =
closedphases[()]
_, player (players:())
tag = player.Character player.Character:()
tag tag:() tag.Value ~= state.staletags[tag] ~= tag.Value
(tag.Value)
state.scantags = scantags
()
labels = {}
_, disaster (disasters)
state.active[disaster.key] .(labels, disaster.label)
state.active.unknown .(labels, )
labels
()
state.roundclock (state.active)
names = ()
.(state.history, , {
map = contentmodel.Information.Value,
disaster = #names > .(names, ) ,
you = state.wasplaying ,
})
state.history[] =
state.historydirty =
state.roundclock =
state.wasplaying =
counts = {}
name, seen (state.seen)
counts[name] = seen.count
(counts)
(, { counts = counts })
screen (state.hiddenscreens)
screen.Name ~=
state.hiddenscreens[screen] =
.(state.seen)
.(state.active)
.(state.warnings)
.(state.staletags)
.(state.ownwarn)
_, player (players:())
tag = player.Character player.Character:()
tag tag:()
state.staletags[tag] = tag.Value
state.earlyname, state.earlyclock, state.lead = , ,
state.multi =
state.cover =
state.nextcompute =
(replicators.Round:(), ()
round = ()
(, { state = round, map = contentmodel.Information.Value })
round ==
state.roundclock = ()
closedphases[round]
()
()
)
(contentmodel.Status.Changed, ()
(, { text = contentmodel.Status.Value })
)
screennames = { , , }
()
_, name (screennames)
screen = playergui:(name)
screen screen:()
settings.noflash screen.Enabled
state.hiddenscreens[screen] =
screen.Enabled =
settings.noflash state.hiddenscreens[screen]
state.hiddenscreens[screen] =
screen.Enabled =
state.applyscreens = applyscreens
(playergui.ChildAdded, applyscreens)
()
settings.fullbright
state.light
state.light = {
Ambient = lighting.Ambient,
OutdoorAmbient = lighting.OutdoorAmbient,
Brightness = lighting.Brightness,
GlobalShadows = lighting.GlobalShadows,
}
lighting.Ambient = .(, , )
lighting.OutdoorAmbient = .(, , )
lighting.Brightness =
lighting.GlobalShadows =
state.light
key, value (state.light)
lighting[key] = value
state.light =
settings.nofog
state.fogend
state.fogend, state.fogstart = lighting.FogEnd, lighting.FogStart
lighting.FogEnd, lighting.FogStart = ,
_, child (lighting:())
child:() child.Density >
state.fog[child] = child.Density
child.Density =
state.fogend
lighting.FogEnd, lighting.FogStart = state.fogend, state.fogstart
state.fogend, state.fogstart = ,
atmosphere, density (state.fog)
atmosphere.Density = density
state.fog[atmosphere] =
()
()
character, _, humanoid = ()
character
settings.speedon
humanoid.WalkSpeed = settings.speed
state.speedset
humanoid.WalkSpeed =
state.speedset = settings.speedon
settings.jumpon
state.jumpdefault
state.jumpdefault = { use = humanoid.UseJumpPower, power = humanoid.JumpPower }
humanoid.UseJumpPower =
humanoid.JumpPower = settings.jump
state.jumpset state.jumpdefault
humanoid.UseJumpPower = state.jumpdefault.use
humanoid.JumpPower = state.jumpdefault.power
state.jumpdefault =
state.jumpset = settings.jumpon
palette = {
back = .(, , ),
panel = .(, , ),
row = .(, , ),
accent = .(, , ),
text = .(, , ),
dim = .(, , ),
= .(, , ),
}
guiparent = (gethui ()) playergui
old = guiparent:()
old old:()
(class, props, parent)
instance = .(class)
key, value (props)
instance[key] = value
instance.Parent = parent
instance
(instance, radius)
(, { CornerRadius = .(, radius ) }, instance)
instance
gui = (, { Name = , ResetOnSpawn = , IgnoreGuiInset = , DisplayOrder = , ZIndexBehavior = .ZIndexBehavior.Sibling }, guiparent)
gui:(, build)
banner = ((, {
AnchorPoint = .(, ),
Position = .(, , , ),
Size = .(, , , ),
BackgroundColor3 = palette.back,
BackgroundTransparency = ,
TextColor3 = palette.warn,
Font = .Font.GothamBold,
TextSize = ,
Text = ,
Visible = ,
}, gui))
window = ((, {
Position = .(, , , ),
Size = .(, , , ),
BackgroundColor3 = palette.back,
BorderSizePixel = ,
Active = ,
}, gui), )
(, { Color = palette.accent, Transparency = }, window)
header = (, { Size = .(, , , ), BackgroundTransparency = }, window)
(, {
Position = .(, , , ),
Size = .(, -, , ),
BackgroundTransparency = ,
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = palette.text,
TextXAlignment = .TextXAlignment.Left,
Text = ,
}, header)
closebutton = ((, {
AnchorPoint = .(, ),
Position = .(, -, , ),
Size = .(, , , ),
BackgroundColor3 = palette.row,
TextColor3 = palette.dim,
Font = .Font.GothamMedium,
TextSize = ,
Text = ,
AutoButtonColor = ,
}, header))
hidebutton = ((, {
AnchorPoint = .(, ),
Position = .(, -, , ),
Size = .(, , , ),
BackgroundColor3 = palette.row,
TextColor3 = palette.dim,
Font = .Font.GothamMedium,
TextSize = ,
Text = ,
AutoButtonColor = ,
}, header))
showbutton = ((, {
Position = .(, , , ),
Size = .(, , , ),
BackgroundColor3 = palette.back,
TextColor3 = palette.accent,
Font = .Font.GothamBold,
TextSize = ,
Text = ,
AutoButtonColor = ,
Visible = ,
}, gui))
(visible)
window.Visible = visible
showbutton.Visible = visible
(hidebutton.MouseButton1Click, () () )
(showbutton.MouseButton1Click, () () )
()
camera = .CurrentCamera
height = camera camera.ViewportSize.Y
window.Size = .(, , , .(height - , , ))
()
.CurrentCamera
(.CurrentCamera:(), fitwindow)
tabbar = (, { Position = .(, , , ), Size = .(, -, , ), BackgroundTransparency = }, window)
(, { FillDirection = .FillDirection.Horizontal, Padding = .(, ) }, tabbar)
pagehost = (, { Position = .(, , , ), Size = .(, -, , -), BackgroundTransparency = }, window)
pages, tabs = {}, {}
(name)
key, page (pages)
page.Visible = key == name
tabs[key].BackgroundColor3 = key == name palette.accent palette.row
tabs[key].TextColor3 = key == name palette.text palette.dim
(name, width)
tab = ((, {
Size = .(width, -, , ),
BackgroundColor3 = palette.row,
TextColor3 = palette.dim,
Font = .Font.GothamMedium,
TextSize = ,
Text = name,
AutoButtonColor = ,
}, tabbar))
page = (, {
Size = .(, , , ),
BackgroundTransparency = ,
BorderSizePixel = ,
ScrollBarThickness = ,
ScrollBarImageColor3 = palette.accent,
AutomaticCanvasSize = .AutomaticSize.Y,
CanvasSize = .(),
Visible = ,
}, pagehost)
(, { Padding = .(, ), SortOrder = .SortOrder.LayoutOrder }, page)
pages[name], tabs[name] = page, tab
(tab.MouseButton1Click, () (name) )
page
(page, height)
((, {
Size = .(, -, , height ),
BackgroundColor3 = palette.row,
BorderSizePixel = ,
LayoutOrder = #page:(),
}, page))
(row, text, width)
(, {
Position = .(, , , ),
Size = .(, -(width ), , ),
BackgroundTransparency = ,
Font = .Font.Gotham,
TextSize = ,
TextColor3 = palette.text,
TextXAlignment = .TextXAlignment.Left,
Text = text,
}, row)
(page, text)
(, {
Size = .(, -, , ),
BackgroundTransparency = ,
Font = .Font.GothamBold,
TextSize = ,
TextColor3 = palette.accent,
TextXAlignment = .TextXAlignment.Left,
Text = text,
LayoutOrder = #page:(),
}, page)
(page, text, key, onchange)
row = (page)
(row, text, )
button = ((, {
AnchorPoint = .(, ),
Position = .(, -, , ),
Size = .(, , , ),
Font = .Font.GothamBold,
TextSize = ,
AutoButtonColor = ,
}, row))
()
button.Text = settings[key]
button.BackgroundColor3 = settings[key] palette.accent palette.panel
button.TextColor3 = settings[key] palette.text palette.dim
(button.MouseButton1Click, ()
settings[key] = settings[key]
()
()
onchange (settings[key])
)
()
(page, text, key, step, low, high)
row = (page)
(row, text, )
(label, x, change)
instance = ((, {
AnchorPoint = .(, ),
Position = .(, x, , ),
Size = .(, , , ),
BackgroundColor3 = palette.panel,
TextColor3 = palette.text,
Font = .Font.GothamBold,
TextSize = ,
Text = label,
AutoButtonColor = ,
}, row))
(instance.MouseButton1Click, change)
value = (, {
AnchorPoint = .(, ),
Position = .(, -, , ),
Size = .(, , , ),
BackgroundTransparency = ,
TextColor3 = palette.text,
Font = .Font.GothamMedium,
TextSize = ,
Text = (settings[key]),
}, row)
(by)
settings[key] = .(settings[key] + by, low, high)
value.Text = (settings[key])
()
(, -, () (step) )
(, -, () (-step) )
(page, text, callback)
row = ((, {
Size = .(, -, , ),
BackgroundColor3 = palette.panel,
TextColor3 = palette.text,
Font = .Font.GothamMedium,
TextSize = ,
Text = text,
AutoButtonColor = ,
LayoutOrder = #page:(),
}, page))
(row.MouseButton1Click, () (row) )
row
(page, height)
row = (page, height)
label = (, {
Position = .(, , , ),
Size = .(, -, , -),
BackgroundTransparency = ,
Font = .Font.Gotham,
TextSize = ,
TextColor3 = palette.text,
TextXAlignment = .TextXAlignment.Left,
TextYAlignment = .TextYAlignment.Top,
TextWrapped = ,
RichText = ,
Text = ,
}, row)
label
(position)
character, root = ()
character
character:(.(position))
root.AssemblyLinearVelocity = .zero
survive = (, )
move = (, )
round = (, )
history = (, )
recon = (, )
(survive, )
statusinfo = (survive, )
(survive, )
(survive, , )
(survive, , )
(survive, , )
(survive, , , , , )
(survive, )
(survive, , , () state.nextcompute = )
modebutton
modebutton = (survive, , ()
settings.mode = settings.mode == settings.mode == settings.mode == settings.mode ==
modebutton.Text = .. settings.mode
state.cover =
state.nextcompute =
()
)
modebutton.Text = .. settings.mode
(survive, , (button)
state.manualhold = state.manualhold
state.nextcompute =
button.Text = .. (state.manualhold )
)
(survive, , , , , )
(survive, , , , , )
(survive, , , , , )
(survive, )
spotinfo = (survive, )
()
spot = ()
spotinfo.Text = spot .(, spot.X, spot.Y, spot.Z)
()
(survive, , ()
character, root = ()
character
position = root.Position
settings.spot = { position.X, position.Y, position.Z }
settings.mode =
modebutton.Text =
state.nextcompute =
()
()
)
(survive, , ()
settings.spot = .(lobbyspot)
settings.mode =
modebutton.Text =
state.nextcompute =
()
()
)
(survive, , ()
() (())
)
(survive, , , () state.nextcompute = )
(survive, )
(survive, , )
(survive, , , , , )
(survive, , , ()
character = localplayer.Character
humanoid = character character:()
humanoid
humanoid:(.HumanoidStateType.FallingDown, settings.antifling)
humanoid:(.HumanoidStateType.Ragdoll, settings.antifling)
)
(survive, , )
(survive, , )
(survive, , , , , )
(survive, )
(survive, , , (enabled)
enabled
hazard (state.hazards)
hazard.Parent (hazard)
()
)
(survive, , )
(move, )
(move, , )
(move, , , , , )
(move, , )
(move, , , , , )
(move, , )
(move, , )
(move, , , , , )
(move, , )
(move, )
(move, , )
(move, , )
(move, , )
(move, , )
(move, , , (enabled)
enabled () ()
)
(move, , )
(move, )
(move, , )
(round, )
roundinfo = (round, )
(round, )
votebuttons = {}
refreshvotes
index = ,
votebuttons[index] = (round, , (button)
remotes.Compass:(, index)
.(, ()
counted = replicators.Compass:((localplayer.UserId)) ~=
(, { choice = index, counted = counted })
button.Text = counted
.(, refreshvotes)
)
)
(round, , ()
remotes.Compass:()
)
(round, )
(round, , ()
spawns = :()
spot = spawns spawns:()
(spot spot.Position + .(, , ) .(-, , ))
)
(round, , ()
center = playarea.center
hit = :(.(center.X, , center.Z), .(, -, ))
(.(center.X, hit hit.Position.Y + , center.Z))
)
(round, , ()
structure = :()
structure
targets = {}
local current = structure:FindFirstChild(contentmodel.Information.Value)
if current then
table.insert(targets, current)
else
for _, child in ipairs(structure:GetChildren()) do
if child:IsA('Model') then table.insert(targets, child) end
end
end
local island = workspace:FindFirstChild('Island')
if island then table.insert(targets, island) end
local params = RaycastParams.new()
params.FilterType = Enum.RaycastFilterType.Include
params.FilterDescendantsInstances = targets
local best
for x = playarea.low.X, playarea.high.X, 10 do
for z = playarea.low.Z, playarea.high.Z, 10 do
local hit = workspace:Raycast(Vector3.new(x, 400, z), Vector3.new(0, -400, 0), params)
if hit and (not best or hit.Position.Y > best.Y) then
best = hit.Position
end
end
end
if best then teleport(best + Vector3.new(0, 4, 0)) end
end)
addbutton(round, 'Nearest covered spot', function()
local character, root = getparts()
if not character then return end
local spot = coverspot(root)
if spot then teleport(spot) end
end)
refreshvotes = function()
local choices = string.split(replicators.Compass:GetAttribute('Choices') or '', ', ')
for index, button in ipairs(votebuttons) do
local name = choices[index]
button.Text = name and #name > 0 and ('Vote ' .. name) or 'No choice yet'
end
end
bind(replicators.Compass:GetAttributeChangedSignal('Choices'), refreshvotes)
refreshvotes()
addsection(round, 'LEADERBOARD')
local boardbutton
boardbutton = addbutton(round, '', function()
settings.boardwhich = settings.boardwhich == 'top10' and 'items' or 'top10'
boardbutton.Text = 'Board: ' .. (settings.boardwhich == 'top10' and 'Top 10 survivors' or 'Top avatar items')
releaseboard()
state.boardplaced = false
savesettings()
end)
boardbutton.Text = 'Board: ' .. (settings.boardwhich == 'top10' and 'Top 10 survivors' or 'Top avatar items')
addtoggle(round, 'Bring its screen in front of me', 'boardon')
addtoggle(round, 'Keep following me', 'boardfollow')
addstepper(round, 'Distance', 'boarddistance', 2, 6, 40)
addbutton(round, 'Place it here again', function()
state.boardplaced = false
end)
addsection(round, 'PLAYERS')
local function otherplayers()
local list = {}
for _, player in ipairs(players:GetPlayers()) do
if player ~= localplayer and player.Character and player.Character:FindFirstChildOfClass('Humanoid') then
table.insert(list, player)
end
end
return list
end
local spectatebutton
spectatebutton = addbutton(round, 'Spectate next player', function()
local list = otherplayers()
if #list == 0 then return end
state.watching = (state.watching or 0) % #list + 1
local target = list[state.watching]
state.watched = target
workspace.CurrentCamera.CameraSubject = target.Character:FindFirstChildOfClass('Humanoid')
spectatebutton.Text = 'Spectating ' .. target.Name
end)
addbutton(round, 'Stop spectating', function()
local _, _, humanoid = getparts()
state.watched, state.watching = nil, nil
if humanoid then workspace.CurrentCamera.CameraSubject = humanoid end
spectatebutton.Text = 'Spectate next player'
end)
addbutton(round, 'Teleport to spectated player', function()
local target = state.watched
local root = target and target.Character and target.Character:FindFirstChild('HumanoidRootPart')
if root then teleport(root.Position + Vector3.new(0, 4, 0)) end
end)
addsection(history, 'THIS SESSION')
local historyinfo = addinfo(history, 26)
local historyrows = {}
for index = 1, 20 do
historyrows[index] = addinfo(history, 44)
historyrows[index].Parent.Visible = false
end
local function refreshhistory()
if not state.historydirty then return end
state.historydirty = false
local total = #state.history
historyinfo.Text = total == 0 and 'No finished rounds yet.' or (total .. ' rounds, ' .. state.survived .. ' survived')
for index, label in ipairs(historyrows) do
local entry = state.history[index]
label.Parent.Visible = entry ~= nil
if entry then
local survivors = entry.survivors and (entry.survivors .. ' survived') or 'survivors unknown'
label.Text = '<b>' .. entry.map .. '</b> ' .. entry.disaster .. '\n' .. survivors .. ', ' .. entry.you
end
end
end
addsection(recon, 'DISASTER LOG')
addtoggle(recon, 'Record disasters', 'recon')
local reconinfo = addinfo(recon, 60)
addbutton(recon, 'Save log to file', function(button)
button.Text = savelog() and 'Saved to the LunaDev folder' or 'Saving is not available'
task.delay(2, function() button.Text = 'Save log to file' end)
end)
addbutton(recon, 'Copy log', function(button)
if setclipboard then
setclipboard(httpservice:JSONEncode(state.log))
button.Text = 'Copied'
task.delay(2, function() button.Text = 'Copy log' end)
end
end)
addbutton(recon, 'Clear log', function()
table.clear(state.log)
end)
showpage('Survive')
local dragging, dragstart, windowstart
bind(header.InputBegan, function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging, dragstart, windowstart = true, input.Position, window.Position
end
end)
bind(userinputservice.InputChanged, function(input)
if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
local offset = input.Position - dragstart
window.Position = UDim2.new(windowstart.X.Scale, windowstart.X.Offset + offset.X, windowstart.Y.Scale, windowstart.Y.Offset + offset.Y)
end
end)
bind(userinputservice.InputEnded, function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = false
end
end)
bind(userinputservice.InputBegan, function(input, processed)
if not processed and input.KeyCode == Enum.KeyCode.RightControl then
setwindow(not window.Visible)
end
end)
local highlights = {}
for index = 1, 20 do
highlights[index] = make('Highlight', {
FillColor = palette.warn,
OutlineColor = palette.warn,
FillTransparency = 0.7,
OutlineTransparency = 0.1,
DepthMode = Enum.HighlightDepthMode.AlwaysOnTop,
Enabled = false,
}, gui)
end
local function refreshhighlights()
local _, root = getparts()
local found = {}
if settings.hazardesp and root then
for hazard in pairs(state.hazards) do
local tiny = hazard:IsA('BasePart') and hazard.Size.Magnitude < 3
if not tiny and hazard.Parent and hazard:IsDescendantOf(workspace) then
local at = positionof(hazard)
if at then
table.insert(found, { hazard = hazard, distance = (at - root.Position).Magnitude })
end
end
end
table.sort(found, function(a, b) return a.distance < b.distance end)
end
for index, highlight in ipairs(highlights) do
local entry = found[index]
local hazard = entry and entry.hazard
highlight.Adornee = hazard and (hazard:IsA('PVInstance') and hazard or hazard:FindFirstChildWhichIsA('BasePart', true)) or nil
highlight.Enabled = entry ~= nil
end
end
local function refreshplayeresp()
for player, board in pairs(state.esp) do
if not settings.playeresp or player.Parent ~= players then
board:Destroy()
state.esp[player] = nil
end
end
if not settings.playeresp then return end
for _, player in ipairs(players:GetPlayers()) do
local character = player.Character
local head = character and character:FindFirstChild('Head')
local humanoid = character and character:FindFirstChildOfClass('Humanoid')
if player ~= localplayer and head and humanoid then
local board = state.esp[player]
if not board then
board = make('BillboardGui', {
Size = UDim2.new(0, 160, 0, 18),
StudsOffset = Vector3.new(0, 3, 0),
AlwaysOnTop = true,
}, gui)
make('TextLabel', {
Size = UDim2.new(1, 0, 1, 0),
BackgroundTransparency = 1,
Font = Enum.Font.GothamMedium,
TextSize = 12,
TextStrokeTransparency = 0.5,
}, board)
state.esp[player] = board
end
board.Adornee = head
local label = board:FindFirstChildOfClass('TextLabel')
label.Text = player.Name .. ' ' .. math.floor(humanoid.Health)
label.TextColor3 = player:GetAttribute('Playing') == true and palette.text or palette.dim
end
end
end
local function statusline()
if lasterror then
return '<font color="#ff786e">Error: ' .. string.gsub(lasterror, '[<>&]', ' ') .. '</font>'
end
if settings.boardon and not state.board then
return 'Board not found yet.'
end
if settings.looptp and not savedspot() then
return 'Loop teleport is on, but no spot is saved.'
end
if state.holdkind then
return 'Holding at: ' .. state.holdkind
end
if not settings.autosurvive then
return 'Auto survive is off.'
end
if settings.mode == 'saved' and not savedspot() then
return 'Safe spot is set to saved, but nothing is saved yet. Using sky.'
end
if localplayer:GetAttribute('Playing') ~= true then
return 'Waiting: you are not in the round.'
end
if not next(state.active) then
return 'Waiting: no disaster known yet.'
end
if state.earlyclock and #state.warnings == 0 then
return string.format('Moving to %s in %.0f s.', wantedplace(), math.max(settings.movedelay - (now() - state.earlyclock), 0))
end
return 'Ready.'
end
local function refreshinfo()
statusinfo.Text = statusline()
local labels = activelabels()
local text = #labels > 0 and table.concat(labels, ', ') or 'None yet'
local counting = settings.countdown and #labels > 0 and #state.warnings == 0
local left = counting and state.roundclock and math.max(41 - (now() - state.roundclock), 0)
local starts = '-'
if #state.warnings > 0 then
starts = 'Started'
elseif counting then
starts = left and (left > 0 and ('in ' .. math.ceil(left) .. 's') or 'any moment') or 'soon'
end
local playing = 0
for _, player in ipairs(players:GetPlayers()) do
if player:GetAttribute('Playing') == true then playing += 1 end
end
local place = state.holdkind and ('Holding: ' .. state.holdkind) or (state.manualhold and 'Holding: sky' or 'Free')
roundinfo.Text = table.concat({
'<b>State</b> ' .. tostring(roundstate() or 'unknown') .. ' / ' .. contentmodel.Status.Value,
'<b>Map</b> ' .. contentmodel.Information.Value,
'<b>Next</b> ' .. tostring(replicators.Round:GetAttribute('Next_Map') or '-'),
'<b>Disasters</b> ' .. text .. (state.multi > 0 and (' (multi x' .. state.multi .. ')') or ''),
'<b>Starts</b> ' .. starts,
'<b>Early by</b> ' .. (state.lead and (string.format('%.1f', state.lead) .. 's') or '-'),
'<b>You</b> ' .. place .. (localplayer:GetAttribute('Playing') == true and ', in round' or ', not in round'),
'<b>Players in round</b> ' .. playing,
'<b>Flood level</b> ' .. math.floor(surfacelevel()),
'<b>Session</b> ' .. state.survived .. ' survived, ' .. state.creds .. ' creds',
}, '\n')
reconinfo.Text = #state.log .. ' entries. Leave this on during rounds. It records warnings, new disaster objects and what damaged you.'
local seconds = settings.bannerseconds
banner.Visible = settings.banner and #labels > 0 and (counting or seconds == 0 or (state.bannerclock and now() - state.bannerclock < seconds) or false)
local early = state.lead and (' / early by ' .. string.format('%.1f', state.lead) .. 's') or ''
if counting then
banner.Text = text .. ' ' .. starts
else
banner.Text = #labels > 0 and (text .. ' / ' .. place .. early) or ''
end
end
local running = true
task.spawn(function()
local tick = 0
while running do
tick += 1
pcall(applyvisuals)
pcall(applymovement)
pcall(refreshinfo)
pcall(refreshhistory)
pcall(applymusic)
pcall(refreshplayeresp)
if tick % 2 == 0 then pcall(refreshhighlights) end
if tick % 4 == 0 then pcall(prune) end
if tick % 60 == 0 and state.logdirty then savelog() end
task.wait(0.5)
end
end)
local function unload()
running = false
for _, connection in ipairs(connections) do
connection:Disconnect()
end
table.clear(connections)
if state.watched then
local humanoid = localplayer.Character and localplayer.Character:FindFirstChildOfClass('Humanoid')
if humanoid then workspace.CurrentCamera.CameraSubject = humanoid end
end
for _, link in pairs(state.hazardlinks) do
link:Disconnect()
end
restoretouch()
releaseboard()
settings.nomusic = false
pcall(applymusic)
settings.fullbright, settings.nofog, settings.noflash = false, false, false
pcall(applyvisuals)
local character = localplayer.Character
local humanoid = character and character:FindFirstChildOfClass('Humanoid')
if humanoid then
humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, true)
if state.speedset then humanoid.WalkSpeed = 16 end
if state.jumpdefault then
humanoid.UseJumpPower = state.jumpdefault.use
humanoid.JumpPower = state.jumpdefault.power
end
end
for part in pairs(state.collide) do
if part.Parent then part.CanCollide = true end
end
if state.logdirty then savelog() end
gui:Destroy()
env.luna_forecast_unload = nil
end
env.luna_forecast_unload = unload
bind(closebutton.MouseButton1Click, function()
savesettings()
unload()
end)
pcall(scansounds)
end, function(message)
return debug.traceback(tostring(message), 2)
end)
if not started then
warn('[luna.dev] forecast failed: ' .. tostring(problem))
pcall(function()
game:GetService('StarterGui'):SetCore('SendNotification', {
Title = 'Forecast / Luna.dev',
Text = 'Could not start. See the console.',
Duration = 10,
})
end)
endForecast by Luna.dev is a free and fully open source script for Natural Disaster Survival. No key needed. **Early Disaster Detection** Detects disasters before the game officially announces them Shows which disasters are coming and an estimated countdown Supports multiple disasters at once Shows how early the disaster was detected **Auto Survive** Automatically moves your character to a safe spot when a disaster is detected Smart mode picks between staying above the map and finding cover depending on the disaster Choose between Smart, Saved Spot, Sky, Cover or Under the Map Save your own safe spot or use the included lobby spot Adjust movement delay, hover height and glide speed **Survival** Soft landing Anti fling and ragdoll Walk on water and stay above floods Automatically eat your apple when hurt Ignore disaster object touches Disaster object ESP **Player** Fly Noclip Infinite jump Walk speed Jump power Player ESP with names and health Anti AFK Spectate players **Teleports** Lobby Map centre Highest point on the map Nearest covered spot Saved location Spectated player **Visuals** Full bright No fog or storm haze Remove disaster screen effec

Universal