Run it
Copy the script and paste it into your executor.
Players = :()
TweenService = :()
Lighting = :()
UserInputService = :()
RunService = :()
GuiService = :()
player = Players.LocalPlayer
playerGui = player:()
camera = .CurrentCamera
DESTROY_KEY = .KeyCode.P
STEP_DISTANCE_REQUIRED =
BASE_HEALTH =
BASE_STAMINA =
BASE_REGEN =
BASE_REGEN_DELAY =
SANDEVISTAN_START_COST =
SANDEVISTAN_DRAIN =
SANDEVISTAN_MAX_TIME =
IMPLANT_TIME =
IMPLANT_INJURY_CHANCE =
IMPLANT_INJURY_DAMAGE =
IMPLANT_INJURY_CAN_KILL =
GUN_BASE_AMMO =
GUN_BASE_RELOAD =
GUN_KNOCKBACK =
GUN_FIRE_DELAY =
STEP_DROP_CHANCE =
BLUEPRINT_DISCOVERY_CHANCE =
RARITY_ORDER = { , , , , , }
RARITY = {
Common = { Rank = , Name = , Color = .(, , ), PriceMult = , ExtraLevels = , MasteryMult = },
Uncommon = { Rank = , Name = , Color = .(, , ), PriceMult = , ExtraLevels = , MasteryMult = },
Rare = { Rank = , Name = , Color = .(, , ), PriceMult = , ExtraLevels = , MasteryMult = },
Epic = { Rank = , Name = , Color = .(, , ), PriceMult = , ExtraLevels = , MasteryMult = },
Legendary = { Rank = , Name = , Color = .(, , ), PriceMult = , ExtraLevels = , MasteryMult = },
Iconic = { Rank = , Name = , Color = .(, , ), PriceMult = , ExtraLevels = , MasteryMult = },
}
MASTERY_BASE = { , , , , }
MATERIALS = {
{ Id = , Name = , Rarity = , Currency = , Price = , Qty = , DropWeight = },
{ Id = , Name = , Rarity = , Currency = , Price = , Qty = , DropWeight = },
{ Id = , Name = , Rarity = , Currency = , Price = , Qty = , DropWeight = },
{ Id = , Name = , Rarity = , Currency = , Price = , Qty = , DropWeight = },
{ Id = , Name = , Rarity = , Currency = , Price = , Qty = , DropWeight = },
{ Id = , Name = , Rarity = , Currency = , Price = , Qty = , DropWeight = },
{ Id = , Name = , Rarity = , Currency = , Price = , Qty = , DropWeight = },
{ Id = , Name = , Rarity = , DropWeight = },
{ Id = , Name = , Rarity = , DropWeight = },
}
MAT_BY_ID = {}
_, m (MATERIALS) MAT_BY_ID[m.Id] = m
(def)
r = RARITY[def.Rarity]
def.Type =
def.Eddies = .(def.Base * r.PriceMult)
def.Blueprint = r.Rank >=
def.ShopMats = {}
m, n (def.Recipe) def.ShopMats[m] = .(n * )
def
ITEMS = {
{
Id = , Name = , Type = , Category = , Zone = , Rarity = , Hold = ,
Key = .KeyCode.G, KeyText = , Cost = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Special = ,
Desc = ,
},
{
Id = , Name = , Type = , Category = , Zone = , Rarity = ,
Key = .KeyCode.F, KeyText = , Cost = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Special = ,
Desc = ,
},
{
Id = , Name = , Type = , Category = , Zone = , Rarity = ,
Key = .KeyCode.E, KeyText = , Cost = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Special = ,
Desc = ,
},
{
Id = , Name = , Type = , Category = , Zone = , Rarity = ,
Key = .KeyCode.Q, KeyText = , Cost = , Cooldown = , StaminaCost = SANDEVISTAN_START_COST,
Materials = { , , , , },
Special = ,
Desc = ,
},
{
Id = , Name = , Type = , Category = , Zone = , Passive = , Rarity = ,
Cost = ,
Materials = { , , , , },
Special = ,
Desc = ,
},
{
Id = , Name = , Type = , Cost = , Rarity = ,
Desc = ,
},
{
Id = , Name = , Type = , Cost = , Rarity = ,
Desc = ,
},
{
Id = , Name = , Short = , Category = , Zone = , Rarity = , Base = ,
Key = .KeyCode.H, KeyText = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Recipe = { ScrapMetal = , CopperWiring = , TitaniumAlloy = , HydraulicComponents = },
Special = ,
Desc = ,
},
{
Id = , Name = , Short = , Category = , Zone = , Rarity = , Base = ,
Key = .KeyCode.X, KeyText = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Recipe = { TitaniumAlloy = , HydraulicComponents = , NeuralProcessor = , QuantumCircuit = },
Special = ,
Desc = ,
},
{
Id = , Name = , Short = , Category = , Zone = , Rarity = , Base = ,
Key = .KeyCode.Z, KeyText = , Hold = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Recipe = { TitaniumAlloy = , HydraulicComponents = , QuantumCircuit = , ExperimentalCore = },
Special = ,
Desc = ,
},
{
Id = , Name = , Short = , Category = , Zone = , Rarity = , Base = ,
Key = .KeyCode.C, KeyText = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Recipe = { TitaniumAlloy = , CopperWiring = , NeuralProcessor = , QuantumCircuit = },
Special = ,
Desc = ,
},
{
Id = , Name = , Short = , Category = , Zone = , Rarity = , Base = ,
Key = .KeyCode.B, KeyText = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Recipe = { TitaniumAlloy = , HydraulicComponents = , QuantumCircuit = , ExperimentalCore = },
Special = ,
Desc = ,
},
{
Id = , Name = , Short = , Category = , Zone = , Rarity = , Base = ,
Key = .KeyCode.V, KeyText = , Toggle = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Recipe = { ScrapMetal = , CopperWiring = , TitaniumAlloy = , HydraulicComponents = },
Special = ,
Desc = ,
},
{
Id = , Name = , Category = , Zone = , Rarity = , Base = , Passive = ,
Materials = { , , , , },
Recipe = { TitaniumAlloy = , HydraulicComponents = , NeuralProcessor = , QuantumCircuit = },
Special = ,
Desc = ,
},
{
Id = , Name = , Category = , Zone = , Rarity = , Base = , Passive = ,
Materials = { , , , , },
Recipe = { ScrapMetal = , CopperWiring = , HydraulicComponents = , TitaniumAlloy = },
Special = ,
Desc = ,
},
{
Id = , Name = , Short = , Category = , Zone = , Rarity = , Base = ,
Key = .KeyCode.T, KeyText = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Recipe = { NeuralProcessor = , SyntheticOxygenCells = , QuantumCircuit = , ExperimentalCore = },
Special = ,
Desc = ,
},
{
Id = , Name = , Category = , Zone = , Rarity = , Base = , Passive = ,
Materials = { , , , , },
Recipe = { SyntheticOxygenCells = , CopperWiring = , TitaniumAlloy = , NeuralProcessor = },
Special = ,
Desc = ,
},
{
Id = , Name = , Short = , Category = , Zone = , Rarity = , Base = ,
Key = .KeyCode.N, KeyText = , Cooldown = , StaminaCost = ,
Materials = { , , , , },
Recipe = { ScrapMetal = , CopperWiring = , TitaniumAlloy = },
Special = ,
Desc = ,
},
}
ITEM_BY_ID = {}
ACTIVE_CYBER = {}
CRAFTABLE = {}
_, it (ITEMS)
ITEM_BY_ID[it.Id] = it
it.Type == it.Passive .(ACTIVE_CYBER, it)
it.Recipe .(CRAFTABLE, it)
UPGRADES = {
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
{ Id = , Item = , Name = , Desc = , Max = , Cost = },
}
SLOT_LAYOUT = {
Left = {
{ Name = , Slots = }, { Name = , Slots = }, { Name = , Slots = },
{ Name = , Slots = }, { Name = , Slots = },
},
Right = {
{ Name = , Slots = }, { Name = , Slots = }, { Name = , Slots = },
{ Name = , Slots = }, { Name = , Slots = },
},
}
C = {
RED = .(, , ), SLOT = .(, , ), SLOTLINE = .(, , ),
ORANGE = .(, , ), CYAN = .(, , ), YELLOW = .(, , ),
GREEN = .(, , ),
}
(r) (RARITY[r ] RARITY.Common).Color
(n)
s = (.(n))
out = s:():(, ):()
out:(, ) == out = out:()
out
(x) .(x + )
(sec)
sec = .(, .(sec))
.(, .(sec / ), .(sec / ) % , sec % )
(n) { Type = , Target = n, Text = .. (n) .. }
(n) { Type = , Target = n, Text = .. (n) .. }
(id, n) { Type = , Item = id, Target = n, Text = .. ITEM_BY_ID[id].Name .. .. (n) .. }
QUEST_CATEGORIES = {
{ , }, { , }, { , },
{ , }, { , }, { , },
}
QUEST_RESET = { Daily = , Weekly = }
QUESTS = {
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = ,
Objectives = { (), () }, Rewards = { Eddies = , Steps = , Mats = { ScrapMetal = , CopperWiring = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = , Requires = ,
Desc = ,
Objectives = { (), (), (, ) }, Rewards = { Eddies = , Mats = { CopperWiring = , TitaniumAlloy = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = , Requires = ,
Desc = ,
Objectives = { (), (), (, ) }, Rewards = { Eddies = , Mats = { TitaniumAlloy = , ScrapMetal = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = , Requires = ,
Desc = ,
Objectives = { (, ), (, ), () }, Rewards = { Eddies = , Mats = { TitaniumAlloy = , HydraulicComponents = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = , Requires = ,
Desc = ,
Objectives = { (, ), (, ), () },
Rewards = { Eddies = , Mats = { NeuralProcessor = , HydraulicComponents = }, Blueprints = { } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = , Requires = ,
Desc = ,
Objectives = { (), (), (, ), (, ) },
Rewards = { Eddies = , Mats = { QuantumCircuit = , NeuralProcessor = }, Blueprints = { } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { () }, Rewards = { Eddies = , Mats = { ScrapMetal = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (), (, ) }, Rewards = { Eddies = , Mats = { CopperWiring = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (, ) },
Rewards = { Eddies = , Mats = { TitaniumAlloy = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (), (, ) },
Rewards = { Eddies = , Mats = { ScrapMetal = , TitaniumAlloy = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (), (), (, ) },
Rewards = { Eddies = , Mats = { HydraulicComponents = , TitaniumAlloy = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (, ), (, ) },
Rewards = { Eddies = , Mats = { QuantumCircuit = , NeuralProcessor = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = ,
Objectives = { (, ), (, ), () },
Rewards = { Eddies = , Mats = { SyntheticOxygenCells = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (, ), () },
Rewards = { Eddies = , Mats = { HydraulicComponents = , NeuralProcessor = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), () },
Rewards = { Eddies = , Mats = { CopperWiring = , TitaniumAlloy = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (, ) },
Rewards = { Eddies = , Mats = { HydraulicComponents = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), () },
Rewards = { Eddies = , Mats = { QuantumCircuit = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (, ) },
Rewards = { Eddies = , Mats = { QuantumCircuit = , NeuralProcessor = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (), () },
Rewards = { Eddies = , Mats = { ScrapMetal = , HydraulicComponents = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (, ) },
Rewards = { Eddies = , Mats = { NeuralProcessor = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ) }, Rewards = { Eddies = , Mats = { TitaniumAlloy = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ) },
Rewards = { Eddies = , Mats = { NeuralProcessor = , HydraulicComponents = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ) }, Rewards = { Eddies = , Mats = { ScrapMetal = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (, ) },
Rewards = { Eddies = , Mats = { TitaniumAlloy = , HydraulicComponents = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ), (, ) },
Rewards = { Eddies = , Mats = { SyntheticOxygenCells = , QuantumCircuit = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = , Objectives = { (, ) }, Rewards = { Eddies = , Mats = { CopperWiring = } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = ,
Objectives = { (, ), (, ), (, ), (, ), (, ) },
Rewards = { Eddies = , Mats = { QuantumCircuit = , ExperimentalCore = }, Blueprints = { } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = ,
Objectives = { (), (), (, ) },
Rewards = { Eddies = , Mats = { ExperimentalCore = }, Blueprints = { } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = ,
Objectives = { (, ), (, ), (, ) },
Rewards = { Eddies = , Mats = { ExperimentalCore = , QuantumCircuit = }, Blueprints = { } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = ,
Objectives = { (), (), (, ) },
Rewards = { Eddies = , Mats = { QuantumCircuit = }, Blueprints = { } } },
{ Cat = , Id = , Name = , Rarity = , Difficulty = ,
Desc = ,
Objectives = { (), (), (, ), (, ), (, ) },
Rewards = { Eddies = , Mats = { PrototypeChip = , ExperimentalCore = } } },
}
QUEST_BY_ID = {}
_, q (QUESTS) QUEST_BY_ID[q.Id] = q
steps =
eddies =
stepsTaken =
owned, upLevel, cooldowns = {}, {}, {}
matInv, blueprints, usage = {}, {}, {}
questProgress, questClaimed, questDone = {}, {}, {}
_, it (ITEMS)
owned[it.Id] =
usage[it.Id] =
it.Blueprint blueprints[it.Id] =
_, up (UPGRADES) upLevel[up.Id] =
_, it (ACTIVE_CYBER) cooldowns[it.Id] =
_, m (MATERIALS) matInv[m.Id] =
_, q (QUESTS)
questProgress[q.Id] = {}
i = , #q.Objectives questProgress[q.Id][i] =
questClaimed[q.Id], questDone[q.Id] = ,
resetAt = { Daily = .() + QUEST_RESET.Daily, Weekly = .() + QUEST_RESET.Weekly }
equipped, CATEGORY_HAS_ITEMS = {}, {}
_, side (SLOT_LAYOUT)
_, c (side)
equipped[c.Name] = {}
j = , c.Slots equipped[c.Name][j] =
_, it (ITEMS) it.Category CATEGORY_HAS_ITEMS[it.Category] =
wornJacket =
itemHotbar = { , , , , }
selectedSlot =
isSandevistanActive, isDashing, isCannonJumping = , ,
isImplanting, isSlashing, dasherCharging = , ,
isMobility, isThrusting, isGrappling, grappleStop = , , ,
isBoardActive, isSurging = ,
boardMomentum, boardToken, surgeSession, mobToken = , , ,
boardModel =
systemDestroyed =
sandySession, chargeToken = ,
uiDirty, questUiDirty = ,
fallVelMin, jointJumps, lastOxyInject, lastKatana = , , -,
appliedWalkBonus, baseJumpPower, baseJumpHeight = , ,
stamina = BASE_STAMINA
lastStaminaUse =
lastMaxHP, lastMaxStam = BASE_HEALTH, BASE_STAMINA
ammo, reloading, lastShot, gunKick = GUN_BASE_AMMO, , ,
slashPose =
heldGunModel =
autoRotateSuppressed =
character, humanoid, rootPart
baseWalkSpeed =
armRig = {}
rayParams = RaycastParams.()
rayParams.FilterType = .RaycastFilterType.Exclude
mobFolder = :( .. player.UserId)
mobFolder mobFolder:()
mobFolder = .()
mobFolder.Name = .. player.UserId
mobFolder.Parent =
colorCorrection = Lighting:()
colorCorrection
colorCorrection = .()
colorCorrection.Name =
colorCorrection.Enabled =
colorCorrection.Parent = Lighting
trailColors = {
.(, , ), .(, , ), .(, , ), .(, , ),
.(, , ), .(, , ), .(, , ),
}
updateViewportDummy, updateHudAndMenus, updateHotbars, refreshVisualAugments, refreshHeldGun, applyStats
flashStaminaBar, updateStaminaBar, updateAmmoUI
endSandevistan, endDasherCharge, reloadGun
notify, refreshQuestUI
menuOverlay
ACTIVATE = {}
(class, props, parent)
o = .(class)
k, v (props) o[k] = v
parent o.Parent = parent
o
(id) upLevel[id]
(up)
it = ITEM_BY_ID[up.Item]
up.Max + RARITY[(it it.Rarity) ].ExtraLevels
(id)
it = ITEM_BY_ID[id]
it it.Category
_, v (equipped[it.Category]) v == id
(id)
slots = equipped[ITEM_BY_ID[id].Category]
(id)
j = , #slots
slots[j] slots[j] = id
(id)
slots = equipped[ITEM_BY_ID[id].Category]
j = , #slots slots[j] == id slots[j] =
() selectedSlot > itemHotbar[selectedSlot]
() () == systemDestroyed isImplanting
() menuOverlay menuOverlay.Visible
(id, lvl)
it = ITEM_BY_ID[id]
.(MASTERY_BASE[lvl] * RARITY[(it it.Rarity) ].MasteryMult)
(id)
u = usage[id]
lv =
l = , u >= (id, l) lv = l
lv
(id) (id) >=
(id) (id) >=
(id) (id) >=
(id) (id) >=
(id)
l = (id)
+ (l >= ) + (l >= )
(it, lvl)
lvl ==
lvl == it.Special
it.Passive
({ [] = , [] = , [] = })[lvl]
({ [] = , [] = , [] = })[lvl]
()
m = BASE_HEALTH
() m +=
wornJacket m +=
() m += .(( + * ()) * ())
() m += .( * ())
m
()
m = BASE_STAMINA
() m +=
wornJacket m +=
() m += .( * ())
() m += .( * ())
m
()
r = BASE_REGEN
() r *= ( + * ())
() r *= * ()
isSurging r *=
r
()
() ()
BASE_REGEN_DELAY
() () * ()
()
()
+ ( + * ()) * ()
() - * ()
() ( + * ()) * ()
() .(, (( - * ()) * ()))
() ( + * ()) * ()
() ( * ())
() (( + * ()) * ())
() (SANDEVISTAN_DRAIN - * ()) * ()
() (SANDEVISTAN_START_COST * ())
() .(, ( - * ()) * ())
() ( + * ()) * ()
() ( * ())
() GUN_BASE_AMMO + * ()
() GUN_BASE_RELOAD - * ()
() ( + * ()) * ()
() ( + * ()) * ()
() ( * ())
() ( + * ()) * ()
() ( * ())
() .(, - * ()) * ()
() .(, - * ()) * ()
() ( + * ()) * ()
() ( + * ()) * ()
() ( * ())
() .(, - * ()) * ()
() ( + * ()) * ()
() ( * ())
() .(, - * ()) * ()
() ( + * boardMomentum + * ()) * ()
() * ()
() ( * ())
() + * ()
() * ()
() ( * ())
() ( + * ()) * ()
() ( * ())
() .(, + * ())
COST_FN = {
Dasher = dasherCost, LaunchCannon = cannonCost, MantisBlades = mantisCost, Sandevistan = sandyStartCost,
GrappleLauncher = grappleCost, RocketFist = fistCost, DashKatana = katanaCost, RailgunBoots = railCost,
KineticBoard = boardStartCost, OverclockedHeart = surgeCost, MotionScanner = scanCost,
}
(it)
it.Passive it.Type ==
it.Id == .. (()) ..
f = COST_FN[it.Id]
f ()
it.StaminaCost
()
e =
isSandevistanActive e += ()
isBoardActive e += ()
isSurging e += ()
e
() isSandevistanActive isBoardActive isSurging
()
humanoid (isSandevistanActive isDashing isCannonJumping isSlashing dasherCharging isImplanting
isBoardActive isSurging isMobility)
baseWalkSpeed = humanoid.WalkSpeed
()
humanoid humanoid.Parent
isImplanting isDashing isCannonJumping isSlashing dasherCharging
humanoid.WalkSpeed = baseWalkSpeed + ()
(side)
character
side == character:() character:()
character:() character:()
mainGui = (, { Name = , ResetOnSpawn = , ZIndexBehavior = .ZIndexBehavior.Sibling, IgnoreGuiInset = }, playerGui)
(parent, size, pos, borderColor, bgColor, bgTrans)
frame = (, {
Size = size, Position = pos, BackgroundColor3 = bgColor .(, , ),
BackgroundTransparency = bgTrans , BorderSizePixel = ,
}, parent)
stroke = (, {
Color = borderColor .(, , ), Thickness = , ApplyStrokeMode = .ApplyStrokeMode.Border,
}, frame)
frame, stroke
(name, color, z)
(, {
Name = name, Size = .(, , , ), Position = .(, , , -), BackgroundColor3 = color,
BackgroundTransparency = , BorderSizePixel = , ZIndex = z,
}, mainGui)
flashOverlay = (, .(, , ), )
injuryFlash = (, .(, , ), )
surgeOverlay = (, .(, , ), )
scanOverlay = (, .(, , ), )
toastHolder = (, {
Name = , AnchorPoint = .(, ), Position = .(, , , ), Size = .(, , , ),
BackgroundTransparency = , ZIndex = ,
}, mainGui)
(, { Padding = .(, ), SortOrder = .SortOrder.LayoutOrder, HorizontalAlignment = .HorizontalAlignment.Center }, toastHolder)
toastCount =
notify = (text, color)
systemDestroyed toastHolder.Parent
toastCount +=
color = color C.GREEN
lbl = (, {
LayoutOrder = toastCount, Size = .(, , , ), BackgroundColor3 = .(, , ), BackgroundTransparency = ,
BorderSizePixel = , Text = text, TextColor3 = color, Font = .Font.Code, TextSize = , ZIndex = ,
}, toastHolder)
(, { Color = color, Thickness = }, lbl)
labels = {}
_, ch (toastHolder:()) ch:() .(labels, ch)
#labels > labels[]:()
.(, () lbl.Parent lbl:() )
speedContainer = (, {
Name = , Size = .(, , , ), BackgroundTransparency = , ZIndex = , ClipsDescendants = ,
}, mainGui)
(color, life, thick)
systemDestroyed
vp = camera.ViewportSize
diag = .(vp.X * vp.X + vp.Y * vp.Y) /
ang = .() * .pi *
r0 = diag * ( + .() * )
len = diag * ( + .() * )
r1 = r0 + diag *
f = (, {
AnchorPoint = .(, ), BackgroundColor3 = color, BorderSizePixel = , Rotation = .(ang),
Size = .(, len * , , thick), BackgroundTransparency = ,
Position = .(, .(ang) * r0, , .(ang) * r0),
}, speedContainer)
(, { Transparency = NumberSequence.({ NumberSequenceKeypoint.(, ), NumberSequenceKeypoint.(, ) }) }, f)
tw = TweenService:(f, TweenInfo.(life, .EasingStyle.Quad, .EasingDirection.In), {
Position = .(, .(ang) * r1, , .(ang) * r1),
Size = .(, len, , thick), BackgroundTransparency = ,
})
tw:()
tw.Completed:(() f:() )
(count, color, duration)
.(()
_ = , count
systemDestroyed
(color, + .() * , .(, ))
duration > .(duration / count)
)
SKEL_CYAN = .(, , )
skeletonGroup = (, {
Name = , Size = .(, , , ), Position = .(, , , -),
BackgroundColor3 = .(, , ), BackgroundTransparency = , BorderSizePixel = , GroupTransparency = ,
Visible = , ZIndex = ,
}, mainGui)
skelCenter = (, {
Name = , AnchorPoint = .(, ), Position = .(, , , ),
Size = .(, , , ), BackgroundTransparency = ,
}, skeletonGroup)
skelScale = (, {}, skelCenter)
skeletonVertebraStrokes = {}
CX =
rng = Random.()
(cx, cy, len, rot, color, thick)
f = (, {
AnchorPoint = .(, ), Position = .(, cx, , cy), Size = .(, len, , thick),
Rotation = rot, BackgroundColor3 = color, BorderSizePixel = ,
}, skelCenter)
(, { Transparency = NumberSequence.({
NumberSequenceKeypoint.(, ), NumberSequenceKeypoint.(, ), NumberSequenceKeypoint.(, ),
}) }, f)
(y, s, len, ang)
rad = .(ang)
cx = CX + s * + s * .(rad) * len /
cy = y + .(rad) * len /
f = (, {
AnchorPoint = .(, ), Position = .(, cx, , cy), Size = .(, len, , ),
Rotation = s * ang, BackgroundColor3 = SKEL_CYAN, BorderSizePixel = ,
}, skelCenter)
g = (, { Transparency = NumberSequence.({
NumberSequenceKeypoint.(, ), NumberSequenceKeypoint.(, ),
}) }, f)
s < g.Rotation =
fiberColors = {
.(, , ), .(, , ), .(, , ), .(, , ),
}
_, s ({ -, })
_ = ,
(CX + s * rng:(, ), rng:(, ), rng:(, ),
+ rng:(-, ), fiberColors[rng:(, #fiberColors)], rng:(, ))
i = ,
y = + i *
(y, , - i * , + i * )
(y, -, - i * , + i * )
i = ,
y = + i *
w = + i *
isBottom = (i == )
lineColor = isBottom .(, , ) SKEL_CYAN
glow = (, {
AnchorPoint = .(, ), Position = .(, CX, , y), Size = .(, w + , , ),
BackgroundColor3 = SKEL_CYAN, BackgroundTransparency = isBottom , BorderSizePixel = ,
}, skelCenter)
(, { CornerRadius = .(, ) }, glow)
body = (, {
AnchorPoint = .(, ), Position = .(, CX, , y), Size = .(, w, , ),
BackgroundColor3 = .(, , ), BackgroundTransparency = , BorderSizePixel = ,
}, skelCenter)
(, { CornerRadius = .(, ) }, body)
stroke = (, { Color = lineColor, Thickness = }, body)
.(skeletonVertebraStrokes, stroke)
_, s ({ -, })
wing = (, {
AnchorPoint = .(, ), Position = .(, CX + s * (w / + ), , y),
Size = .(, , , ), Rotation = s * , BackgroundColor3 = lineColor, BackgroundTransparency = ,
BorderSizePixel = ,
}, skelCenter)
(, { CornerRadius = .(, ) }, wing)
i <
disc = (, {
AnchorPoint = .(, ), Position = .(, CX, , y + ), Size = .(, w - , , ),
BackgroundColor3 = SKEL_CYAN, BackgroundTransparency = , BorderSizePixel = ,
}, skelCenter)
(, { CornerRadius = .(, ) }, disc)
skeletonToken =
()
systemDestroyed
skeletonToken +=
token = skeletonToken
base = .(camera.ViewportSize.Y / , , )
skeletonGroup.Visible =
skeletonGroup.GroupTransparency =
skelScale.Scale = base *
TweenService:(skeletonGroup, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), { GroupTransparency = }):()
TweenService:(skelScale, TweenInfo.(, .EasingStyle.Back, .EasingDirection.Out), { Scale = base }):()
.(()
_, st (skeletonVertebraStrokes)
token ~= skeletonToken systemDestroyed
st.Color = .(, , )
TweenService:(st, TweenInfo.(), { Color = SKEL_CYAN }):()
.()
)
.(()
.()
_ = ,
token ~= skeletonToken systemDestroyed
skeletonGroup.GroupTransparency = + .() *
.()
token ~= skeletonToken systemDestroyed
fade = TweenService:(skeletonGroup, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.In), { GroupTransparency = })
fade:()
fade.Completed:()
token == skeletonToken skeletonGroup.Visible =
)
()
systemDestroyed
flashOverlay.BackgroundTransparency =
TweenService:(flashOverlay, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), { BackgroundTransparency = }):()
colorCorrection.Enabled =
colorCorrection.TintColor = .(, , )
colorCorrection.Saturation, colorCorrection.Contrast, colorCorrection.Brightness = , ,
TweenService:(colorCorrection, TweenInfo.(), {
TintColor = .(, , ), Brightness = , Saturation = , Contrast = ,
}):()
session = sandySession
.(, ()
systemDestroyed session ~= sandySession isSandevistanActive
TweenService:(colorCorrection, TweenInfo.(), {
TintColor = .(, , ), Brightness = , Saturation = , Contrast = ,
}):()
)
()
(, .(, , ), )
METAL, NEON, PLASTIC, FABRIC = .Material.Metal, .Material.Neon, .Material.SmoothPlastic, .Material.Fabric
(addPart)
WHITE, ORANGE = .(, , ), .(, , )
DARK, STEEL, RED = .(, , ), .(, , ), .(, , )
(, .(, , ), WHITE, METAL, .(, , ))
(, .(, , ), WHITE, METAL, .(, , ))
(, .(, , ), ORANGE, PLASTIC, .(, , ))
(, .(, , ), ORANGE, PLASTIC, .(, -, ))
(, .(, , ), DARK, METAL, .(, -, ))
(, .(, , ), DARK, METAL, .(, -, ))
(, .(, , ), ORANGE, PLASTIC, .(, -, ))
(, .(, , ), ORANGE, PLASTIC, .(, -, ))
(, .(, , ), STEEL, METAL, .(, -, ))
(, .(, , ), ORANGE, NEON, .(, -, ))
(, .(, , ), STEEL, METAL, .(-, -, ))
(, .(, , ), STEEL, METAL, .(, -, ))
(, .(, , ), DARK, METAL, .(, , ))
(, .(, , ), ORANGE, NEON, .(, , ))
_, z ({ -, })
(, .(, , ), RED, NEON, .(, , z))
(, .(, , ), ORANGE, NEON, .(, -, z))
(, .(, , ), ORANGE, NEON, .(, -, z))
(addPart)
GUN, DARKER, STEEL = .(, , ), .(, , ), .(, , )
TUBE, GLOW = .(, , ), .(, , )
Z =
(, .(, , ), DARKER, METAL, .(, , Z))
i = -,
y, taper = i * , - i *
(, .( * taper, , ), GUN, METAL, .(, y, Z + ))
(, .( * taper, , ), STEEL, METAL, .(, y + , Z + ))
(, .( * taper, , ), GLOW, NEON, .(, y - , Z + ))
_, s ({ -, })
(, .( * taper, , ), DARKER, METAL,
.(s * * taper, y - , Z + ) * .(, , s * ))
(, .(, , ), GUN, METAL, .(, , Z + ))
(, .(, , ), GLOW, NEON, .(, , Z + ))
(, .(, , ), GUN, METAL, .(, -, Z + ))
(, .(, , ), GLOW, NEON, .(, -, Z + ))
_, s ({ -, })
(, .(, , ), DARKER, METAL, .(s * , , Z + ) * .(, , -s * ))
tubeCF = .(s * , -, Z + ) * .(, , -s * )
(, .(, , ), TUBE, PLASTIC, tubeCF)
(, .(, , ), GLOW, NEON, tubeCF)
finCF = .(s * , , Z + ) * .(, , -s * )
(, .(, , ), GUN, METAL, finCF)
(, .(, , ), GLOW, NEON, finCF * .(, , ))
(, .(, , ), STEEL, METAL, .(s * , , Z))
(addPart)
WHITE, DARK, STEEL = .(, , ), .(, , ), .(, , )
ORANGE, CYAN = .(, , ), .(, , )
(, .(, , ), DARK, METAL, .(, , -))
(, .(, , ), WHITE, METAL, .(, , -))
(, .(, , ), ORANGE, PLASTIC, .(, , -))
(, .(, , ), DARK, METAL, .(, , ))
(, .(, , ), STEEL, METAL, .(, -, ))
(, .(, , ), ORANGE, PLASTIC, .(, -, ))
(, .(, , ), CYAN, NEON, .(, -, ))
(, .(, , ), ORANGE, PLASTIC, .(, -, ))
(, .(, , ), DARK, METAL, .(, -, -))
_, s ({ -, })
(, .(, , ), DARK, METAL, .(s * , -, ) * .(, , s * ))
(, .(, , ), CYAN, NEON, .(s * , -, ))
(addPart, side)
WHITE, DARK = .(, , ), .(, , )
STEEL, RED = .(, , ), .(, , )
(, .(, , ), DARK, METAL, .(, -, ))
(, .(, , ), WHITE, METAL, .(side * , -, ))
(, .(, , ), RED, NEON, .(side * , -, ))
(, .(, , ), RED, NEON, .(, -, -))
(, .(, , ), STEEL, METAL, .(, -, -))
(, .(, , ), STEEL, METAL, .(, -, -))
(addT, addR, addL)
CREAM, BLACK = .(, , ), .(, , )
YELLOW, ORANGE = .(, , ), .(, , )
(, .(, , ), CREAM, FABRIC, .(, , ))
(, .(, , ), BLACK, FABRIC, .(, -, ))
(, .(, , ), YELLOW, PLASTIC, .(, -, ))
(, .(, , ), BLACK, FABRIC, .(, , ))
(, .(, , ), YELLOW, PLASTIC, .(, , ))
(, .(, , ), BLACK, METAL, .(, , -))
_, s ({ -, })
(, .(, , ), BLACK, FABRIC, .(s * , -, -))
(, .(, , ), YELLOW, PLASTIC, .(s * , , ))
(, .(, , ), BLACK, FABRIC, .(s * , , ))
em = .(, , ) * .(, , .())
(, .(, , ), BLACK, PLASTIC, em)
(, .(, , ), ORANGE, NEON, em * .(, , ))
(, .(, , ), BLACK, PLASTIC, em * .(, , ))
(, .(, , ), YELLOW, PLASTIC, .(, -, ))
_, addArm ({ addR, addL })
(, .(, , ), CREAM, FABRIC, .(, , ))
(, .(, , ), BLACK, FABRIC, .(, , ))
(, .(, , ), ORANGE, PLASTIC, .(, , ))
(, .(, , ), BLACK, FABRIC, CFrame.new(0, -0.55, 0))
addArm("JacketCuffStripe", Vector3.new(1.18, 0.07, 1.18), YELLOW, PLASTIC, CFrame.new(0, -0.38, 0))
end
end
-- PISTOL (relative to right arm; barrel points along arm -Y)
function buildPistolParts(addPart)
local DARK, STEEL, ORANGE = Color3.fromRGB(30, 32, 38), Color3.fromRGB(150, 156, 166), Color3.fromRGB(255, 120, 20)
addPart("GunSlide", Vector3.new(0.3, 1.2, 0.34), DARK, METAL, CFrame.new(0, -1.55, 0))
addPart("GunBarrel", Vector3.new(0.18, 0.35, 0.18), STEEL, METAL, CFrame.new(0, -2.3, 0.02))
addPart("GunStripe", Vector3.new(0.1, 1.0, 0.06), ORANGE, NEON, CFrame.new(0, -1.55, -0.19))
addPart("GunFrame", Vector3.new(0.28, 0.8, 0.28), STEEL, METAL, CFrame.new(0, -1.35, 0.28))
addPart("GunGrip", Vector3.new(0.28, 0.28, 0.6), DARK, METAL, CFrame.new(0, -1.1, 0.5) * CFrame.Angles(math.rad(-15), 0, 0))
addPart("Muzzle", Vector3.new(0.1, 0.1, 0.1), Color3.new(1, 1, 1), PLASTIC, CFrame.new(0, -2.5, 0))
end
-- ===== v3 IMPLANT MODELS =====
local MDARK, MSTEEL = Color3.fromRGB(28, 30, 36), Color3.fromRGB(125, 132, 142)
local MORANGE, MCYAN, MRED = Color3.fromRGB(255, 120, 20), Color3.fromRGB(0, 235, 255), Color3.fromRGB(255, 40, 55)
-- GRAPPLE LAUNCHER: wrist rig on the back of the left forearm (hook fires along arm -Y)
function buildGrappleParts(addPart)
addPart("GrappleBase", Vector3.new(0.5, 1.0, 0.36), MDARK, METAL, CFrame.new(0, -0.1, 0.62))
addPart("GrappleReelDrum", Vector3.new(0.62, 0.3, 0.3), MSTEEL, METAL, CFrame.new(0, 0.3, 0.62))
addPart("GrappleBarrel", Vector3.new(0.24, 0.8, 0.24), MSTEEL, METAL, CFrame.new(0, -0.85, 0.62))
addPart("GrappleRing", Vector3.new(0.34, 0.1, 0.34), MORANGE, PLASTIC, CFrame.new(0, -0.5, 0.62))
addPart("GrappleTip", Vector3.new(0.14, 0.05, 0.14), MORANGE, NEON, CFrame.new(0, -1.27, 0.62))
end
-- ROCKET FIST: gauntlet on the knuckles of the right arm
function buildRocketFistParts(addPart)
addPart("FistGauntlet", Vector3.new(1.22, 0.8, 1.22), MDARK, METAL, CFrame.new(0, -0.7, 0))
addPart("FistPlate", Vector3.new(1.26, 0.14, 1.26), MORANGE, PLASTIC, CFrame.new(0, -0.3, 0))
addPart("FistKnuckle", Vector3.new(1.0, 0.18, 0.3), MORANGE, NEON, CFrame.new(0, -1.1, -0.55))
addPart("FistNozzle", Vector3.new(0.5, 0.5, 0.5), MSTEEL, METAL, CFrame.new(0, -0.5, 0.62))
addPart("FistNozzleGlow", Vector3.new(0.36, 0.06, 0.36), MRED, NEON, CFrame.new(0, -0.77, 0.62))
end
-- SHOULDER THRUSTERS: jet pods on both shoulders (torso relative)
function buildThrusterParts(addPart)
for _, s in ipairs({ -1, 1 }) do
addPart("ThrustPod", Vector3.new(0.7, 0.9, 0.9), MDARK, METAL, CFrame.new(s * 1.2, 1.05, 0.1))
addPart("ThrustCollar", Vector3.new(0.78, 0.1, 0.98), MORANGE, PLASTIC, CFrame.new(s * 1.2, 1.5, 0.1))
addPart("ThrustNozzle", Vector3.new(0.5, 0.3, 0.5), MSTEEL, METAL, CFrame.new(s * 1.2, 0.5, 0.1))
addPart("ThrustGlow", Vector3.new(0.36, 0.06, 0.36), MCYAN, NEON, CFrame.new(s * 1.2, 0.33, 0.1))
addPart("ThrustStrut", Vector3.new(0.16, 0.8, 0.16), MSTEEL, METAL, CFrame.new(s * 0.95, 0.9, 0.55))
end
end
-- DASH KATANA: sheathed on the left hip (torso relative)
function buildKatanaParts(addPart)
local base = CFrame.new(-1.0, -0.2, 0.62) * CFrame.Angles(0, 0, math.rad(25))
addPart("KatanaBelt", Vector3.new(2.1, 0.2, 1.1), MDARK, FABRIC, CFrame.new(0, -0.85, 0))
addPart("KatanaSheath", Vector3.new(0.16, 2.6, 0.2), MDARK, METAL, base)
addPart("KatanaSheathGlow", Vector3.new(0.05, 2.0, 0.22), MRED, NEON, base * CFrame.new(0.09, -0.1, 0))
addPart("KatanaGuard", Vector3.new(0.42, 0.08, 0.3), Color3.fromRGB(255, 196, 40), METAL, base * CFrame.new(0, 1.35, 0))
addPart("KatanaHilt", Vector3.new(0.14, 0.7, 0.16), MRED, FABRIC, base * CFrame.new(0, 1.75, 0))
end
-- RAILGUN BOOTS (applied to each leg)
function buildRailBootParts(addPart)
addPart("RailBoot", Vector3.new(1.16, 0.8, 1.36), MDARK, METAL, CFrame.new(0, -0.8, -0.1))
addPart("RailCoil", Vector3.new(1.2, 0.1, 1.4), MORANGE, PLASTIC, CFrame.new(0, -0.45, -0.1))
addPart("RailStripe", Vector3.new(0.2, 0.6, 0.06), MRED, NEON, CFrame.new(0, -0.8, -0.8))
addPart("RailCannon", Vector3.new(0.45, 0.45, 1.0), MSTEEL, METAL, CFrame.new(0, -0.75, 0.85))
addPart("RailMuzzle", Vector3.new(0.3, 0.3, 0.06), MRED, NEON, CFrame.new(0, -0.75, 1.36))
end
-- KINETIC BOARD hover emitter pad under each foot
function buildBoardEmitterParts(addPart)
addPart("BoardPad", Vector3.new(1.0, 0.1, 1.1), MDARK, METAL, CFrame.new(0, -1.02, 0))
addPart("BoardPadGlow", Vector3.new(0.8, 0.04, 0.9), MCYAN, NEON, CFrame.new(0, -1.07, 0))
end
-- TITANIUM SKELETON (torso + both arms)
function buildTitaniumParts(addT, addR, addL)
for i, y in ipairs({ 0.7, 0.35, 0.0, -0.35 }) do
addT("TiRib", Vector3.new(1.8 - i * 0.1, 0.09, 0.06), MSTEEL, METAL, CFrame.new(0, y, -0.53))
end
addT("TiSpine", Vector3.new(0.12, 1.9, 0.06), MSTEEL, METAL, CFrame.new(0, 0.1, -0.53))
addT("TiSpineGlow", Vector3.new(0.05, 1.6, 0.04), MCYAN, NEON, CFrame.new(0, 0.1, -0.56))
for _, addArm in ipairs({ addR, addL }) do
addArm("TiRod", Vector3.new(0.1, 1.6, 0.1), MSTEEL, METAL, CFrame.new(0, 0, -0.55))
addArm("TiElbow", Vector3.new(1.08, 0.12, 1.08), MSTEEL, METAL, CFrame.new(0, 0, 0))
end
end
-- BIONIC JOINTS (elbows / knees: applied to each arm and each leg)
function buildJointParts(addPart)
addPart("JointRing", Vector3.new(1.1, 0.16, 1.1), MSTEEL, METAL, CFrame.new(0, 0.05, 0))
addPart("JointGlow", Vector3.new(1.14, 0.04, 1.14), MCYAN, NEON, CFrame.new(0, 0.05, 0))
end
-- OVERCLOCKED HEART (torso front)
function buildHeartParts(addPart)
addPart("HeartCase", Vector3.new(0.6, 0.6, 0.12), MDARK, METAL, CFrame.new(0.4, 0.5, -0.54))
addPart("HeartGlow", Vector3.new(0.34, 0.34, 0.08), MRED, NEON, CFrame.new(0.4, 0.5, -0.6) * CFrame.Angles(0, 0, math.rad(45)))
addPart("HeartPipeA", Vector3.new(0.08, 0.6, 0.08), MRED, NEON, CFrame.new(0.4, 0.95, -0.54))
addPart("HeartPipeB", Vector3.new(0.5, 0.08, 0.08), MRED, NEON, CFrame.new(0.15, 0.95, -0.54))
end
-- OXYGEN BOOSTER (torso front-left)
function buildOxygenParts(addPart)
addPart("OxyTank", Vector3.new(0.45, 0.9, 0.3), MSTEEL, METAL, CFrame.new(-0.6, 0.35, -0.58))
addPart("OxyBandA", Vector3.new(0.5, 0.1, 0.34), MCYAN, NEON, CFrame.new(-0.6, 0.6, -0.58))
addPart("OxyBandB", Vector3.new(0.5, 0.1, 0.34), MCYAN, NEON, CFrame.new(-0.6, 0.1, -0.58))
addPart("OxyTube", Vector3.new(0.08, 0.6, 0.08), MDARK, PLASTIC, CFrame.new(-0.3, 0.9, -0.55))
end
-- MOTION SCANNER (head)
function buildScannerParts(addPart)
addPart("ScanVisor", Vector3.new(1.4, 0.26, 0.1), MDARK, METAL, CFrame.new(0, 0.1, -0.56))
addPart("ScanGlow", Vector3.new(1.2, 0.08, 0.06), MCYAN, NEON, CFrame.new(0, 0.1, -0.62))
for _, s in ipairs({ -1, 1 }) do
addPart("ScanPod", Vector3.new(0.14, 0.4, 0.3), MSTEEL, METAL, CFrame.new(s * 1.0, 0.05, 0))
end
end
-- ==========================================
-- IN-GAME AUGMENTS
-- ==========================================
function makeWeldedAdder(basePart, model)
return function(name, size, color, material, offset)
local p = new("Part", {
Name = name, Size = size, Color = color, Material = material, CanCollide = false, CanQuery = false,
CanTouch = false, Massless = true, CFrame = basePart.CFrame * offset,
}, model)
if name == "Muzzle" then p.Transparency = 1 end
new("WeldConstraint", { Part0 = basePart, Part1 = p }, p)
if name == "SandyGlowCore" then
new("PointLight", { Color = Color3.fromRGB(0, 235, 255), Range = 8, Brightness = 0 }, p)
elseif name == "HeartGlow" then
new("PointLight", { Color = Color3.fromRGB(255, 40, 55), Range = 8, Brightness = 0 }, p)
end
return p
end
end
function applyGlow(prefix, color, lightBrightness)
local augs = character and character:FindFirstChild("PlayerCyberwareAugments")
if not augs then return end
for _, p in ipairs(augs:GetChildren()) do
if p:IsA("BasePart") and string.sub(p.Name, 1, #prefix) == prefix then
p.Color = color
local light = p:FindFirstChildOfClass("PointLight")
if light and lightBrightness then light.Brightness = lightBrightness end
end
end
end
function pulseSandevistanGlow(session)
task.spawn(function()
local base, hot = Color3.fromRGB(0, 235, 255), Color3.fromRGB(220, 255, 255)
while not systemDestroyed and isSandevistanActive and session == sandySession do
local a = (math.sin(os.clock() * 12) + 1) / 2
applyGlow("SandyGlow", base:Lerp(hot, a), 1 + a * 3)
task.wait(0.05)
end
applyGlow("SandyGlow", base, 0)
end)
end
refreshVisualAugments = function()
if systemDestroyed or not character then return end
local old = character:FindFirstChild("PlayerCyberwareAugments")
if old then old:Destroy() end
local model = new("Model", { Name = "PlayerCyberwareAugments" }, character)
local torso = character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso")
local head = character:FindFirstChild("Head")
local rArm, lArm = getArm("R"), getArm("L")
local legs = {}
for _, n in ipairs({ "Left Leg", "Right Leg", "LeftLowerLeg", "RightLowerLeg" }) do
local l = character:FindFirstChild(n)
if l then table.insert(legs, l) end
end
if isEq("LaunchCannon") and rArm then buildCannonParts(makeWeldedAdder(rArm, model)) end
if isEq("MantisBlades") then
if rArm and not isEq("LaunchCannon") then buildMantisParts(makeWeldedAdder(rArm, model), 1) end
if lArm then buildMantisParts(makeWeldedAdder(lArm, model), -1) end
end
if isEq("Sandevistan") and torso then buildSandevistanParts(makeWeldedAdder(torso, model)) end
if isEq("Dasher") then
for _, leg in ipairs(legs) do buildDasherParts(makeWeldedAdder(leg, model)) end
end
if wornJacket and torso and rArm and lArm then
buildJacketParts(makeWeldedAdder(torso, model), makeWeldedAdder(rArm, model), makeWeldedAdder(lArm, model))
end
-- v3 implants
if isEq("GrappleLauncher") and lArm then buildGrappleParts(makeWeldedAdder(lArm, model)) end
if isEq("RocketFist") and rArm then buildRocketFistParts(makeWeldedAdder(rArm, model)) end
if isEq("ShoulderThrusters") and torso then buildThrusterParts(makeWeldedAdder(torso, model)) end
if isEq("DashKatana") and torso then buildKatanaParts(makeWeldedAdder(torso, model)) end
if isEq("RailgunBoots") then for _, leg in ipairs(legs) do buildRailBootParts(makeWeldedAdder(leg, model)) end end
if isEq("KineticBoard") then for _, leg in ipairs(legs) do buildBoardEmitterParts(makeWeldedAdder(leg, model)) end end
if isEq("TitaniumSkeleton") and torso and rArm and lArm then
buildTitaniumParts(makeWeldedAdder(torso, model), makeWeldedAdder(rArm, model), makeWeldedAdder(lArm, model))
end
if isEq("BionicJoints") then
for _, part in ipairs({ rArm, lArm }) do if part then buildJointParts(makeWeldedAdder(part, model)) end end
for _, leg in ipairs(legs) do buildJointParts(makeWeldedAdder(leg, model)) end
end
if isEq("OverclockedHeart") and torso then buildHeartParts(makeWeldedAdder(torso, model)) end
if isEq("OxygenBooster") and torso then buildOxygenParts(makeWeldedAdder(torso, model)) end
if isEq("MotionScanner") and head then buildScannerParts(makeWeldedAdder(head, model)) end
updateViewportDummy()
end
refreshHeldGun = function()
if heldGunModel then heldGunModel:Destroy() heldGunModel = nil end
if systemDestroyed or not character then return end
if heldItem() ~= "Pistol" then return end
local arm = getArm("R")
if not arm then return end
local m = new("Model", { Name = "HeldPistol" }, character)
buildPistolParts(makeWeldedAdder(arm, m))
heldGunModel = m
end
-- ==========================================
-- VISUAL EFFECT HELPERS
-- ==========================================
function createShockwaveRing(cframe, startSize, endSize, color, duration, isFlatHorizontal)
if systemDestroyed then return end
local ring = new("Part", {
Shape = Enum.PartType.Cylinder, Size = Vector3.new(0.2, startSize, startSize), Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = color, Transparency = 0.25,
})
ring.CFrame = isFlatHorizontal and (cframe * CFrame.Angles(0, 0, math.rad(90))) or (cframe * CFrame.Angles(0, math.rad(90), 0))
ring.Parent = workspace
local tween = TweenService:Create(ring, TweenInfo.new(duration, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
{ Size = Vector3.new(0.05, endSize, endSize), Transparency = 1 })
tween:Play()
tween.Completed:Connect(function() ring:Destroy() end)
end
function createAfterimage(colorIndex)
if systemDestroyed or not character then return end
local cloneModel = Instance.new("Model")
cloneModel.Name = "SandevistanAfterimage"
local chosenColor = trailColors[(colorIndex % #trailColors) + 1]
for _, part in ipairs(character:GetChildren()) do
if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" and part.Transparency < 1 then
local cp = new("Part", {
Size = part.Size, CFrame = part.CFrame, Anchored = true, CanCollide = false, CanQuery = false, CanTouch = false,
Material = Enum.Material.Neon, Color = chosenColor, Transparency = 0.35,
}, cloneModel)
local mesh = part:FindFirstChildOfClass("SpecialMesh")
if mesh then
local cm = mesh:Clone()
cm.TextureId = ""
cm.Parent = cp
end
TweenService:Create(cp, TweenInfo.new(0.45, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Transparency = 1 }):Play()
end
end
cloneModel.Parent = workspace
task.delay(0.45, function() cloneModel:Destroy() end)
end
function shakeCamera(intensity, duration)
task.spawn(function()
local t0 = os.clock()
while os.clock() - t0 < duration and humanoid and humanoid.Parent and not systemDestroyed do
local fade = 1 - (os.clock() - t0) / duration
humanoid.CameraOffset = Vector3.new((math.random() - 0.5) * intensity * fade, (math.random() - 0.5) * intensity * fade, 0)
task.wait()
end
if humanoid and humanoid.Parent and not dasherCharging then humanoid.CameraOffset = Vector3.zero end
end)
end
function createExplosionFX(position)
if systemDestroyed then return end
local ex = new("Explosion", {
Position = position, BlastRadius = 9, BlastPressure = 0, DestroyJointRadiusPercent = 0,
ExplosionType = Enum.ExplosionType.NoCraters,
}, workspace)
local function makeBall(size, color)
return new("Part", {
Shape = Enum.PartType.Ball, Size = Vector3.new(size, size, size), Position = position, Anchored = true,
CanCollide = false, CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = color, Transparency = 0.1,
}, workspace)
end
local fire = makeBall(2, Color3.fromRGB(255, 130, 20))
TweenService:Create(fire, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = Vector3.new(18, 18, 18), Transparency = 1 }):Play()
task.delay(0.55, function() fire:Destroy() end)
local core = makeBall(1.5, Color3.fromRGB(255, 240, 160))
TweenService:Create(core, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = Vector3.new(9, 9, 9), Transparency = 1 }):Play()
task.delay(0.35, function() core:Destroy() end)
for _ = 1, 14 do
local spark = new("Part", {
Size = Vector3.new(0.4, 0.4, 0.4), Position = position, Anchored = true, CanCollide = false, CanQuery = false,
CanTouch = false, Material = Enum.Material.Neon, Color = Color3.fromRGB(255, 190 + math.random(0, 50), 50),
}, workspace)
local dir = Vector3.new(math.random() - 0.5, math.random() * 0.8 + 0.2, math.random() - 0.5).Unit
TweenService:Create(spark, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
Position = position + dir * math.random(10, 18), Transparency = 1, Size = Vector3.new(0.1, 0.1, 0.1),
}):Play()
task.delay(0.55, function() spark:Destroy() end)
end
createShockwaveRing(CFrame.new(position), 2, 26, Color3.fromRGB(255, 140, 30), 0.4, true)
createShockwaveRing(CFrame.new(position), 1, 16, Color3.fromRGB(255, 240, 160), 0.3, true)
shakeCamera(1.2, 0.3)
end
-- wind streak that stays in the world while you fly past it
function windStreak(pos, dir)
local cf = CFrame.lookAt(pos, pos + dir)
local p = pos + cf.RightVector * (math.random() - 0.5) * 10 + cf.UpVector * (math.random() - 0.5) * 8 - dir * math.random(0, 8)
local len = math.random(6, 12)
local s = new("Part", {
Size = Vector3.new(0.12, 0.12, len), CFrame = CFrame.lookAt(p, p + dir), Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = Color3.fromRGB(215, 245, 255), Transparency = 0.3,
}, workspace)
TweenService:Create(s, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
Transparency = 1, Size = Vector3.new(0.05, 0.05, len * 1.6),
}):Play()
task.delay(0.32, function() s:Destroy() end)
end
-- ==========================================
-- STAMINA
-- ==========================================
function trySpend(amount)
if stamina < amount then
if flashStaminaBar then flashStaminaBar() end
return false
end
stamina -= amount
lastStaminaUse = os.clock()
if updateStaminaBar then updateStaminaBar() end
-- Syn Lungs assist every stamina-powered activation (counts as a Syn Lungs use)
if isEq("SynLungs") then recordUse("SynLungs") end
return true
end
-- ==========================================
-- MASTERY + QUEST TRACKING ENGINE
-- ==========================================
function questUnlocked(q) return not q.Requires or questClaimed[q.Requires] end
function questComplete(q)
local prog = questProgress[q.Id]
for i, o in ipairs(q.Objectives) do if prog[i] < o.Target then return false end end
return true
end
function questActive(q) return questUnlocked(q) and not questClaimed[q.Id] end
-- events: "steps" (amount), "jumps" (amount), "use" (itemId)
function trackEvent(kind, itemId, amount)
amount = amount or 1
for _, q in ipairs(QUESTS) do
if questActive(q) then
local prog = questProgress[q.Id]
local changed = false
for i, o in ipairs(q.Objectives) do
if o.Type == kind and (kind ~= "use" or o.Item == itemId) and prog[i] < o.Target then
prog[i] = math.min(o.Target, prog[i] + amount)
changed = true
end
end
if changed and not questDone[q.Id] and questComplete(q) then
questDone[q.Id] = true
notify("QUEST COMPLETE: " .. q.Name .. " - CLAIM REWARD", rarityColor(q.Rarity))
end
end
end
questUiDirty = true
end
-- every cyberware activation goes through here: mastery usage + quest progress
function recordUse(id)
if systemDestroyed or not ITEM_BY_ID[id] then return end
local before = masteryLevel(id)
usage[id] = (usage[id] or 0) + 1
local after = masteryLevel(id)
trackEvent("use", id, 1)
if after > before then
notify(string.format("MASTERY UP: %s -> LEVEL %d", string.upper(ITEM_BY_ID[id].Name), after), rarityColor(ITEM_BY_ID[id].Rarity))
if applyStats then applyStats() end
end
uiDirty = true
end
function grantRewards(r)
local parts = {}
if r.Eddies then eddies += r.Eddies table.insert(parts, r.Eddies .. " eddies") end
if r.Steps then steps += r.Steps table.insert(parts, r.Steps .. " steps") end
if r.Mats then
for _, m in ipairs(MATERIALS) do
local n = r.Mats[m.Id]
if n then matInv[m.Id] += n table.insert(parts, n .. "x " .. m.Name) end
end
end
if r.Blueprints then
for _, id in ipairs(r.Blueprints) do
if blueprints[id] then
eddies += 100 -- duplicate blueprint converts to eddies
table.insert(parts, "duplicate blueprint -> 100 eddies")
else
blueprints[id] = true
table.insert(parts, "BLUEPRINT: " .. ITEM_BY_ID[id].Name)
end
end
end
return table.concat(parts, ", ")
end
function claimQuest(q)
-- all checks first; claimed flag is set BEFORE paying out so a reward can never be claimed twice
if questClaimed[q.Id] or not questUnlocked(q) or not questComplete(q) then return end
questClaimed[q.Id] = true
local text = grantRewards(q.Rewards)
notify("REWARDS CLAIMED: " .. text, rarityColor(q.Rarity))
for _, nq in ipairs(QUESTS) do
if nq.Requires == q.Id then notify("NEW QUEST UNLOCKED: " .. nq.Name, C.CYAN) end
end
updateHudAndMenus()
end
function resetQuestCategory(cat)
for _, q in ipairs(QUESTS) do
if q.Cat == cat then
for i = 1, #q.Objectives do questProgress[q.Id][i] = 0 end
questClaimed[q.Id], questDone[q.Id] = false, false
end
end
end
function checkQuestResets()
local now = os.time()
for cat, period in pairs(QUEST_RESET) do
if now >= resetAt[cat] then
resetQuestCategory(cat)
resetAt[cat] = now + period
notify(string.upper(cat) .. " QUESTS HAVE RESET", C.YELLOW)
questUiDirty = true
end
end
end
-- walking loot: materials + blueprint discoveries (higher rarity = lower weight)
function rollStepLoot()
if math.random() < STEP_DROP_CHANCE then
local total = 0
for _, m in ipairs(MATERIALS) do total += m.DropWeight end
local roll = math.random() * total
for _, m in ipairs(MATERIALS) do
roll -= m.DropWeight
if roll <= 0 then
matInv[m.Id] += 1
notify("SALVAGED: +1 " .. m.Name, rarityColor(m.Rarity))
uiDirty = true
break
end
end
end
if math.random() < BLUEPRINT_DISCOVERY_CHANCE then
local pool = {}
for _, it in ipairs(ITEMS) do
if it.Blueprint and not blueprints[it.Id] then
for _ = 1, (it.Rarity == "Epic") and 3 or 1 do table.insert(pool, it) end
end
end
if #pool > 0 then
local it = pool[math.random(#pool)]
blueprints[it.Id] = true
notify("BLUEPRINT DISCOVERED: " .. it.Name, rarityColor(it.Rarity))
uiDirty = true
end
end
end
-- ==========================================
-- LOOPSPEED ENFORCER
-- ==========================================
RunService.Heartbeat:Connect(function()
if systemDestroyed or not humanoid or humanoid.Health <= 0 then return end
local target
if isImplanting then target = 0
elseif isDashing then target = 4
elseif isSlashing then target = 8
elseif dasherCharging then target = 5
elseif isCannonJumping then target = 6
elseif speedBoosted() then target = baseWalkSpeed + extraSpeed() end
if target and humanoid.WalkSpeed ~= target then humanoid.WalkSpeed = target end
end)
-- ==========================================
-- ARM RIG (procedural gun / slash animations)
-- ==========================================
function setupArmRig()
armRig = {}
local function reg(key, motor)
if motor and motor:IsA("Motor6D") then armRig[key] = { motor = motor, orig = motor.C0, a = 0, r = 0, dirty = false } end
end
local torso = character:FindFirstChild("Torso")
if torso then
reg("R", torso:FindFirstChild("Right Shoulder"))
reg("L", torso:FindFirstChild("Left Shoulder"))
else
local ru, lu = character:FindFirstChild("RightUpperArm"), character:FindFirstChild("LeftUpperArm")
if ru then reg("R", ru:FindFirstChild("RightShoulder")) end
if lu then reg("L", lu:FindFirstChild("LeftShoulder")) end
end
end
function applyArm(rig, a, r)
local o = rig.orig
local pos = o.Position
rig.motor.C0 = CFrame.new(pos) * CFrame.Angles(a, 0, r) * (CFrame.new(-pos) * o)
end
function restoreArms()
for _, rig in pairs(armRig) do
if rig.motor and rig.motor.Parent then rig.motor.C0 = rig.orig end
rig.a, rig.r, rig.dirty = 0, 0, false
end
if humanoid and humanoid.Parent and autoRotateSuppressed then humanoid.AutoRotate = true end
autoRotateSuppressed = false
end
RunService.RenderStepped:Connect(function(dt)
if systemDestroyed or not character or not humanoid or humanoid.Health <= 0 then return end
local ready = gunReady()
local tRa, tRr, tLa, tLr, speed = 0, 0, 0, 0, 18
local posing = false
if slashPose then
tRa, tRr, tLa, tLr = slashPose.ra, slashPose.rr, slashPose.la, slashPose.lr
speed, posing = 36, true
elseif ready then
posing = true
local pitch = math.asin(math.clamp(camera.CFrame.LookVector.Y, -1, 1))
gunKick = gunKick * math.exp(-dt * 12)
if reloading then
-- reload: gun dips to chest height, off-hand sweeps in
local wob = math.sin(os.clock() * 9) * 0.06
tRa, tRr = math.rad(30) + wob, math.rad(-22)
tLa, tLr = math.rad(64) - wob, math.rad(34)
else
-- ready idle: pistol up, off-hand supports, gentle breathing sway
local sway = math.sin(os.clock() * 1.8) * 0.025
tRa, tRr = math.rad(86) + pitch * 0.9 + sway + gunKick, 0
tLa, tLr = math.rad(62) + pitch * 0.5, math.rad(30)
end
end
for key, rig in pairs(armRig) do
if rig.motor and rig.motor.Parent then
local ta, tr = tRa, tRr
if key == "L" then ta, tr = tLa, tLr end
local k = math.min(1, dt * speed)
rig.a += (ta - rig.a) * k
rig.r += (tr - rig.r) * k
if posing or math.abs(rig.a) > 0.004 or math.abs(rig.r) > 0.004 then
applyArm(rig, rig.a, rig.r)
rig.motor.Transform = CFrame.new()
rig.dirty = true
elseif rig.dirty then
rig.motor.C0 = rig.orig
rig.dirty = false
end
end
end
-- face where the camera looks while the gun is drawn
if ready and rootPart and not isDashing and not isSlashing and not isImplanting then
local look = camera.CFrame.LookVector
local flat = Vector3.new(look.X, 0, look.Z)
if flat.Magnitude > 0.01 then
if humanoid.AutoRotate then humanoid.AutoRotate = false autoRotateSuppressed = true end
rootPart.CFrame = CFrame.lookAt(rootPart.Position, rootPart.Position + flat)
end
elseif autoRotateSuppressed then
humanoid.AutoRotate = true
autoRotateSuppressed = false
end
end)
-- ==========================================
-- ABILITIES
-- ==========================================
endSandevistan = function()
if not isSandevistanActive then return end
isSandevistanActive = false
sandySession += 1
restoreSpeed()
if systemDestroyed then return end
if mSpecial("Sandevistan") then stamina = math.min(getMaxStamina(), stamina + 20) end -- L5 Afterglow
local t = TweenService:Create(colorCorrection, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
TintColor = Color3.new(1, 1, 1), Saturation = 0, Contrast = 0, Brightness = 0,
})
t:Play()
t.Completed:Connect(function() if not isSandevistanActive then colorCorrection.Enabled = false end end)
end
sandyLineColors = { Color3.fromRGB(90, 255, 140), Color3.fromRGB(0, 235, 255), Color3.fromRGB(220, 255, 230) }
function activateSandevistan()
if systemDestroyed or isImplanting or not isEq("Sandevistan") then return end
if isSandevistanActive or cooldowns.Sandevistan > 0 or not humanoid or humanoid.Health <= 0 then return end
if not trySpend(sandyStartCost()) then return end
recordUse("Sandevistan")
captureBase()
isSandevistanActive = true
sandySession += 1
local session = sandySession
cooldowns.Sandevistan = 3.0 * mCd("Sandevistan")
updateHotbars()
playSandevistanActivationFX()
pulseSandevistanGlow(session)
task.spawn(function() -- afterimages
local count = 0
while not systemDestroyed and isSandevistanActive and session == sandySession and humanoid and humanoid.Health > 0 do
if rootPart and rootPart.AssemblyLinearVelocity.Magnitude > 2 then
createAfterimage(count)
count += 1
end
task.wait(0.04)
end
end)
task.spawn(function() -- speed lines
while not systemDestroyed and isSandevistanActive and session == sandySession do
local moving = rootPart and rootPart.AssemblyLinearVelocity.Magnitude > 4
for _ = 1, moving and 3 or 1 do
spawnSpeedline(sandyLineColors[math.random(#sandyLineColors)], 0.3, math.random(2, 3))
end
task.wait(0.05)
end
end)
task.delay(SANDEVISTAN_MAX_TIME, function() if session == sandySession then endSandevistan() end end)
end
-- ---------- DASHER (hold to charge, auto-launch at 100%) ----------
chargeFrame = new("Frame", {
Name = "DasherCharge", AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.66, 0), Size = UDim2.new(0, 280, 0, 28),
BackgroundColor3 = Color3.fromRGB(10, 16, 20), BackgroundTransparency = 0.1, BorderSizePixel = 0, Visible = false,
}, mainGui)
chargeStroke = new("UIStroke", { Color = C.CYAN, Thickness = 2 }, chargeFrame)
chargeFill = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = C.CYAN, BorderSizePixel = 0 }, chargeFrame)
chargeLabel = new("TextLabel", {
Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, Text = "DASHER 0%", TextColor3 = Color3.new(1, 1, 1),
Font = Enum.Font.GothamBlack, TextSize = 14, ZIndex = 3,
}, chargeFrame)
-- generic meter for thrusters / other held mobility
mobBar = new("Frame", {
Name = "MobilityBar", AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.72, 0), Size = UDim2.new(0, 260, 0, 22),
BackgroundColor3 = Color3.fromRGB(10, 16, 20), BackgroundTransparency = 0.1, BorderSizePixel = 0, Visible = false,
}, mainGui)
mobStroke = new("UIStroke", { Color = C.ORANGE, Thickness = 2 }, mobBar)
mobFill = new("Frame", { Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = C.ORANGE, BorderSizePixel = 0 }, mobBar)
mobLabel = new("TextLabel", {
Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, Text = "", TextColor3 = Color3.new(1, 1, 1),
Font = Enum.Font.GothamBlack, TextSize = 12, ZIndex = 3,
}, mobBar)
function setMobBar(text, ratio, color)
mobBar.Visible = true
mobFill.Size = UDim2.new(math.clamp(ratio, 0, 1), 0, 1, 0)
mobFill.BackgroundColor3, mobStroke.Color = color, color
mobLabel.Text = string.format("%s %d%%", text, math.floor(ratio * 100))
end
function hideMobBar() mobBar.Visible = false end
chargeFov = 70
function hideCharge()
chargeFrame.Visible = false
if humanoid and humanoid.Parent then humanoid.CameraOffset = Vector3.zero end
applyGlow("DasherGlow", Color3.fromRGB(0, 235, 255))
end
endDasherCharge = function()
if not dasherCharging then return end
dasherCharging = false
chargeToken += 1
hideCharge()
TweenService:Create(camera, TweenInfo.new(0.2), { FieldOfView = chargeFov }):Play()
restoreSpeed()
end
function launchDasher()
local cost = dasherCost()
if not trySpend(cost) then endDasherCharge() return end
recordUse("Dasher")
if mSpecial("Dasher") then stamina = math.min(getMaxStamina(), stamina + cost * 0.5) end -- L5 Ion Recycler
dasherCharging = false
chargeToken += 1
isDashing = true
cooldowns.Dasher = 2.5 * mCd("Dasher")
updateHotbars()
hideCharge()
if not rootPart or not rootPart.Parent then isDashing = false return end
local look = camera.CFrame.LookVector
local flat = Vector3.new(look.X, 0, look.Z)
if flat.Magnitude < 0.01 then flat = rootPart.CFrame.LookVector end
flat = flat.Unit
local dir = (flat + Vector3.new(0, 0.16 + math.max(look.Y, 0) * 0.5, 0)).Unit
local startPos = rootPart.Position
rootPart.CFrame = CFrame.lookAt(startPos, startPos + flat)
-- launch burst: air rings, ground blast, flash, speed lines, FOV punch
local frontCF = CFrame.lookAt(startPos, startPos + dir)
createShockwaveRing(frontCF, 3, 20, Color3.fromRGB(235, 250, 255), 0.35, false)
createShockwaveRing(frontCF * CFrame.new(0, 0, 2), 2, 12, C.CYAN, 0.3, false)
createShockwaveRing(CFrame.new(startPos - Vector3.new(0, 2.8, 0)), 3, 26, Color3.fromRGB(235, 245, 255), 0.4, true)
createShockwaveRing(CFrame.new(startPos - Vector3.new(0, 2.8, 0)), 2, 16, Color3.fromRGB(255, 170, 60), 0.3, true)
playSpeedlines(46, Color3.fromRGB(215, 245, 255), 0)
flashOverlay.BackgroundColor3 = Color3.fromRGB(200, 240, 255)
flashOverlay.BackgroundTransparency = 0.55
TweenService:Create(flashOverlay, TweenInfo.new(0.35), { BackgroundTransparency = 1 }):Play()
TweenService:Create(camera, TweenInfo.new(0.12, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { FieldOfView = chargeFov + 24 }):Play()
shakeCamera(1.6, 0.35)
applyGlow("DasherGlow", Color3.fromRGB(255, 255, 255))
local attachment = new("Attachment", {}, rootPart)
local lv = new("LinearVelocity", {
Attachment0 = attachment, MaxForce = 1e7, VelocityConstraintMode = Enum.VelocityConstraintMode.Vector,
VectorVelocity = dir * dasherSpeed(),
}, rootPart)
humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
-- vapor trail
local a0 = new("Attachment", { Position = Vector3.new(0, 1, 0) }, rootPart)
local a1 = new("Attachment", { Position = Vector3.new(0, -1, 0) }, rootPart)
local trail = new("Trail", {
Attachment0 = a0, Attachment1 = a1, Lifetime = 0.4, LightEmission = 1,
Color = ColorSequence.new(Color3.new(1, 1, 1), C.CYAN),
Transparency = NumberSequence.new(0.1, 1), WidthScale = NumberSequence.new(1, 0),
}, rootPart)
local duration = 0.4
local t0, ringT, c = os.clock(), 0, 0
while os.clock() - t0 < duration and not systemDestroyed and humanoid and humanoid.Health > 0 and rootPart.Parent do
local pos = rootPart.Position
for _ = 1, 3 do windStreak(pos, dir) end
createAfterimage(c)
c += 1
if os.clock() - ringT > 0.06 then
ringT = os.clock()
createShockwaveRing(CFrame.lookAt(pos - dir * 2, pos + dir), 3, 14, Color3.fromRGB(220, 242, 255), 0.3, false)
end
task.wait(0.03)
end
lv:Destroy() attachment:Destroy()
if rootPart and rootPart.Parent then rootPart.AssemblyLinearVelocity = dir * 35 end
task.delay(0.5, function() trail:Destroy() a0:Destroy() a1:Destroy() end)
isDashing = false
restoreSpeed()
applyGlow("DasherGlow", Color3.fromRGB(0, 235, 255))
TweenService:Create(camera, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { FieldOfView = chargeFov }):Play()
end
function beginDasherCharge()
if systemDestroyed or isImplanting or not isEq("Dasher") then return end
if dasherCharging or isDashing or isCannonJumping or isSlashing or isMobility or cooldowns.Dasher > 0 or not humanoid or humanoid.Health <= 0 then return end
if stamina < dasherCost() then flashStaminaBar() return end
captureBase()
dasherCharging = true
chargeToken += 1
local tok = chargeToken
chargeFov = camera.FieldOfView
chargeFrame.Size = UDim2.new(0, 0, 0, 28)
chargeFrame.Visible = true
chargeFill.Size = UDim2.new(0, 0, 1, 0)
chargeFill.BackgroundColor3 = C.CYAN
chargeStroke.Color = C.CYAN
TweenService:Create(chargeFrame, TweenInfo.new(0.18, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Size = UDim2.new(0, 280, 0, 28) }):Play()
task.spawn(function()
local t0, windup, ringT, lineT = os.clock(), dasherWindup(), 0, 0
local charge = 0
while dasherCharging and tok == chargeToken and not systemDestroyed and humanoid and humanoid.Health > 0 do
charge = math.clamp((os.clock() - t0) / windup, 0, 1)
chargeFill.Size = UDim2.new(charge, 0, 1, 0)
chargeFill.BackgroundColor3 = C.CYAN:Lerp(Color3.fromRGB(255, 230, 160), charge)
chargeLabel.Text = string.format("DASHER %d%%", math.floor(charge * 100))
camera.FieldOfView = chargeFov - 12 * charge
humanoid.CameraOffset = Vector3.new((math.random() - 0.5) * 0.25 * charge, (math.random() - 0.5) * 0.25 * charge, 0)
applyGlow("DasherGlow", C.CYAN:Lerp(Color3.fromRGB(255, 200, 120), charge))
if os.clock() - ringT > 0.12 and rootPart then
ringT = os.clock()
createShockwaveRing(CFrame.new(rootPart.Position - Vector3.new(0, 2.8, 0)), 10, 1.5, C.CYAN:Lerp(Color3.new(1, 1, 1), charge), 0.3, true)
end
if charge > 0.5 and os.clock() - lineT > 0.07 then
lineT = os.clock()
spawnSpeedline(Color3.fromRGB(190, 240, 255), 0.3, 2)
end
if charge >= 1 then break end
task.wait()
end
if tok ~= chargeToken or not dasherCharging then return end -- cancelled
chargeLabel.Text = "DASHER 100%"
chargeFill.BackgroundColor3 = Color3.new(1, 1, 1)
launchDasher()
end)
end
-- ---------- LAUNCH CANNON ----------
function activateLaunchCannon()
if systemDestroyed or isImplanting or not isEq("LaunchCannon") then return end
if isCannonJumping or isDashing or isSlashing or dasherCharging or isMobility or cooldowns.LaunchCannon > 0 or not humanoid or humanoid.Health <= 0 then return end
local rightArm = getArm("R")
if not rightArm then return end
if not trySpend(cannonCost()) then return end
recordUse("LaunchCannon")
captureBase()
isCannonJumping = true
cooldowns.LaunchCannon = 4.0 * mCd("LaunchCannon")
updateHotbars()
local fireModel = new("Model", {}, character)
local muzzle = new("Part", {
Shape = Enum.PartType.Ball, Size = Vector3.new(0.4, 0.4, 0.4), Color = Color3.fromRGB(255, 170, 40), Material = Enum.Material.Neon,
CanCollide = false, CanQuery = false, Massless = true, CFrame = rightArm.CFrame * CFrame.new(0, -2.7, 0),
}, fireModel)
new("WeldConstraint", { Part0 = rightArm, Part1 = muzzle }, muzzle)
local baseFov = camera.FieldOfView
TweenService:Create(camera, TweenInfo.new(0.25), { FieldOfView = baseFov - 6 }):Play()
TweenService:Create(muzzle, TweenInfo.new(0.25), { Size = Vector3.new(1.6, 1.6, 1.6), Color = Color3.fromRGB(255, 240, 160) }):Play()
createShockwaveRing(rootPart.CFrame * CFrame.new(0, -2.8, 0), 8, 1.5, Color3.fromRGB(255, 140, 30), 0.25, true)
task.wait(0.25)
if systemDestroyed or not humanoid or humanoid.Health <= 0 then fireModel:Destroy() isCannonJumping = false return end
createExplosionFX(rootPart.Position - Vector3.new(0, 2.8, 0))
createShockwaveRing(rootPart.CFrame, 1.5, 11, Color3.fromRGB(255, 200, 80), 0.25, false)
TweenService:Create(camera, TweenInfo.new(0.12), { FieldOfView = baseFov + 14 }):Play()
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
local v = rootPart.AssemblyLinearVelocity
local lk = rootPart.CFrame.LookVector
rootPart.AssemblyLinearVelocity = Vector3.new(v.X + lk.X * 40, cannonPower(), v.Z + lk.Z * 40)
if mSpecial("LaunchCannon") then -- L5 Twin Charge: airburst adds lift
task.delay(0.3, function()
if systemDestroyed or not rootPart or not rootPart.Parent then return end
createExplosionFX(rootPart.Position - Vector3.new(0, 2.8, 0))
local vv = rootPart.AssemblyLinearVelocity
rootPart.AssemblyLinearVelocity = Vector3.new(vv.X, vv.Y + 35, vv.Z)
end)
end
task.spawn(function()
for i = 1, 14 do
if systemDestroyed or not humanoid or humanoid.Health <= 0 then break end
createAfterimage(i)
task.wait(0.035)
end
end)
task.wait(0.35)
isCannonJumping = false
restoreSpeed()
TweenService:Create(camera, TweenInfo.new(0.3), { FieldOfView = baseFov }):Play()
fireModel:Destroy()
end
-- ---------- MANTIS BLADES (slash = dash) ----------
function extendBlade(arm)
local model = new("Model", { Name = "MantisBlade" }, character)
local function seg(color, material, width, depth, zOff)
local p = new("Part", {
Size = Vector3.new(width, 0.3, depth), Color = color, Material = material, CanCollide = false, CanQuery = false,
CanTouch = false, Massless = true,
}, model)
local w = new("Weld", { Part0 = arm, Part1 = p, C0 = CFrame.new(0, -1.3, zOff) }, p)
TweenService:Create(p, TweenInfo.new(0.08), { Size = Vector3.new(width, 4.4, depth) }):Play()
TweenService:Create(w, TweenInfo.new(0.08), { C0 = CFrame.new(0, -1.1 - 2.2, zOff) }):Play()
end
seg(Color3.fromRGB(190, 196, 206), METAL, 0.1, 0.3, -0.18)
seg(Color3.fromRGB(255, 50, 65), NEON, 0.05, 0.06, -0.36)
return model
end
function createSlashArc(cf, roll, color)
local arc = new("Part", {
Size = Vector3.new(0.18, 0.18, 6), Anchored = true, CanCollide = false, CanQuery = false, CanTouch = false,
Material = Enum.Material.Neon, Color = color, Transparency = 0.1,
CFrame = cf * CFrame.Angles(0, 0, math.rad(roll)) * CFrame.Angles(0, math.rad(90), 0),
}, workspace)
TweenService:Create(arc, TweenInfo.new(0.28, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
Size = Vector3.new(0.04, 0.04, 14), Transparency = 1,
}):Play()
task.delay(0.3, function() arc:Destroy() end)
end
function activateMantis()
if systemDestroyed or isImplanting or not isEq("MantisBlades") then return end
if isSlashing or isDashing or isCannonJumping or dasherCharging or isMobility or cooldowns.MantisBlades > 0 or not humanoid or humanoid.Health <= 0 then return end
local cost = mantisCost()
if not trySpend(cost) then return end
recordUse("MantisBlades")
if mSpecial("MantisBlades") then stamina = math.min(getMaxStamina(), stamina + cost * 0.5) end -- L5 Monowire Siphon
captureBase()
isSlashing = true
cooldowns.MantisBlades = slashCooldown()
updateHotbars()
local blades = {}
local rArm, lArm = getArm("R"), getArm("L")
if rArm then table.insert(blades, extendBlade(rArm)) end
if lArm then table.insert(blades, extendBlade(lArm)) end
local look = camera.CFrame.LookVector
local flat = Vector3.new(look.X, 0, look.Z)
if flat.Magnitude < 0.01 then flat = rootPart.CFrame.LookVector end
flat = flat.Unit
local pos = rootPart.Position
rootPart.CFrame = CFrame.lookAt(pos, pos + flat)
local sp = 1 - 0.1 * upl("MantisSpeed")
task.spawn(function()
slashPose = { ra = math.rad(150), rr = math.rad(-35), la = math.rad(150), lr = math.rad(35) }
task.wait(0.06 * sp)
slashPose = { ra = math.rad(60), rr = math.rad(34), la = math.rad(30), lr = math.rad(-40) }
task.wait(0.1 * sp)
slashPose = { ra = math.rad(22), rr = math.rad(-48), la = math.rad(64), lr = math.rad(42) }
task.wait(0.1 * sp)
slashPose = nil
end)
local arcCF = CFrame.lookAt(pos + flat * 4 + Vector3.new(0, 0.5, 0), pos + flat * 8)
createSlashArc(arcCF, 38, Color3.fromRGB(255, 70, 85))
createSlashArc(arcCF, -38, Color3.fromRGB(255, 255, 255))
playSpeedlines(14, Color3.fromRGB(255, 120, 130), 0)
shakeCamera(0.7, 0.2)
local attachment = new("Attachment", {}, rootPart)
local lv = new("LinearVelocity", {
Attachment0 = attachment, MaxForce = 1e7, VelocityConstraintMode = Enum.VelocityConstraintMode.Vector,
VectorVelocity = flat * slashSpeed() + Vector3.new(0, 4, 0),
}, rootPart)
local t0, c = os.clock(), 0
while os.clock() - t0 < 0.2 and not systemDestroyed and humanoid and humanoid.Health > 0 do
createAfterimage(c) c += 1
task.wait(0.04)
end
lv:Destroy() attachment:Destroy()
if rootPart and rootPart.Parent then rootPart.AssemblyLinearVelocity = flat * 12 end
task.wait(0.15 * sp)
for _, b in ipairs(blades) do b:Destroy() end
isSlashing = false
restoreSpeed()
end
-- ---------- PISTOL ----------
function fireBullet(origin, dir)
local bullet = new("Part", {
Size = Vector3.new(0.22, 0.22, 2.4), CFrame = CFrame.lookAt(origin, origin + dir), Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = Color3.fromRGB(255, 210, 90),
}, workspace)
task.spawn(function()
local pos, life = origin, 0
while life < 1.6 and not systemDestroyed do
local dt = RunService.Heartbeat:Wait()
life += dt
local step = dir * 260 * dt
local res = workspace:Raycast(pos, step, rayParams)
if res then
for _ = 1, 6 do
local s = new("Part", {
Size = Vector3.new(0.25, 0.25, 0.25), Position = res.Position, Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = Color3.fromRGB(255, 190 + math.random(0, 50), 60),
}, workspace)
local d = (res.Normal + Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5)).Unit
TweenService:Create(s, TweenInfo.new(0.3), { Position = res.Position + d * math.random(2, 5), Transparency = 1, Size = Vector3.new(0.05, 0.05, 0.05) }):Play()
task.delay(0.32, function() s:Destroy() end)
end
createShockwaveRing(CFrame.lookAt(res.Position, res.Position + res.Normal), 0.5, 3, Color3.fromRGB(255, 210, 90), 0.2, false)
break
end
pos += step
bullet.CFrame = CFrame.lookAt(pos, pos + dir)
end
bullet:Destroy()
end)
end
reloadGun = function()
if reloading or ammo >= gunMag() or not owned.Pistol then return end
reloading = true
local dur, t0 = gunReloadTime(), os.clock()
task.spawn(function()
while os.clock() - t0 < dur and not systemDestroyed do
updateAmmoUI((os.clock() - t0) / dur)
task.wait()
end
ammo = gunMag()
reloading = false
updateAmmoUI(0)
end)
end
function shootGun()
if not gunReady() or reloading or menuVisible() or not humanoid or humanoid.Health <= 0 or not rootPart then return end
if isDashing or isSlashing or isCannonJumping then return end
if os.clock() - lastShot < GUN_FIRE_DELAY then return end
if ammo <= 0 then reloadGun() return end
ammo -= 1
lastShot = os.clock()
local muzzle = heldGunModel and heldGunModel:FindFirstChild("Muzzle")
local origin = muzzle and muzzle.Position or (rootPart.Position + camera.CFrame.LookVector * 3)
local mp = UserInputService:GetMouseLocation()
local ray = camera:ViewportPointToRay(mp.X, mp.Y)
local hit = workspace:Raycast(ray.Origin, ray.Direction * 500, rayParams)
local target = hit and hit.Position or (ray.Origin + ray.Direction * 500)
local dir = (target - origin)
dir = dir.Magnitude > 1 and dir.Unit or camera.CFrame.LookVector
fireBullet(origin, dir)
-- muzzle flash
local flash = new("Part", {
Shape = Enum.PartType.Ball, Size = Vector3.new(0.6, 0.6, 0.6), Position = origin, Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = Color3.fromRGB(255, 230, 140),
}, workspace)
TweenService:Create(flash, TweenInfo.new(0.08), { Size = Vector3.new(1.8, 1.8, 1.8), Transparency = 1 }):Play()
task.delay(0.1, function() flash:Destroy() end)
gunKick = math.min(gunKick + math.rad(16), math.rad(40))
-- knockback: pushes you backward, opposite the shot
local v = rootPart.AssemblyLinearVelocity
rootPart.AssemblyLinearVelocity = v - dir * GUN_KNOCKBACK + Vector3.new(0, 8, 0)
shakeCamera(0.5, 0.12)
updateAmmoUI(0)
if ammo == 0 then reloadGun() end
end
-- item hotbar helpers
function selectSlot(n)
if not itemHotbar[n] then return end
selectedSlot = (selectedSlot == n) and 0 or n
refreshHeldGun()
updateHudAndMenus()
end
function inHotbar(id)
for i, v in ipairs(itemHotbar) do if v == id then return i end end
return nil
end
function addToHotbar(id)
if inHotbar(id) then return end
for i = 1, 5 do
if not itemHotbar[i] then itemHotbar[i] = id return end
end
end
function removeFromHotbar(id)
local i = inHotbar(id)
if not i then return end
itemHotbar[i] = false
if selectedSlot == i then selectedSlot = 0 end
refreshHeldGun()
end
-- ==========================================
-- v3 MOBILITY ARSENAL + NEW IMPLANT ABILITIES
-- ==========================================
function mobBlocked()
return systemDestroyed or isImplanting or isDashing or isCannonJumping or isSlashing or dasherCharging or isMobility
or not humanoid or humanoid.Health <= 0 or not rootPart or not rootPart.Parent
end
function aimDir() -- flat unit aim + full look vector
local look = camera.CFrame.LookVector
local flat = Vector3.new(look.X, 0, look.Z)
if flat.Magnitude < 0.01 then flat = rootPart.CFrame.LookVector end
return flat.Unit, look
end
function beginMobility()
captureBase()
isMobility = true
return mobToken
end
function finishMobility(token)
if token ~= mobToken then return end -- already cleaned up by endMobility (respawn / destroy)
isMobility = false
restoreSpeed()
end
function fovPunch(amount)
local base = camera.FieldOfView
TweenService:Create(camera, TweenInfo.new(0.12), { FieldOfView = base + amount }):Play()
task.delay(0.35, function()
if not systemDestroyed then TweenService:Create(camera, TweenInfo.new(0.3), { FieldOfView = base }):Play() end
end)
end
-- straight line propulsion with afterimages / wind streaks
function burstMove(dir, speed, duration, residual, token)
local att = new("Attachment", { Name = "CWMob" }, rootPart)
local lv = new("LinearVelocity", {
Name = "CWMob", Attachment0 = att, MaxForce = 1e7, VelocityConstraintMode = Enum.VelocityConstraintMode.Vector,
VectorVelocity = dir * speed,
}, rootPart)
humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
local t0, c = os.clock(), 0
while os.clock() - t0 < duration and token == mobToken and not systemDestroyed and humanoid and humanoid.Health > 0 and rootPart.Parent do
windStreak(rootPart.Position, dir)
createAfterimage(c)
c += 1
task.wait(0.03)
end
lv:Destroy() att:Destroy()
if rootPart and rootPart.Parent and token == mobToken then rootPart.AssemblyLinearVelocity = dir * residual end
end
function railBeam(from, to, color, thick)
local len = (to - from).Magnitude
if len < 1 then return end
local p = new("Part", {
Size = Vector3.new(thick, thick, len), CFrame = CFrame.lookAt((from + to) / 2, to), Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = color, Transparency = 0.1,
}, mobFolder)
TweenService:Create(p, TweenInfo.new(0.35), { Transparency = 1, Size = Vector3.new(0.02, 0.02, len) }):Play()
task.delay(0.4, function() p:Destroy() end)
end
-- ---------- DASH KATANA [C] ----------
function drawKatana(arm)
local model = new("Model", { Name = "CWKatana" }, character)
local function seg(color, material, width, depth, zOff)
local p = new("Part", {
Size = Vector3.new(width, 0.3, depth), Color = color, Material = material, CanCollide = false, CanQuery = false,
CanTouch = false, Massless = true,
}, model)
local w = new("Weld", { Part0 = arm, Part1 = p, C0 = CFrame.new(0, -1.3, zOff) }, p)
TweenService:Create(p, TweenInfo.new(0.06), { Size = Vector3.new(width, 5.2, depth) }):Play()
TweenService:Create(w, TweenInfo.new(0.06), { C0 = CFrame.new(0, -1.1 - 2.6, zOff) }):Play()
end
seg(Color3.fromRGB(225, 235, 245), METAL, 0.12, 0.34, -0.2)
seg(Color3.fromRGB(255, 50, 65), NEON, 0.05, 0.06, -0.4)
return model
end
function activateKatana()
if not isEq("DashKatana") or mobBlocked() or cooldowns.DashKatana > 0 then return end
if not trySpend(katanaCost()) then return end
recordUse("DashKatana")
local token = beginMobility()
local chain = os.clock() - lastKatana < 1.4
lastKatana = os.clock()
local cd = katanaCooldown()
if chain and mSpecial("DashKatana") then cd *= 0.5 end -- L5 Phantom Chain
cooldowns.DashKatana = cd
updateHotbars()
local flat, look = aimDir()
local dir = (flat + Vector3.new(0, math.clamp(look.Y, -0.25, 0.35), 0)).Unit
local pos = rootPart.Position
rootPart.CFrame = CFrame.lookAt(pos, pos + flat)
local rArm = getArm("R")
local blade = rArm and drawKatana(rArm)
slashPose = { ra = math.rad(115), rr = math.rad(-25), la = math.rad(20), lr = math.rad(25) }
local arcCF = CFrame.lookAt(pos + dir * 4, pos + dir * 8)
createSlashArc(arcCF, 0, Color3.fromRGB(255, 255, 255))
createSlashArc(arcCF, 70, Color3.fromRGB(255, 60, 75))
playSpeedlines(16, Color3.fromRGB(255, 255, 255), 0)
fovPunch(10)
shakeCamera(0.8, 0.2)
burstMove(dir, katanaSpeed() * (chain and 1.25 or 1), chain and 0.28 or 0.22, 28, token)
if rootPart and rootPart.Parent then
local endPos = rootPart.Position
createSlashArc(CFrame.lookAt(endPos, endPos + dir), -40, Color3.fromRGB(255, 70, 85))
end
slashPose = nil
task.wait(0.12)
if blade then blade:Destroy() end
finishMobility(token)
end
-- ---------- RAILGUN BOOTS [B] ----------
function activateRailgun()
if not isEq("RailgunBoots") or mobBlocked() or cooldowns.RailgunBoots > 0 then return end
if not trySpend(railCost()) then return end
recordUse("RailgunBoots")
local token = beginMobility()
cooldowns.RailgunBoots = railCooldown()
updateHotbars()
local flat, dir = aimDir()
local pos = rootPart.Position
rootPart.CFrame = CFrame.lookAt(pos, pos + flat)
-- capacitor charge
createShockwaveRing(CFrame.new(pos - Vector3.new(0, 2.8, 0)), 14, 2, Color3.fromRGB(255, 60, 70), 0.2, true)
applyGlow("RailStripe", Color3.fromRGB(255, 255, 255))
task.wait(0.12)
if token ~= mobToken or not rootPart or not rootPart.Parent then return end
pos = rootPart.Position
railBeam(pos, pos - dir * 70, Color3.fromRGB(255, 70, 80), 0.5)
railBeam(pos, pos - dir * 50, Color3.fromRGB(255, 255, 255), 0.2)
createShockwaveRing(CFrame.lookAt(pos, pos + dir), 3, 22, Color3.fromRGB(255, 255, 255), 0.3, false)
createShockwaveRing(CFrame.new(pos - Vector3.new(0, 2.8, 0)), 3, 30, Color3.fromRGB(255, 90, 80), 0.4, true)
playSpeedlines(40, Color3.fromRGB(255, 130, 130), 0)
fovPunch(22)
shakeCamera(1.8, 0.35)
burstMove(dir, railSpeed(), 0.3 + (mSpecial("RailgunBoots") and 0.12 or 0), 70, token)
if rootPart and rootPart.Parent then
local p = rootPart.Position
createShockwaveRing(CFrame.lookAt(p - dir, p + dir), 4, 24, Color3.new(1, 1, 1), 0.4, false) -- sonic boom
end
applyGlow("RailStripe", Color3.fromRGB(255, 40, 55))
finishMobility(token)
end
-- ---------- ROCKET FIST [X] ----------
function activateRocketFist()
if not isEq("RocketFist") or mobBlocked() or cooldowns.RocketFist > 0 then return end
if not trySpend(fistCost()) then return end
recordUse("RocketFist")
local token = beginMobility()
cooldowns.RocketFist = fistCooldown()
updateHotbars()
local flat, look = aimDir()
local pos = rootPart.Position
rootPart.CFrame = CFrame.lookAt(pos, pos + flat)
local RANGE = 26
local res = workspace:Raycast(pos, look * RANGE, rayParams)
local hitPos = res and res.Position or (pos + look * RANGE)
slashPose = { ra = math.rad(95), rr = 0, la = math.rad(30), lr = math.rad(30) }
-- the fist flies out
local fist = new("Part", {
Shape = Enum.PartType.Ball, Size = Vector3.new(1.5, 1.5, 1.5), Position = pos + look * 2, Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = Color3.fromRGB(255, 130, 30),
}, mobFolder)
TweenService:Create(fist, TweenInfo.new(0.1, Enum.EasingStyle.Linear), { Position = hitPos }):Play()
railBeam(pos + look * 2, hitPos, Color3.fromRGB(255, 170, 60), 0.35)
task.wait(0.1)
fist:Destroy()
if token ~= mobToken or not rootPart or not rootPart.Parent then slashPose = nil return end
createExplosionFX(hitPos)
fovPunch(12)
if res then
-- surface hit: the blast throws you away from it (rocket jump)
local away = pos - hitPos
local d = away.Magnitude
local dirAway = d > 0.1 and away.Unit or -look
local launch = (dirAway + Vector3.new(0, 0.45, 0)).Unit
local power = fistPower() * math.clamp(1.15 - d / 40, 0.55, 1)
humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
rootPart.AssemblyLinearVelocity = launch * power
if mSpecial("RocketFist") then -- L5 Chain Rocket
task.delay(0.25, function()
if token ~= mobToken or not rootPart or not rootPart.Parent then return end
createExplosionFX(rootPart.Position - Vector3.new(0, 2.8, 0))
local v = rootPart.AssemblyLinearVelocity
rootPart.AssemblyLinearVelocity = v + Vector3.new(0, power * 0.5, 0)
end)
end
local t0 = os.clock()
while os.clock() - t0 < 0.35 and token == mobToken do createAfterimage(0) task.wait(0.05) end
else
-- open air: the punch thrusts you forward
local dir = Vector3.new(look.X, look.Y * 0.5, look.Z).Unit
burstMove(dir, fistPower(), 0.2, 40, token)
if mSpecial("RocketFist") and token == mobToken and rootPart and rootPart.Parent then
createExplosionFX(rootPart.Position)
rootPart.AssemblyLinearVelocity = dir * fistPower() * 0.6
end
end
slashPose = nil
finishMobility(token)
end
-- ---------- GRAPPLE LAUNCHER [H] ----------
function activateGrapple()
if isGrappling then grappleStop = true return end -- second press releases
if not isEq("GrappleLauncher") or mobBlocked() or cooldowns.GrappleLauncher > 0 then return end
local range = grappleRange()
local cam = camera.CFrame
local pos = rootPart.Position
local res = workspace:Raycast(cam.Position, cam.LookVector * (range + (cam.Position - pos).Magnitude), rayParams)
if not res or (res.Position - pos).Magnitude > range + 8 then
notify("GRAPPLE: NO ANCHOR IN RANGE", Color3.fromRGB(255, 110, 110))
return
end
if not trySpend(grappleCost()) then return end
recordUse("GrappleLauncher")
local token = beginMobility()
isGrappling, grappleStop = true, false
cooldowns.GrappleLauncher = 3.0 * mCd("GrappleLauncher")
updateHotbars()
local anchor = res.Position
local hand = getArm("L")
local hook = new("Part", {
Shape = Enum.PartType.Ball, Size = Vector3.new(0.9, 0.9, 0.9), Position = anchor, Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = Color3.fromRGB(255, 140, 30),
}, mobFolder)
local rope = new("Part", {
Size = Vector3.new(0.12, 0.12, 1), Anchored = true, CanCollide = false, CanQuery = false, CanTouch = false,
Material = Enum.Material.Neon, Color = Color3.fromRGB(255, 190, 80),
}, mobFolder)
createShockwaveRing(CFrame.lookAt(anchor, anchor + res.Normal), 0.5, 5, Color3.fromRGB(255, 160, 50), 0.25, false)
local att = new("Attachment", { Name = "CWMob" }, rootPart)
local lv = new("LinearVelocity", {
Name = "CWMob", Attachment0 = att, MaxForce = 1e7, VelocityConstraintMode = Enum.VelocityConstraintMode.Vector,
VectorVelocity = Vector3.zero,
}, rootPart)
humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
fovPunch(8)
local t0, dir, streak = os.clock(), nil, 0
while token == mobToken and not grappleStop and os.clock() - t0 < 1.8 and humanoid and humanoid.Health > 0 and rootPart.Parent do
local rp = rootPart.Position
local to = anchor - rp
if to.Magnitude < 6 then break end
dir = to.Unit
local ramp = math.min(1, (os.clock() - t0) / 0.15)
lv.VectorVelocity = dir * grappleSpeed() * ramp
local hp = (hand and hand.Parent) and (hand.CFrame * CFrame.new(0, -1.1, 0.6)).Position or rp
rope.Size = Vector3.new(0.12, 0.12, math.max(0.1, (anchor - hp).Magnitude))
rope.CFrame = CFrame.lookAt((hp + anchor) / 2, anchor)
if os.clock() - streak > 0.08 then streak = os.clock() windStreak(rp, dir) end
RunService.Heartbeat:Wait()
end
lv:Destroy() att:Destroy() rope:Destroy() hook:Destroy()
isGrappling = false
if token == mobToken and rootPart and rootPart.Parent and dir then
local v = dir * grappleSpeed() * 0.85
if mSpecial("GrappleLauncher") then -- L5 Slingshot
local flat = aimDir()
v += Vector3.new(0, 38, 0) + flat * 20
createShockwaveRing(CFrame.new(rootPart.Position), 3, 14, Color3.fromRGB(255, 190, 80), 0.3, false)
end
rootPart.AssemblyLinearVelocity = v
end
finishMobility(token)
end
-- ---------- SHOULDER THRUSTERS [Z] (hold) ----------
function thrusterFlames()
local torso = character and (character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
if not torso then return end
for _, s in ipairs({ -1, 1 }) do
local p = torso.CFrame * Vector3.new(s * 1.2, 0.2, 0.1)
local f = new("Part", {
Size = Vector3.new(0.45, 1.4, 0.45), CFrame = CFrame.new(p - Vector3.new(0, 0.7, 0)), Anchored = true, CanCollide = false,
CanQuery = false, CanTouch = false, Material = Enum.Material.Neon, Color = Color3.fromRGB(255, 150 + math.random(0, 80), 40),
}, mobFolder)
TweenService:Create(f, TweenInfo.new(0.2), { Transparency = 1, Size = Vector3.new(0.1, 2.4, 0.1), Position = f.Position - Vector3.new(0, 1.2, 0) }):Play()
task.delay(0.22, function() f:Destroy() end)
end
end
function endThrusters() isThrusting = false end
function beginThrusters()
if not isEq("ShoulderThrusters") or mobBlocked() or cooldowns.ShoulderThrusters > 0 then return end
if stamina < 12 then flashStaminaBar() return end
if not trySpend(8) then return end
recordUse("ShoulderThrusters")
local token = beginMobility()
isThrusting = true
local att = new("Attachment", { Name = "CWMob" }, rootPart)
local vf = new("VectorForce", {
Name = "CWMob", Attachment0 = att, RelativeTo = Enum.ActuatorRelativeTo.World, ApplyAtCenterOfMass = true, Force = Vector3.zero,
}, rootPart)
humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
createShockwaveRing(CFrame.new(rootPart.Position - Vector3.new(0, 2.8, 0)), 3, 16, Color3.fromRGB(255, 170, 60), 0.3, true)
task.spawn(function()
local t0, flameT = os.clock(), 0
local burst = mSpecial("ShoulderThrusters") and 2 or 1 -- L5 Afterburner
while isThrusting and token == mobToken and not systemDestroyed and humanoid and humanoid.Health > 0 and rootPart.Parent do
local dt = RunService.Heartbeat:Wait()
local mass, g = rootPart.AssemblyMass, workspace.Gravity
local vel = rootPart.AssemblyLinearVelocity
local acc = thrusterAccel() * ((os.clock() - t0 < 0.4) and burst or 1)
if vel.Y > 42 then acc = -25 end -- cap climb rate
local mv = humanoid.MoveDirection
local hv = Vector3.new(vel.X, 0, vel.Z).Magnitude
local fx = hv < 70 and 55 or 0
vf.Force = Vector3.new(mv.X * fx * mass, (g + acc) * mass, mv.Z * fx * mass)
stamina = math.max(0, stamina - thrusterDrain() * dt)
lastStaminaUse = os.clock()
setMobBar("THRUSTERS", stamina / getMaxStamina(), C.ORANGE)
if os.clock() - flameT > 0.05 then flameT = os.clock() thrusterFlames() end
if stamina <= 0 then flashStaminaBar() break end
end
isThrusting = false
if token == mobToken then
for _, ch in ipairs(rootPart:GetChildren()) do if ch.Name == "CWMob" then ch:Destroy() end end
hideMobBar()
cooldowns.ShoulderThrusters = 1.5 * mCd("ShoulderThrusters")
updateHotbars()
end
finishMobility(token)
end)
end
-- ---------- KINETIC BOARD [V] (toggle) ----------
function buildBoardModel()
local m = new("Model", { Name = "CWBoard" }, character)
local function bp(name, size, color, material, offset)
local p = new("Part", {
Name = name, Size = size, Color = color, Material = material, CanCollide = false, CanQuery = false, CanTouch = false, Massless = true,
}, m)
new("Weld", { Part0 = rootPart, Part1 = p, C0 = CFrame.new(0, -3.1, 0) * offset }, p)
return p
end
local deck = bp("BoardDeck", Vector3.new(2.6, 0.22, 5.2), MDARK, METAL, CFrame.new())
bp("BoardRimL", Vector3.new(0.14, 0.26, 5.0), MCYAN, NEON, CFrame.new(-1.25, 0, 0))
bp("BoardRimR", Vector3.new(0.14, 0.26, 5.0), MCYAN, NEON, CFrame.new(1.25, 0, 0))
bp("BoardNose", Vector3.new(2.0, 0.08, 0.14), MCYAN, NEON, CFrame.new(0, 0.02, -2.5))
bp("BoardHover", Vector3.new(2.0, 0.05, 4.2), MCYAN, NEON, CFrame.new(0, -0.2, 0)).Transparency = 0.35
local a0 = new("Attachment", { Position = Vector3.new(-1.2, 0, 2.4) }, deck)
local a1 = new("Attachment", { Position = Vector3.new(1.2, 0, 2.4) }, deck)
new("Trail", {
Attachment0 = a0, Attachment1 = a1, Lifetime = 0.5, LightEmission = 1, Color = ColorSequence.new(C.CYAN),
Transparency = NumberSequence.new(0.2, 1),
}, deck)
return m
end
function endBoard()
if not isBoardActive then return end
isBoardActive = false
boardToken += 1
boardMomentum = 0
if boardModel then boardModel:Destroy() boardModel = nil end
if rootPart then
for _, c in ipairs(rootPart:GetChildren()) do if c.Name == "CWBoardForce" then c:Destroy() end end
end
cooldowns.KineticBoard = 2.0 * mCd("KineticBoard")
updateHotbars()
restoreSpeed()
end
function toggleBoard()
if isBoardActive then endBoard() return end
if not isEq("KineticBoard") or systemDestroyed or isImplanting or not humanoid or humanoid.Health <= 0 or not rootPart then return end
if cooldowns.KineticBoard > 0 or isDashing or isCannonJumping or isSlashing or dasherCharging then return end
if not trySpend(boardStartCost()) then return end
recordUse("KineticBoard")
captureBase()
isBoardActive = true
boardMomentum = 0
boardToken += 1
local token = boardToken
boardModel = buildBoardModel()
local att = new("Attachment", { Name = "CWBoardForce" }, rootPart)
local vf = new("VectorForce", {
Name = "CWBoardForce", Attachment0 = att, RelativeTo = Enum.ActuatorRelativeTo.World, ApplyAtCenterOfMass = true, Force = Vector3.zero,
}, rootPart)
createShockwaveRing(CFrame.new(rootPart.Position - Vector3.new(0, 2.8, 0)), 3, 18, C.CYAN, 0.35, true)
notify("KINETIC BOARD ONLINE", C.CYAN)
updateHotbars()
task.spawn(function()
while isBoardActive and token == boardToken and not systemDestroyed and humanoid and humanoid.Health > 0 and rootPart.Parent do
local dt = RunService.Heartbeat:Wait()
local special = mSpecial("KineticBoard") -- L5 Slipstream
if humanoid.MoveDirection.Magnitude > 0.1 then
boardMomentum = math.min(1, boardMomentum + dt / 2.5 * (special and 2 or 1))
else
boardMomentum = math.max(0, boardMomentum - dt * 0.8)
end
local airborne = humanoid.FloorMaterial == Enum.Material.Air
local lift = 0
if airborne and rootPart.AssemblyLinearVelocity.Y < 0 and not isMobility then
lift = math.min(0.95, 0.55 + 0.06 * upl("BoardGlide") + (special and 0.1 or 0))
end
vf.Force = Vector3.new(0, rootPart.AssemblyMass * workspace.Gravity * lift, 0)
stamina = math.max(0, stamina - boardDrain() * dt)
lastStaminaUse = os.clock()
if stamina <= 0 then flashStaminaBar() break end
end
if token == boardToken then endBoard() end
end)
end
-- ---------- OVERCLOCKED HEART [T] ----------
function endSurge()
if not isSurging then return end
isSurging = false
surgeSession += 1
if not systemDestroyed then
TweenService:Create(surgeOverlay, TweenInfo.new(0.4), { BackgroundTransparency = 1 }):Play()
applyGlow("HeartGlow", Color3.fromRGB(255, 40, 55), 0)
end
restoreSpeed()
end
function activateSurge()
if not isEq("OverclockedHeart") or systemDestroyed or isImplanting or isSurging or not humanoid or humanoid.Health <= 0 or not rootPart then return end
if cooldowns.OverclockedHeart > 0 then return end
if not trySpend(surgeCost()) then return end
recordUse("OverclockedHeart")
captureBase()
isSurging = true
surgeSession += 1
local session = surgeSession
local dur = surgeDuration()
cooldowns.OverclockedHeart = 30 * mCd("OverclockedHeart")
updateHotbars()
restoreSpeed()
notify("ADRENALINE SURGE ENGAGED", Color3.fromRGB(255, 80, 90))
createShockwaveRing(CFrame.new(rootPart.Position - Vector3.new(0, 2.8, 0)), 3, 22, Color3.fromRGB(255, 60, 70), 0.4, true)
shakeCamera(1.0, 0.3)
task.spawn(function()
local t0 = os.clock()
while isSurging and session == surgeSession and not systemDestroyed and humanoid and humanoid.Health > 0 and os.clock() - t0 < dur do
local beat = (math.sin(os.clock() * 9) + 1) / 2
surgeOverlay.BackgroundTransparency = 0.9 - 0.1 * beat
applyGlow("HeartGlow", Color3.fromRGB(255, 40, 55):Lerp(Color3.new(1, 1, 1), beat * 0.6), 1 + beat * 3)
if mSpecial("OverclockedHeart") and humanoid.Health < humanoid.MaxHealth then -- L5 Regeneration
humanoid.Health = math.min(humanoid.MaxHealth, humanoid.Health + 0.2)
end
task.wait(0.05)
end
if session == surgeSession then endSurge() end
end)
end
-- ---------- MOTION SCANNER [N] ----------
function activateScanner()
if not isEq("MotionScanner") or systemDestroyed or isImplanting or not humanoid or humanoid.Health <= 0 or not rootPart then return end
if cooldowns.MotionScanner > 0 then return end
if not trySpend(scanCost()) then return end
recordUse("MotionScanner")
cooldowns.MotionScanner = 8 * mCd("MotionScanner")
updateHotbars()
local radius = scanRadius()
local special = mSpecial("MotionScanner")
local dur = special and 10 or 5
local pos = rootPart.Position
createShockwaveRing(CFrame.new(pos - Vector3.new(0, 2.8, 0)), 4, radius * 2, C.CYAN, 0.8, true)
createShockwaveRing(CFrame.new(pos), 4, radius * 2, Color3.fromRGB(180, 255, 255), 0.6, false)
scanOverlay.BackgroundTransparency = 0.8
TweenService:Create(scanOverlay, TweenInfo.new(0.6), { BackgroundTransparency = 1 }):Play()
local op = OverlapParams.new()
op.FilterType = Enum.RaycastFilterType.Exclude
op.FilterDescendantsInstances = { character }
local found, list = {}, {}
for _, part in ipairs(workspace:GetPartBoundsInRadius(pos, radius, op)) do
local model = part:FindFirstAncestorOfClass("Model")
if model and not found[model] and model ~= character and model:FindFirstChildOfClass("Humanoid") then
found[model] = true
table.insert(list, model)
if #list >= 20 then break end
end
end
for _, model in ipairs(list) do
local hl = new("Highlight", {
Name = "CWScan", Adornee = model, FillColor = Color3.fromRGB(255, 60, 80), FillTransparency = 0.55,
OutlineColor = C.CYAN, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop,
}, model)
task.delay(dur, function() if hl.Parent then hl:Destroy() end end)
local root = model:FindFirstChild("HumanoidRootPart") or model.PrimaryPart
if special and root then -- L5 Deep Scan: distance tags
local bb = new("BillboardGui", {
Name = "CWScan", Adornee = root, Size = UDim2.new(0, 90, 0, 18), StudsOffset = Vector3.new(0, 3.5, 0), AlwaysOnTop = true,
}, model)
local tl = new("TextLabel", {
Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, TextColor3 = C.CYAN, Font = Enum.Font.Code, TextSize = 13, Text = "",
}, bb)
task.spawn(function()
local t0 = os.clock()
while bb.Parent and os.clock() - t0 < dur and not systemDestroyed do
if rootPart and rootPart.Parent and root.Parent then
tl.Text = string.format("%d studs", (root.Position - rootPart.Position).Magnitude)
end
task.wait(0.1)
end
if bb.Parent then bb:Destroy() end
end)
end
end
notify(string.format("MOTION SCAN: %d SIGNATURE%s", #list, #list == 1 and "" or "S"), C.CYAN)
end
-- ---------- PASSIVE TRIGGERS ----------
function onJump()
trackEvent("jumps", nil, 1)
if isEq("BionicJoints") then
recordUse("BionicJoints")
if mSpecial("BionicJoints") then -- L5 Spring Surge: every 3rd jump
jointJumps += 1
if jointJumps % 3 == 0 then
task.delay(0.05, function()
if systemDestroyed or not rootPart or not rootPart.Parent then return end
local v = rootPart.AssemblyLinearVelocity
rootPart.AssemblyLinearVelocity = Vector3.new(v.X, v.Y + 22, v.Z)
createShockwaveRing(CFrame.new(rootPart.Position - Vector3.new(0, 2.8, 0)), 2, 12, C.CYAN, 0.3, true)
end)
end
end
end
uiDirty = true
end
function onLand()
local impact = -fallVelMin
fallVelMin = 0
if impact > 65 and isEq("TitaniumSkeleton") and rootPart and rootPart.Parent then
recordUse("TitaniumSkeleton")
local special = mSpecial("TitaniumSkeleton") -- L5 Shockwave Landing
stamina = math.min(getMaxStamina(), stamina + (special and 30 or 12))
createShockwaveRing(CFrame.new(rootPart.Position - Vector3.new(0, 2.8, 0)), 3, special and 28 or 16, Color3.fromRGB(200, 230, 255), 0.35, true)
shakeCamera(0.6, 0.15)
end
end
-- ---------- CLEANUP (respawn / destroy) ----------
function endMobility()
mobToken += 1
isMobility, isThrusting, isGrappling, grappleStop = false, false, false, false
endBoard()
endSurge()
if rootPart then
for _, c in ipairs(rootPart:GetChildren()) do
if c.Name == "CWMob" or c.Name == "CWBoardForce" then c:Destroy() end
end
end
if mobFolder then mobFolder:ClearAllChildren() end
if mobBar then hideMobBar() end
end
ACTIVATE.Sandevistan = activateSandevistan
ACTIVATE.LaunchCannon = activateLaunchCannon
ACTIVATE.MantisBlades = activateMantis
ACTIVATE.GrappleLauncher = activateGrapple
ACTIVATE.RocketFist = activateRocketFist
ACTIVATE.DashKatana = activateKatana
ACTIVATE.RailgunBoots = activateRailgun
ACTIVATE.KineticBoard = toggleBoard
ACTIVATE.OverclockedHeart = activateSurge
ACTIVATE.MotionScanner = activateScanner
-- cooldown countdown (Adrenaline Surge ticks cooldowns twice as fast)
RunService.Heartbeat:Connect(function(dt)
if systemDestroyed then return end
local any = false
local rate = isSurging and 2 or 1
for id, v in pairs(cooldowns) do
if v > 0 then
cooldowns[id] = math.max(0, v - dt * rate)
any = true
end
end
if any and updateHotbars then updateHotbars() end
end)
-- ==========================================
-- HUD (top-left: steps, HP, stamina)
-- ==========================================
hudFrame = createCyberFrame(mainGui, UDim2.new(0, 480, 0, 54), UDim2.new(0, 16, 0, 16), C.GREEN, Color3.fromRGB(12, 16, 18), 0.1)
stepsLabel = new("TextLabel", {
Size = UDim2.new(0, 130, 1, 0), Position = UDim2.new(0, 10, 0, 0), BackgroundTransparency = 1, Text = "STEPS: 0",
TextColor3 = Color3.fromRGB(180, 255, 0), Font = Enum.Font.Code, TextSize = 18, TextXAlignment = Enum.TextXAlignment.Left,
}, hudFrame)
cyberBtn = new("TextButton", {
Size = UDim2.new(0, 145, 0, 38), Position = UDim2.new(0, 145, 0.5, -19), BackgroundColor3 = Color3.fromRGB(22, 34, 30),
Text = " CYBERWARE", TextColor3 = C.GREEN, Font = Enum.Font.GothamBold, TextSize = 13,
}, hudFrame)
new("UIStroke", { Color = C.GREEN }, cyberBtn)
new("ImageLabel", {
Size = UDim2.new(0, 22, 0, 22), Position = UDim2.new(0, 8, 0.5, -11), BackgroundTransparency = 1,
Image = "rbxassetid://6034509993", ImageColor3 = C.GREEN,
}, cyberBtn)
destroyBtn = new("TextButton", {
Size = UDim2.new(0, 82, 0, 38), Position = UDim2.new(0, 298, 0.5, -19), BackgroundColor3 = Color3.fromRGB(65, 22, 22),
Text = "DESTROY", TextColor3 = Color3.fromRGB(255, 110, 110), Font = Enum.Font.GothamBold, TextSize = 12,
}, hudFrame)
new("UIStroke", { Color = Color3.fromRGB(220, 60, 60) }, destroyBtn)
-- NEW: quest button
questBtn = new("TextButton", {
Size = UDim2.new(0, 90, 0, 38), Position = UDim2.new(0, 386, 0.5, -19), BackgroundColor3 = Color3.fromRGB(40, 34, 14),
Text = "QUEST", TextColor3 = C.YELLOW, Font = Enum.Font.GothamBold, TextSize = 12,
}, hudFrame)
new("UIStroke", { Color = C.YELLOW }, questBtn)
function makeBar(y, color)
local frame, stroke = createCyberFrame(mainGui, UDim2.new(0, 390, 0, 22), UDim2.new(0, 16, 0, y), color, Color3.fromRGB(12, 16, 18), 0.1)
local track = new("Frame", { Size = UDim2.new(1, -8, 1, -8), Position = UDim2.new(0, 4, 0, 4), BackgroundColor3 = Color3.fromRGB(25, 35, 32), BorderSizePixel = 0 }, frame)
local fill = new("Frame", { Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = color, BorderSizePixel = 0 }, track)
local label = new("TextLabel", {
Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, Text = "", TextColor3 = Color3.fromRGB(240, 255, 245),
Font = Enum.Font.Code, TextSize = 11, ZIndex = 3,
}, track)
return fill, label, stroke
end
hpFill, hpLabel = makeBar(78, Color3.fromRGB(255, 70, 70))
staminaFill, staminaLabel, staminaStroke = makeBar(104, C.GREEN)
-- NEW: eddies / materials readout under the bars
eddiesLabel = new("TextLabel", {
Size = UDim2.new(0, 390, 0, 20), Position = UDim2.new(0, 16, 0, 130), BackgroundTransparency = 1, Text = "EDDIES: 0",
TextColor3 = C.YELLOW, Font = Enum.Font.Code, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left,
}, mainGui)
function updateHpBar()
if not humanoid or not humanoid.Parent or not hpFill.Parent then return end
local mh = math.max(1, humanoid.MaxHealth)
local r = math.clamp(humanoid.Health / mh, 0, 1)
hpFill.Size = UDim2.new(r, 0, 1, 0)
hpFill.BackgroundColor3 = r > 0.5 and Color3.fromRGB(255, 70, 70) or Color3.fromRGB(255, 40, 40):Lerp(Color3.fromRGB(255, 190, 40), r)
hpLabel.Text = string.format("HP %d / %d", math.floor(humanoid.Health + 0.5), math.floor(mh))
end
staminaFlashing = false
updateStaminaBar = function()
if systemDestroyed or not staminaFill.Parent then return end
local maxS = getMaxStamina()
local ratio = math.clamp(stamina / maxS, 0, 1)
staminaFill.Size = UDim2.new(ratio, 0, 1, 0)
if ratio > 0.5 then staminaFill.BackgroundColor3 = C.GREEN
elseif ratio > 0.25 then staminaFill.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
else staminaFill.BackgroundColor3 = Color3.fromRGB(255, 60, 60) end
staminaLabel.Text = string.format("STAMINA %d / %d", math.floor(stamina + 0.5), maxS)
end
flashStaminaBar = function()
if systemDestroyed or staminaFlashing then return end
staminaFlashing = true
staminaStroke.Color = Color3.fromRGB(255, 50, 50)
task.delay(0.35, function()
staminaFlashing = false
if not systemDestroyed and staminaStroke.Parent then staminaStroke.Color = C.GREEN end
end)
end
uiTimer, resetTimer = 0, 0
RunService.Heartbeat:Connect(function(dt)
if systemDestroyed then return end
if isSandevistanActive then
stamina = math.max(0, stamina - sandyDrain() * dt)
lastStaminaUse = os.clock()
if stamina <= 0 then endSandevistan() flashStaminaBar() end
elseif stamina < getMaxStamina() and os.clock() - lastStaminaUse >= getRegenDelay() then
stamina = math.min(getMaxStamina(), stamina + getRegenRate() * dt)
end
-- Oxygen Booster: emergency injection when stamina is nearly empty
if isEq("OxygenBooster") and not isImplanting and humanoid and humanoid.Health > 0 and rootPart then
local maxS = getMaxStamina()
local cd = 45 * mCd("OxygenBooster") * (mSpecial("OxygenBooster") and 0.55 or 1)
if stamina / maxS < 0.15 and os.clock() - lastOxyInject >= cd then
lastOxyInject = os.clock()
stamina = math.min(maxS, stamina + maxS * oxygenRefill())
recordUse("OxygenBooster")
notify("OXYGEN BOOSTER: EMERGENCY INJECTION", C.CYAN)
createShockwaveRing(CFrame.new(rootPart.Position - Vector3.new(0, 2.8, 0)), 3, 14, C.CYAN, 0.35, true)
end
end
-- fall speed tracking (Titanium Skeleton landings)
if rootPart and humanoid and humanoid.FloorMaterial == Enum.Material.Air then
fallVelMin = math.min(fallVelMin, rootPart.AssemblyLinearVelocity.Y)
end
updateStaminaBar()
updateHpBar()
-- throttled UI / quest maintenance
uiTimer += dt
if uiTimer >= 0.25 then
uiTimer = 0
if uiDirty or questUiDirty then
uiDirty, questUiDirty = false, false
updateHudAndMenus()
end
end
resetTimer += dt
if resetTimer >= 1 then
resetTimer = 0
checkQuestResets()
if questFrame and questFrame.Visible then refreshQuestUI() end
end
end)
-- ==========================================
-- TOOLTIP
-- ==========================================
tooltip = new("Frame", {
Size = UDim2.new(0, 290, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = Color3.fromRGB(16, 5, 8),
BackgroundTransparency = 0.04, BorderSizePixel = 0, Visible = false, ZIndex = 100,
}, mainGui)
ttStroke = new("UIStroke", { Color = C.RED, Thickness = 1.5 }, tooltip)
new("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder }, tooltip)
new("UIPadding", { PaddingTop = UDim.new(0, 8), PaddingBottom = UDim.new(0, 8), PaddingLeft = UDim.new(0, 10), PaddingRight = UDim.new(0, 10) }, tooltip)
function ttLabel(order, size, color, font)
return new("TextLabel", {
LayoutOrder = order, Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1,
TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, TextColor3 = color, Font = font, TextSize = size, Text = "", ZIndex = 101,
}, tooltip)
end
ttName = ttLabel(1, 17, C.RED, Enum.Font.GothamBlack)
ttType = ttLabel(2, 11, Color3.fromRGB(190, 150, 150), Enum.Font.Code)
ttCost = ttLabel(3, 13, C.YELLOW, Enum.Font.Code)
ttDesc = ttLabel(4, 12, Color3.fromRGB(225, 215, 215), Enum.Font.Code)
tooltipTarget = nil
function showTooltip(id)
local it = ITEM_BY_ID[id]
if not it then return end
local rc = rarityColor(it.Rarity)
local rtxt = it.Rarity and (" // " .. RARITY[it.Rarity].Name) or ""
ttName.Text = string.upper(it.Name)
ttName.TextColor3 = rc
ttStroke.Color = rc
if it.Type == "Cyber" then ttType.Text = "CYBERWARE // " .. it.Category .. rtxt
elseif it.Type == "Item" then ttType.Text = "ITEM // HOTBAR" .. rtxt
else ttType.Text = "CLOTHING // PASSIVE" .. rtxt end
local cost = staminaCostOf(it)
local costText = cost and ("STAMINA COST: " .. cost) or "PASSIVE - NO STAMINA COST"
if it.Type == "Cyber" then costText ..= string.format(" MASTERY L%d", masteryLevel(id)) end
ttCost.Text = costText
ttDesc.Text = it.Desc
tooltip.Visible = true
end
function attachTooltip(gui, getId)
gui.MouseEnter:Connect(function()
local id = getId()
if id then showTooltip(id) tooltipTarget = gui end
end)
gui.MouseLeave:Connect(function()
if tooltipTarget == gui then tooltip.Visible = false tooltipTarget = nil end
end)
end
function guiShown(g)
while g and g:IsA("GuiObject") do
if not g.Visible then return false end
g = g.Parent
end
return true
end
RunService.RenderStepped:Connect(function()
if not tooltip.Visible then return end
if not tooltipTarget or not tooltipTarget.Parent or not guiShown(tooltipTarget) then
tooltip.Visible = false
tooltipTarget = nil
return
end
local m = UserInputService:GetMouseLocation() - GuiService:GetGuiInset()
local vp = camera.ViewportSize
tooltip.Position = UDim2.new(0, math.min(m.X + 18, vp.X - 300), 0, math.min(m.Y + 18, vp.Y - tooltip.AbsoluteSize.Y - 50))
end)
-- ==========================================
-- HOTBARS (passives / equipped cyberware / items)
-- ==========================================
function makeHotbar(width, y, headerText, height)
local f = createCyberFrame(mainGui, UDim2.new(0, width, 0, height or 68), UDim2.new(0, 16, 1, y), Color3.fromRGB(115, 185, 115), Color3.fromRGB(14, 18, 18), 0.2)
new("TextLabel", {
Size = UDim2.new(1, 0, 0, 16), Position = UDim2.new(0, 0, 0, -17), BackgroundColor3 = Color3.fromRGB(115, 185, 115),
Text = headerText, TextColor3 = Color3.fromRGB(10, 15, 10), Font = Enum.Font.Code, TextSize = 12,
}, f)
return f
end
-- Equipped cyberware (active): 4 columns, rows grow with the number of active implants
HB_COLS = 4
hbRows = math.ceil(#ACTIVE_CYBER / HB_COLS)
hbHeight = 8 + hbRows * 58
hotbarY = -(16 + hbHeight)
-- Passives (6 slots, 3 columns) stacked above the equipped bar
PASSIVE_SLOTS = 6
psRows = math.ceil(PASSIVE_SLOTS / 3)
psHeight = 8 + psRows * 58
passiveFrame = makeHotbar(340, hotbarY - 32 - psHeight, "Passives", psHeight)
passiveSlots, passiveIds = {}, {}
for i = 1, PASSIVE_SLOTS do
local col, row = (i - 1) % 3, math.floor((i - 1) / 3)
local b = new("TextButton", {
Size = UDim2.new(0, 104, 0, 52), Position = UDim2.new(0, 8 + col * 110, 0, 8 + row * 58), BackgroundColor3 = Color3.fromRGB(28, 32, 32),
Text = "EMPTY", TextColor3 = Color3.fromRGB(110, 110, 110), Font = Enum.Font.Code, TextSize = 11, TextWrapped = true, AutoButtonColor = false,
}, passiveFrame)
passiveSlots[i] = b
attachTooltip(b, function() return passiveIds[i] end)
end
hotbarFrame = makeHotbar(8 + HB_COLS * 110, hotbarY, "Equipped Cyberware", hbHeight)
hotbarSlots = {}
for i, item in ipairs(ACTIVE_CYBER) do
local col, row = (i - 1) % HB_COLS, math.floor((i - 1) / HB_COLS)
local b = new("TextButton", {
Size = UDim2.new(0, 104, 0, 52), Position = UDim2.new(0, 8 + col * 110, 0, 8 + row * 58), BackgroundColor3 = Color3.fromRGB(28, 32, 32),
Text = "[" .. item.KeyText .. "]\nLOCKED", TextColor3 = Color3.fromRGB(130, 130, 130), Font = Enum.Font.Code, TextSize = 11,
TextWrapped = true, AutoButtonColor = false,
}, hotbarFrame)
new("UIStroke", { Color = rarityColor(item.Rarity), Thickness = 1.2 }, b)
hotbarSlots[item.Id] = b
attachTooltip(b, function() return owned[item.Id] and item.Id or nil end)
if item.Id == "Dasher" then
b.MouseButton1Down:Connect(beginDasherCharge)
b.MouseButton1Up:Connect(function() endDasherCharge() end)
b.MouseLeave:Connect(function() endDasherCharge() end)
elseif item.Id == "ShoulderThrusters" then
b.MouseButton1Down:Connect(beginThrusters)
b.MouseButton1Up:Connect(endThrusters)
b.MouseLeave:Connect(endThrusters)
else
b.MouseButton1Click:Connect(function()
local fn = ACTIVATE[item.Id]
if fn then fn() end
end)
end
end
-- Item hotbar (bottom-middle, 5 slots)
itemBar = createCyberFrame(mainGui, UDim2.new(0, 360, 0, 74), UDim2.new(0.5, -180, 1, -90), C.ORANGE, Color3.fromRGB(14, 10, 10), 0.15)
itemSlots = {}
numKeys = { Enum.KeyCode.One, Enum.KeyCode.Two, Enum.KeyCode.Three, Enum.KeyCode.Four, Enum.KeyCode.Five }
for i = 1, 5 do
local b = new("TextButton", {
Size = UDim2.new(0, 64, 0, 62), Position = UDim2.new(0, 6 + (i - 1) * 70, 0, 6), BackgroundColor3 = Color3.fromRGB(30, 22, 22),
Text = tostring(i), TextColor3 = Color3.fromRGB(120, 100, 100), Font = Enum.Font.Code, TextSize = 12, TextWrapped = true,
AutoButtonColor = false,
}, itemBar)
local st = new("UIStroke", { Color = Color3.fromRGB(90, 50, 40), Thickness = 1.5 }, b)
itemSlots[i] = { btn = b, stroke = st }
b.MouseButton1Click:Connect(function() selectSlot(i) end)
attachTooltip(b, function() return itemHotbar[i] or nil end)
end
ammoLabel = new("TextLabel", {
Size = UDim2.new(0, 360, 0, 22), Position = UDim2.new(0.5, -180, 1, -118), BackgroundTransparency = 1, Text = "",
TextColor3 = C.ORANGE, Font = Enum.Font.Code, TextSize = 15,
}, mainGui)
reloadTrack = new("Frame", {
Size = UDim2.new(0, 360, 0, 4), Position = UDim2.new(0.5, -180, 1, -96), BackgroundColor3 = Color3.fromRGB(40, 30, 20),
BorderSizePixel = 0, Visible = false,
}, mainGui)
reloadFill = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = C.ORANGE, BorderSizePixel = 0 }, reloadTrack)
updateAmmoUI = function(progress)
if systemDestroyed then return end
local show = inHotbar("Pistol") ~= nil
ammoLabel.Visible = show
if not show then reloadTrack.Visible = false return end
if reloading then
ammoLabel.Text = "PISTOL RELOADING..."
reloadTrack.Visible = true
reloadFill.Size = UDim2.new(math.clamp(progress or 0, 0, 1), 0, 1, 0)
else
ammoLabel.Text = string.format("PISTOL %d / %d", ammo, gunMag())
reloadTrack.Visible = false
end
end
-- ==========================================
-- IMPLANT PROCEDURE (surgery sequence)
-- ==========================================
IMPL_CYAN, IMPL_GREEN = Color3.fromRGB(0, 235, 255), Color3.fromRGB(0, 255, 170)
implantOverlay = new("Frame", {
Name = "ImplantOverlay", Size = UDim2.new(1, 0, 1, 100), Position = UDim2.new(0, 0, 0, -50), BackgroundColor3 = Color3.fromRGB(2, 6, 8),
BackgroundTransparency = 0.15, BorderSizePixel = 0, Active = true, Visible = false, ZIndex = 50,
}, mainGui)
implantPanel = createCyberFrame(implantOverlay, UDim2.new(0, 640, 0, 420), UDim2.new(0.5, -320, 0.5, -210), IMPL_CYAN, Color3.fromRGB(10, 16, 20), 0.05)
function mkLabel(parent, text, size, pos, color, textSize, font)
return new("TextLabel", {
BackgroundTransparency = 1, Size = size, Position = pos, Text = text, TextColor3 = color, TextSize = textSize,
Font = font or Enum.Font.Code, TextXAlignment = Enum.TextXAlignment.Left,
}, parent)
end
implantTitle = mkLabel(implantPanel, "", UDim2.new(1, -20, 0, 34), UDim2.new(0, 10, 0, 8), IMPL_CYAN, 16, Enum.Font.GothamBlack)
bodyArea = new("Frame", {
Size = UDim2.new(0, 220, 0, 340), Position = UDim2.new(0, 20, 0, 50), BackgroundColor3 = Color3.fromRGB(6, 14, 16),
BackgroundTransparency = 0.2, BorderSizePixel = 0, ClipsDescendants = true,
}, implantPanel)
new("UIStroke", { Color = Color3.fromRGB(0, 120, 130) }, bodyArea)
function bodyPart(cx, cy, w, h, round)
local f = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0, cx, 0, cy), Size = UDim2.new(0, w, 0, h),
BackgroundColor3 = Color3.fromRGB(12, 38, 42), BackgroundTransparency = 0.3, BorderSizePixel = 0,
}, bodyArea)
new("UICorner", { CornerRadius = UDim.new(0, round or 4) }, f)
new("UIStroke", { Color = Color3.fromRGB(0, 150, 160), Thickness = 1.5 }, f)
end
bodyPart(110, 40, 52, 52, 10) bodyPart(110, 130, 90, 100, 6) bodyPart(176, 130, 30, 100, 6)
bodyPart(44, 130, 30, 100, 6) bodyPart(89, 243, 40, 120, 6) bodyPart(131, 243, 40, 120, 6)
new("Frame", {
AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0, 110, 0, 130), Size = UDim2.new(0, 4, 0, 92),
BackgroundColor3 = Color3.fromRGB(0, 150, 160), BackgroundTransparency = 0.4, BorderSizePixel = 0,
}, bodyArea)
IMPLANT_TARGETS = {
Spine = { { x = 110, y = 130, w = 18, h = 96 } },
Arms = { { x = 176, y = 130, w = 30, h = 100 } },
BothArms = { { x = 176, y = 130, w = 30, h = 100 }, { x = 44, y = 130, w = 30, h = 100 } },
Legs = { { x = 89, y = 243, w = 40, h = 120 }, { x = 131, y = 243, w = 40, h = 120 } },
Chest = { { x = 110, y = 105, w = 64, h = 46 } },
-- v3 zones
LeftHand = { { x = 44, y = 168, w = 30, h = 34 } },
RightHand = { { x = 176, y = 168, w = 30, h = 34 } },
Shoulders = { { x = 66, y = 90, w = 34, h = 24 }, { x = 154, y = 90, w = 34, h = 24 } },
Hip = { { x = 72, y = 172, w = 30, h = 26 } },
Feet = { { x = 89, y = 296, w = 40, h = 34 }, { x = 131, y = 296, w = 40, h = 34 } },
Skeleton = { { x = 110, y = 130, w = 18, h = 100 }, { x = 110, y = 108, w = 70, h = 14 } },
Joints = { { x = 89, y = 214, w = 28, h = 22 }, { x = 131, y = 214, w = 28, h = 22 }, { x = 44, y = 130, w = 28, h = 22 }, { x = 176, y = 130, w = 28, h = 22 } },
Heart = { { x = 121, y = 108, w = 26, h = 26 } },
Face = { { x = 110, y = 40, w = 52, h = 26 } },
}
IMPLANT_COLORS = {
Spine = Color3.fromRGB(0, 255, 235), Arms = Color3.fromRGB(255, 140, 30), BothArms = Color3.fromRGB(255, 60, 80),
Legs = Color3.fromRGB(255, 170, 40), Chest = Color3.fromRGB(120, 200, 255),
LeftHand = Color3.fromRGB(255, 160, 50), RightHand = Color3.fromRGB(255, 110, 40), Shoulders = Color3.fromRGB(255, 190, 70),
Hip = Color3.fromRGB(255, 70, 90), Feet = Color3.fromRGB(255, 90, 90), Skeleton = Color3.fromRGB(200, 230, 255),
Joints = Color3.fromRGB(0, 235, 255), Heart = Color3.fromRGB(255, 50, 70), Face = Color3.fromRGB(0, 235, 255),
}
MATERIAL_COLORS = {
Color3.fromRGB(200, 210, 220), Color3.fromRGB(255, 170, 40), Color3.fromRGB(0, 235, 255),
Color3.fromRGB(255, 60, 90), Color3.fromRGB(150, 255, 120),
}
implantLog = mkLabel(implantPanel, "", UDim2.new(0, 360, 0, 160), UDim2.new(0, 260, 0, 50), IMPL_GREEN, 13)
implantLog.BackgroundTransparency = 0.6
implantLog.BackgroundColor3 = Color3.new(0, 0, 0)
implantLog.TextYAlignment = Enum.TextYAlignment.Top
implantLog.TextWrapped = true
mkLabel(implantPanel, "MATERIALS", UDim2.new(0, 200, 0, 14), UDim2.new(0, 260, 0, 216), Color3.fromRGB(150, 175, 180), 11)
materialSlots, materialSlotLabels = {}, {}
for k = 1, 5 do
local slot = new("Frame", {
Size = UDim2.new(0, 66, 0, 46), Position = UDim2.new(0, 260 + (k - 1) * 72, 0, 232), BackgroundColor3 = Color3.fromRGB(18, 30, 34), BorderSizePixel = 0,
}, implantPanel)
new("UIStroke", { Color = Color3.fromRGB(0, 150, 160) }, slot)
materialSlotLabels[k] = new("TextLabel", {
Size = UDim2.new(1, -4, 1, -4), Position = UDim2.new(0, 2, 0, 2), BackgroundTransparency = 1, Text = "",
TextColor3 = Color3.fromRGB(180, 230, 235), Font = Enum.Font.Code, TextSize = 9, TextWrapped = true,
}, slot)
materialSlots[k] = slot
end
implantProgressLabel = mkLabel(implantPanel, "", UDim2.new(0, 360, 0, 16), UDim2.new(0, 260, 0, 292), IMPL_CYAN, 12)
implantTrack = new("Frame", {
Size = UDim2.new(0, 360, 0, 16), Position = UDim2.new(0, 260, 0, 312), BackgroundColor3 = Color3.fromRGB(15, 28, 30), BorderSizePixel = 0,
}, implantPanel)
new("UIStroke", { Color = IMPL_CYAN }, implantTrack)
implantFill = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = IMPL_CYAN, BorderSizePixel = 0 }, implantTrack)
implantWarning = mkLabel(implantPanel, "WARNING: TISSUE REJECTION / CYBERPSYCHOSIS RISK DETECTED", UDim2.new(0, 360, 0, 36), UDim2.new(0, 260, 0, 340), Color3.fromRGB(255, 70, 70), 11)
implantWarning.TextWrapped = true
implantWarning.TextYAlignment = Enum.TextYAlignment.Top
function runImplantProcedure(item)
if isImplanting or systemDestroyed then return end
isImplanting = true
endDasherCharge()
endThrusters()
endBoard()
local hum = humanoid
local prevJumpPower, prevJumpHeight
if hum and hum.Parent then
prevJumpPower, prevJumpHeight = hum.JumpPower, hum.JumpHeight
hum.WalkSpeed, hum.JumpPower, hum.JumpHeight = 0, 0, 0
end
local DURATION = IMPLANT_TIME
local slotColor = IMPLANT_COLORS[item.Zone] or IMPL_GREEN
local targets = IMPLANT_TARGETS[item.Zone] or IMPLANT_TARGETS.Spine
local mats = item.Materials
implantTitle.Text = "// RIPPERDOC PROCEDURE - INSTALLING: " .. string.upper(item.Name)
implantTitle.TextColor3 = IMPL_CYAN
implantFill.Size = UDim2.new(0, 0, 1, 0)
implantFill.BackgroundColor3 = IMPL_CYAN
implantProgressLabel.Text = "IMPLANT PROGRESS: 0%"
for k = 1, 5 do
materialSlots[k].BackgroundColor3 = Color3.fromRGB(18, 30, 34)
materialSlotLabels[k].Text = mats[k] or ""
materialSlotLabels[k].TextColor3 = Color3.fromRGB(180, 230, 235)
end
implantOverlay.Visible = true
local glows = {}
for _, t in ipairs(targets) do
local g = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0, t.x, 0, t.y), Size = UDim2.new(0, t.w, 0, t.h),
BackgroundColor3 = slotColor, BackgroundTransparency = 1, BorderSizePixel = 0, ZIndex = 3,
}, bodyArea)
new("UICorner", { CornerRadius = UDim.new(0, 4) }, g)
new("UIStroke", { Color = slotColor, Thickness = 2 }, g)
table.insert(glows, g)
end
local scan = new("Frame", { Size = UDim2.new(1, 0, 0, 2), BackgroundColor3 = IMPL_CYAN, BorderSizePixel = 0, ZIndex = 4 }, bodyArea)
local scanTween = TweenService:Create(scan, TweenInfo.new(1.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true), { Position = UDim2.new(0, 0, 1, -2) })
scanTween:Play()
local function launchMaterial(k)
local startPos = UDim2.new(0, 260 + (k - 1) * 72 + 33, 0, 232 + 23)
local tgt = targets[((k - 1) % #targets) + 1]
local endPos = UDim2.new(0, 20 + tgt.x, 0, 50 + tgt.y)
materialSlots[k].BackgroundColor3 = Color3.fromRGB(8, 14, 16)
materialSlotLabels[k].TextColor3 = Color3.fromRGB(90, 110, 115)
local m = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.new(0, 16, 0, 16), Position = startPos, BackgroundColor3 = MATERIAL_COLORS[k],
BorderSizePixel = 0, ZIndex = 6,
}, implantPanel)
new("UICorner", { CornerRadius = UDim.new(0, 3) }, m)
new("UIStroke", { Color = Color3.new(1, 1, 1) }, m)
local fly = TweenService:Create(m, TweenInfo.new(0.9, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
Position = endPos, Rotation = 360, Size = UDim2.new(0, 8, 0, 8),
})
fly:Play()
fly.Completed:Connect(function()
m:Destroy()
if systemDestroyed then return end
for _, g in ipairs(glows) do
g.BackgroundTransparency = 0.1
TweenService:Create(g, TweenInfo.new(0.35), { BackgroundTransparency = 1 - 0.18 * k }):Play()
end
for _ = 1, 5 do
local sp = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0.5), Size = UDim2.new(0, 4, 0, 4), Position = endPos,
BackgroundColor3 = MATERIAL_COLORS[k], BorderSizePixel = 0, ZIndex = 6,
}, implantPanel)
local tw = TweenService:Create(sp, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
Position = endPos + UDim2.new(0, math.random(-30, 30), 0, math.random(-30, 30)), BackgroundTransparency = 1,
})
tw:Play()
tw.Completed:Connect(function() sp:Destroy() end)
end
end)
end
local statusEvents = {
{ 0.00, "ADMINISTERING ANESTHETIC" }, { 0.12, "SURGICAL LASERS ONLINE" }, { 0.24, "OPENING INSTALL PORT" },
{ 0.38, "SEATING " .. string.upper(item.Name) .. " HARDWARE" }, { 0.54, "SPLICING NEURAL PATHWAYS" },
{ 0.70, "SYNCING WITH NERVOUS SYSTEM" }, { 0.84, "CALIBRATING IMPLANT" }, { 0.94, "RUNNING FINAL DIAGNOSTICS" },
}
local matTimes = { 0.08, 0.24, 0.40, 0.56, 0.72 }
local lines = {}
local function renderLog(blink)
local out = {}
for i, l in ipairs(lines) do
if i < #lines then table.insert(out, "> " .. l .. " [OK]")
else table.insert(out, "> " .. l .. (blink and " _" or " ")) end
end
implantLog.Text = table.concat(out, "\n")
end
local startT = os.clock()
local nextEvent, nextMat = 1, 1
while not systemDestroyed do
local t = os.clock() - startT
if t >= DURATION then break end
while nextEvent <= #statusEvents and t >= statusEvents[nextEvent][1] * DURATION do
table.insert(lines, statusEvents[nextEvent][2])
if #lines > 9 then table.remove(lines, 1) end
nextEvent += 1
end
while nextMat <= #mats and t >= matTimes[nextMat] * DURATION do
launchMaterial(nextMat)
nextMat += 1
end
local pct = math.clamp(t / DURATION, 0, 1)
implantFill.Size = UDim2.new(pct, 0, 1, 0)
implantProgressLabel.Text = string.format("IMPLANT PROGRESS: %d%% T-%.1fs", math.floor(pct * 100), DURATION - t)
renderLog(math.floor(t * 3) % 2 == 0)
implantTitle.TextColor3 = (math.random() < 0.08) and Color3.new(1, 1, 1) or IMPL_CYAN
implantWarning.TextTransparency = (math.floor(t * 3) % 2 == 0) and 0 or 0.55
task.wait(0.05)
end
scanTween:Cancel()
scan:Destroy()
implantWarning.TextTransparency = 0
local function restorePlayer()
isImplanting = false
if hum and hum.Parent then
hum.JumpPower = prevJumpPower or hum.JumpPower
hum.JumpHeight = prevJumpHeight or hum.JumpHeight
if hum == humanoid then
restoreSpeed()
if applyJumpStats then applyJumpStats() end -- re-apply Bionic Joints jump boost
end
end
end
if systemDestroyed then restorePlayer() return end
owned[item.Id] = true
equipCyber(item.Id)
applyStats()
refreshVisualAugments()
updateHudAndMenus()
notify("INSTALLED: " .. item.Name, rarityColor(item.Rarity))
implantFill.Size = UDim2.new(1, 0, 1, 0)
implantProgressLabel.Text = "IMPLANT PROGRESS: 100%"
for _, g in ipairs(glows) do TweenService:Create(g, TweenInfo.new(0.2), { BackgroundTransparency = 0.05 }):Play() end
if math.random() < IMPLANT_INJURY_CHANCE then
table.insert(lines, "IMPLANT SEATED - TISSUE TRAUMA DETECTED")
table.insert(lines, "VITALS: -" .. IMPLANT_INJURY_DAMAGE .. " HP")
implantFill.BackgroundColor3 = Color3.fromRGB(255, 60, 60)
implantTitle.Text = "// IMPLANT COMPLETE - INJURY SUSTAINED"
implantTitle.TextColor3 = Color3.fromRGB(255, 90, 90)
local h = humanoid
if h and h.Parent and h.Health > 0 then
local nh = h.Health - IMPLANT_INJURY_DAMAGE
if not IMPLANT_INJURY_CAN_KILL then nh = math.max(1, nh) end
h.Health = math.max(0, nh)
end
injuryFlash.BackgroundTransparency = 0.3
TweenService:Create(injuryFlash, TweenInfo.new(0.9, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { BackgroundTransparency = 1 }):Play()
shakeCamera(1.5, 0.4)
else
table.insert(lines, "IMPLANT SEATED - NO COMPLICATIONS")
implantTitle.Text = "// IMPLANT COMPLETE - SUCCESS"
implantTitle.TextColor3 = IMPL_GREEN
end
while #lines > 9 do table.remove(lines, 1) end
renderLog(false)
task.wait(2.4)
for _, g in ipairs(glows) do g:Destroy() end
if not systemDestroyed then implantOverlay.Visible = false end
restorePlayer()
end
-- ==========================================
-- CYBERWARE MENU (Cyberpunk 2077 style)
-- ==========================================
menuOverlay = new("Frame", {
Size = UDim2.new(1, 0, 1, 0), BackgroundColor3 = Color3.new(1, 1, 1), BackgroundTransparency = 0.04, Visible = false, ZIndex = 10,
}, mainGui)
new("UIGradient", {
Rotation = 90,
Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.fromRGB(58, 10, 16)), ColorSequenceKeypoint.new(1, Color3.fromRGB(8, 3, 6)) }),
}, menuOverlay)
menuRoot = new("Frame", {
AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.new(0.5, 0, 0.5, 0), Size = UDim2.new(0, 1200, 0, 660), BackgroundTransparency = 1,
}, menuOverlay)
menuScale = new("UIScale", {}, menuRoot)
windowScales = {} -- { sc = UIScale, w = , h = }
function rescaleMenu()
local vp = camera.ViewportSize
menuScale.Scale = math.clamp(math.min(vp.X / 1240, (vp.Y - 40) / 700), 0.35, 1.2)
for _, e in ipairs(windowScales) do
e.sc.Scale = math.clamp(math.min(vp.X / (e.w + 60), (vp.Y - 40) / (e.h + 70)), 0.4, 1.1)
end
end
camera:GetPropertyChangedSignal("ViewportSize"):Connect(rescaleMenu)
rescaleMenu()
new("TextLabel", {
Position = UDim2.new(0, 440, 0, 0), Size = UDim2.new(0, 320, 0, 24), BackgroundTransparency = 1, Text = "// CYBERWARE",
TextColor3 = C.RED, Font = Enum.Font.GothamBlack, TextSize = 18,
}, menuRoot)
-- body preview
viewportFrame = new("ViewportFrame", {
Size = UDim2.new(0, 320, 0, 540), Position = UDim2.new(0, 440, 0, 30), BackgroundColor3 = Color3.fromRGB(30, 8, 12), BackgroundTransparency = 0.45,
}, menuRoot)
new("UIStroke", { Color = Color3.fromRGB(120, 30, 34) }, viewportFrame)
vpCamera = new("Camera", { FieldOfView = 55 }, viewportFrame)
viewportFrame.CurrentCamera = vpCamera
updateViewportDummy = function()
local old = viewportFrame:FindFirstChild("PreviewDummy")
local rot = old and old:GetPivot().Rotation or CFrame.new()
if old then old:Destroy() end
local dummy = new("Model", { Name = "PreviewDummy" })
local root = new("Part", { Name = "HumanoidRootPart", Size = Vector3.new(2, 2, 1), Transparency = 1, CFrame = CFrame.new(), Anchored = true }, dummy)
dummy.PrimaryPart = root
local function makePart(name, size, color, cframe)
return new("Part", { Name = name, Size = size, Color = color, Material = PLASTIC, CFrame = cframe, Anchored = true }, dummy)
end
local glassRed, glassTeal = Color3.fromRGB(205, 85, 95), Color3.fromRGB(40, 110, 120)
local head = makePart("Head", Vector3.new(2, 1, 1), glassRed, CFrame.new(0, 1.5, 0))
local torso = makePart("Torso", Vector3.new(2, 2, 1), glassRed, CFrame.new(0, 0, 0))
local rightArm = makePart("Right Arm", Vector3.new(1, 2, 1), glassRed, CFrame.new(1.5, 0, 0))
local leftArm = makePart("Left Arm", Vector3.new(1, 2, 1), glassRed, CFrame.new(-1.5, 0, 0))
local leftLeg = makePart("Left Leg", Vector3.new(1, 2, 1), glassTeal, CFrame.new(-0.5, -2, 0))
local rightLeg = makePart("Right Leg", Vector3.new(1, 2, 1), glassTeal, CFrame.new(0.5, -2, 0))
for _, p in ipairs({ head, torso, rightArm, leftArm, leftLeg, rightLeg }) do p.Transparency = 0.2 end
local function adder(base)
return function(name, size, color, material, offset)
local p = makePart(name, size, color, base.CFrame * offset)
p.Material = material
if name == "Muzzle" then p.Transparency = 1 end
return p
end
end
if isEq("LaunchCannon") then buildCannonParts(adder(rightArm)) end
if isEq("MantisBlades") then
if not isEq("LaunchCannon") then buildMantisParts(adder(rightArm), 1) end
buildMantisParts(adder(leftArm), -1)
end
if isEq("Sandevistan") then buildSandevistanParts(adder(torso)) end
if isEq("Dasher") then
buildDasherParts(adder(leftLeg))
buildDasherParts(adder(rightLeg))
end
if wornJacket then buildJacketParts(adder(torso), adder(rightArm), adder(leftArm)) end
-- v3 implants
if isEq("GrappleLauncher") then buildGrappleParts(adder(leftArm)) end
if isEq("RocketFist") then buildRocketFistParts(adder(rightArm)) end
if isEq("ShoulderThrusters") then buildThrusterParts(adder(torso)) end
if isEq("DashKatana") then buildKatanaParts(adder(torso)) end
if isEq("RailgunBoots") then buildRailBootParts(adder(leftLeg)) buildRailBootParts(adder(rightLeg)) end
if isEq("KineticBoard") then buildBoardEmitterParts(adder(leftLeg)) buildBoardEmitterParts(adder(rightLeg)) end
if isEq("TitaniumSkeleton") then buildTitaniumParts(adder(torso), adder(rightArm), adder(leftArm)) end
if isEq("BionicJoints") then
for _, p in ipairs({ rightArm, leftArm, leftLeg, rightLeg }) do buildJointParts(adder(p)) end
end
if isEq("OverclockedHeart") then buildHeartParts(adder(torso)) end
if isEq("OxygenBooster") then buildOxygenParts(adder(torso)) end
if isEq("MotionScanner") then buildScannerParts(adder(head)) end
dummy:PivotTo(rot)
dummy.Parent = viewportFrame
vpCamera.CFrame = CFrame.new(Vector3.new(0, -0.4, 9), Vector3.new(0, -0.5, 0))
end
RunService.RenderStepped:Connect(function()
if systemDestroyed or not menuOverlay.Visible then return end
local d = viewportFrame:FindFirstChild("PreviewDummy")
if d then d:PivotTo(CFrame.Angles(0, os.clock() * 0.7, 0)) end
end)
-- equipment slots
slotWidgets = {}
local menuUnequip -- defined below
local inventoryFrame
invTab = "Cyber"
function makeSlot(x, y, cat, j)
local btn = new("TextButton", {
Size = UDim2.new(0, 84, 0, 84), Position = UDim2.new(0, x, 0, y), BackgroundColor3 = C.SLOT, BackgroundTransparency = 0.15,
AutoButtonColor = false, Text = "+", TextColor3 = Color3.fromRGB(160, 42, 46), Font = Enum.Font.Code, TextSize = 34,
TextWrapped = true,
}, menuRoot)
new("UIStroke", { Color = C.SLOTLINE, Thickness = 1.5 }, btn)
local bar = new("Frame", { Size = UDim2.new(0, 4, 1, 0), BackgroundColor3 = C.ORANGE, BorderSizePixel = 0, Visible = false }, btn)
local corner = new("Frame", {
Size = UDim2.new(0, 14, 0, 6), Position = UDim2.new(1, -14, 1, -6), BackgroundColor3 = C.CYAN, BorderSizePixel = 0, Visible = false,
}, btn)
btn.MouseButton1Click:Connect(function()
local id = equipped[cat][j]
if id then
menuUnequip(id)
elseif CATEGORY_HAS_ITEMS[cat] then
invTab = "Cyber"
inventoryFrame.Visible = true
updateHudAndMenus()
end
end)
attachTooltip(btn, function() return equipped[cat][j] or nil end)
return { btn = btn, bar = bar, corner = corner }
end
function buildCategory(c, rowIdx, side)
local y = 60 + (rowIdx - 1) * 104
slotWidgets[c.Name] = {}
new("TextLabel", {
Position = UDim2.new(0, side == "Left" and 20 or 780, 0, y - 24), Size = UDim2.new(0, 400, 0, 22), BackgroundTransparency = 1,
Text = c.Name, TextColor3 = C.RED, Font = Enum.Font.GothamMedium, TextSize = 17,
TextXAlignment = side == "Left" and Enum.TextXAlignment.Right or Enum.TextXAlignment.Left,
}, menuRoot)
for j = 1, c.Slots do
local x = side == "Left" and (420 - (c.Slots - j + 1) * 90 + 6) or (780 + (j - 1) * 90)
slotWidgets[c.Name][j] = makeSlot(x, y, c.Name, j)
end
end
for i, c in ipairs(SLOT_LAYOUT.Left) do buildCategory(c, i, "Left") end
for i, c in ipairs(SLOT_LAYOUT.Right) do buildCategory(c, i, "Right") end
-- stat meters (left: stamina, right: health)
function makeMeter(x, color, title)
new("TextLabel", {
Position = UDim2.new(0, x - 18, 0, 60), Size = UDim2.new(0, 100, 0, 20), BackgroundTransparency = 1, Text = title,
TextColor3 = color, Font = Enum.Font.Code, TextSize = 13,
}, menuRoot)
local bars = {}
for i = 1, 26 do
bars[i] = new("Frame", {
Size = UDim2.new(0, (i % 3 == 0) and 46 or 64, 0, 6), Position = UDim2.new(0, x, 0, 580 - i * 16), BackgroundColor3 = Color3.fromRGB(60, 30, 32),
BorderSizePixel = 0,
}, menuRoot)
end
local tag = new("TextLabel", {
Size = UDim2.new(0, 60, 0, 22), BackgroundColor3 = color, BorderSizePixel = 0, Text = "", TextColor3 = Color3.fromRGB(10, 10, 10),
Font = Enum.Font.GothamBlack, TextSize = 14, Visible = false,
}, menuRoot)
return function(val, scaleMax)
local n = math.clamp(math.floor(val / scaleMax * 26 + 0.5), 0, 26)
for i = 1, 26 do bars[i].BackgroundColor3 = i <= n and color or Color3.fromRGB(60, 30, 32) end
tag.Visible = n > 0
tag.Text = tostring(val)
if n > 0 then tag.Position = UDim2.new(0, x + 70, 0, 580 - n * 16 - 8) end
end
end
updateStaminaMeter = makeMeter(50, C.YELLOW, "STAMINA")
updateHealthMeter = makeMeter(1090, C.CYAN, "HEALTH")
-- windows (parent defaults to the cyberware menu; quest log lives directly on the HUD gui)
function makeWindow(title, w, h, parent, z)
local f = createCyberFrame(parent or menuOverlay, UDim2.new(0, w, 0, h), UDim2.new(0.5, -w / 2, 0.5, -h / 2), C.RED, Color3.fromRGB(22, 6, 10), 0.03)
f.Visible = false
f.ZIndex = z or 20
local sc = new("UIScale", {}, f)
table.insert(windowScales, { sc = sc, w = w, h = h })
new("TextLabel", {
Size = UDim2.new(1, 0, 0, 34), BackgroundColor3 = Color3.fromRGB(80, 14, 20), Text = " // " .. title, TextColor3 = C.RED,
Font = Enum.Font.GothamBlack, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left,
}, f)
local close = new("TextButton", {
Size = UDim2.new(0, 34, 0, 34), Position = UDim2.new(1, -34, 0, 0), BackgroundColor3 = Color3.fromRGB(140, 35, 35), Text = "X",
TextColor3 = Color3.new(1, 1, 1), Font = Enum.Font.GothamBold, TextSize = 16,
}, f)
close.MouseButton1Click:Connect(function() f.Visible = false end)
rescaleMenu()
return f
end
function makeScroll(parent, pos, size)
local s = new("ScrollingFrame", {
Position = pos, Size = size, BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 5,
AutomaticCanvasSize = Enum.AutomaticSize.Y, CanvasSize = UDim2.new(0, 0, 0, 0),
}, parent)
return s
end
function walletLabel(frame)
return new("TextLabel", {
Size = UDim2.new(1, -44, 0, 34), BackgroundTransparency = 1, Text = "", TextColor3 = C.YELLOW, Font = Enum.Font.Code,
TextSize = 12, TextXAlignment = Enum.TextXAlignment.Right,
}, frame)
end
-- requirement strings (green = have, red = missing)
function reqText(mats, it, sep)
local parts = {}
for _, m in ipairs(MATERIALS) do
local need = mats[m.Id]
if need then
local have = matInv[m.Id]
table.insert(parts, string.format('<font color="%s">%s %d/%d</font>', have >= need and "#78ff9a" or "#ff7070", m.Name, have, need))
end
end
if it.Blueprint then
table.insert(parts, blueprints[it.Id] and '<font color="#78ff9a">BLUEPRINT: OWNED</font>' or '<font color="#ff7070">BLUEPRINT: REQUIRED</font>')
end
return table.concat(parts, sep)
end
-- INVENTORY (cyberware / items / clothing / materials / blueprints)
inventoryFrame = makeWindow("INVENTORY", 660, 440)
tabButtons = {}
tabDefs = { { "Cyber", "CYBERWARE" }, { "Item", "ITEMS" }, { "Clothing", "CLOTHING" }, { "Material", "MATERIALS" }, { "Blueprint", "BLUEPRINTS" } }
for i, td in ipairs(tabDefs) do
local b = new("TextButton", {
Size = UDim2.new(0, 120, 0, 28), Position = UDim2.new(0, 14 + (i - 1) * 126, 0, 42), BackgroundColor3 = Color3.fromRGB(50, 12, 16),
Text = td[2], TextColor3 = C.RED, Font = Enum.Font.Code, TextSize = 13,
}, inventoryFrame)
new("UIStroke", { Color = C.SLOTLINE }, b)
b.MouseButton1Click:Connect(function() invTab = td[1] updateHudAndMenus() end)
tabButtons[td[1]] = b
end
invScroll = makeScroll(inventoryFrame, UDim2.new(0, 14, 0, 80), UDim2.new(1, -28, 1, -94))
new("UIGridLayout", { CellSize = UDim2.new(0, 98, 0, 98), CellPadding = UDim2.new(0, 8, 0, 8), SortOrder = Enum.SortOrder.LayoutOrder }, invScroll)
invEmpty = new("TextLabel", {
Size = UDim2.new(1, -28, 0, 40), Position = UDim2.new(0, 14, 0, 100), BackgroundTransparency = 1, Text = "NOTHING OWNED IN THIS CATEGORY",
TextColor3 = Color3.fromRGB(150, 80, 80), Font = Enum.Font.Code, TextSize = 14,
}, inventoryFrame)
function toggleItem(id)
local it = ITEM_BY_ID[id]
if not owned[id] then return end
if it.Type == "Cyber" then
if isEq(id) then
unequipCyber(id)
if id == "Sandevistan" then endSandevistan() end
if id == "Dasher" then endDasherCharge() end
if id == "ShoulderThrusters" then endThrusters() end
if id == "KineticBoard" then endBoard() end
if id == "OverclockedHeart" then endSurge() end
else
equipCyber(id)
end
applyStats()
refreshVisualAugments()
elseif it.Type == "Item" then
if inHotbar(id) then removeFromHotbar(id) else addToHotbar(id) end
elseif it.Type == "Clothing" then
wornJacket = not wornJacket
applyStats()
refreshVisualAugments()
end
updateHudAndMenus()
end
menuUnequip = function(id) toggleItem(id) end
invCells, matCells, bpCells = {}, {}, {}
function styleCell(cell, color)
new("UIStroke", { Color = color, Thickness = 1.5 }, cell)
new("Frame", { Size = UDim2.new(0, 4, 1, 0), BackgroundColor3 = color, BorderSizePixel = 0 }, cell)
end
for i, it in ipairs(ITEMS) do
local cell = new("TextButton", {
LayoutOrder = i, BackgroundColor3 = Color3.fromRGB(46, 14, 18), Text = "", TextColor3 = Color3.new(1, 1, 1),
Font = Enum.Font.Code, TextSize = 12, TextWrapped = true, AutoButtonColor = false, Visible = false,
}, invScroll)
styleCell(cell, rarityColor(it.Rarity))
cell.MouseButton1Click:Connect(function() toggleItem(it.Id) end)
attachTooltip(cell, function() return it.Id end)
invCells[it.Id] = cell
end
for i, m in ipairs(MATERIALS) do
local cell = new("TextLabel", {
LayoutOrder = 100 + i, BackgroundColor3 = Color3.fromRGB(46, 14, 18), Text = "", TextColor3 = Color3.new(1, 1, 1),
Font = Enum.Font.Code, TextSize = 12, TextWrapped = true, Visible = false,
}, invScroll)
styleCell(cell, rarityColor(m.Rarity))
matCells[m.Id] = cell
end
for i, it in ipairs(ITEMS) do
if it.Blueprint then
local cell = new("TextLabel", {
LayoutOrder = 200 + i, BackgroundColor3 = Color3.fromRGB(46, 14, 18), Text = "", TextColor3 = Color3.new(1, 1, 1),
Font = Enum.Font.Code, TextSize = 12, TextWrapped = true, Visible = false,
}, invScroll)
styleCell(cell, rarityColor(it.Rarity))
bpCells[it.Id] = cell
end
end
-- RIPPERDOC SHOP
shopFrame = makeWindow("RIPPERDOC WARES - CHROME & GEAR", 600, 500)
shopWallet = walletLabel(shopFrame)
shopScroll = makeScroll(shopFrame, UDim2.new(0, 10, 0, 44), UDim2.new(1, -20, 1, -54))
new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }, shopScroll)
-- state of a shop entry: OWNED / LOCKED (blueprint) / NEED_MATS / NEED_CUR / READY
function shopState(it)
if owned[it.Id] then return "OWNED" end
if it.Blueprint and not blueprints[it.Id] then return "LOCKED" end
if it.ShopMats then
for m, n in pairs(it.ShopMats) do if matInv[m] < n then return "NEED_MATS" end end
end
if it.Eddies then
if eddies < it.Eddies then return "NEED_CUR" end
elseif steps < it.Cost then
return "NEED_CUR"
end
return "READY"
end
function priceText(it)
if it.Eddies then return fmt(it.Eddies) .. " EDDIES" end
return it.Cost .. " STEPS"
end
buyButtons, shopReqLabels = {}, {}
for i, it in ipairs(ITEMS) do
local rc = rarityColor(it.Rarity)
local row = createCyberFrame(shopScroll, UDim2.new(1, -10, 0, 108), UDim2.new(), rc, Color3.fromRGB(34, 10, 14), 0.1)
row.LayoutOrder = i
new("TextLabel", {
Size = UDim2.new(0.66, 0, 0, 22), Position = UDim2.new(0, 10, 0, 6), BackgroundTransparency = 1,
Text = it.Name .. " [" .. RARITY[it.Rarity].Name .. "] (" .. (it.Category or it.Type) .. ")", TextColor3 = rc, Font = Enum.Font.GothamBold,
TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left,
}, row)
new("TextLabel", {
Size = UDim2.new(0.66, 0, 0, 40), Position = UDim2.new(0, 10, 0, 28), BackgroundTransparency = 1, Text = it.Desc,
TextColor3 = Color3.fromRGB(215, 190, 190), Font = Enum.Font.Code, TextSize = 11, TextWrapped = true,
TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top,
}, row)
shopReqLabels[it.Id] = new("TextLabel", {
Size = UDim2.new(0.66, 0, 0, 36), Position = UDim2.new(0, 10, 0, 68), BackgroundTransparency = 1, Text = "", RichText = true,
TextColor3 = Color3.fromRGB(200, 200, 200), Font = Enum.Font.Code, TextSize = 11, TextWrapped = true,
TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top,
}, row)
local buy = new("TextButton", {
Size = UDim2.new(0, 140, 0, 46), Position = UDim2.new(1, -152, 0.5, -23), BackgroundColor3 = Color3.fromRGB(90, 22, 28),
Text = priceText(it), TextColor3 = C.YELLOW, Font = Enum.Font.GothamBlack, TextSize = 13, TextWrapped = true,
}, row)
new("UIStroke", { Color = C.RED }, buy)
buyButtons[it.Id] = buy
attachTooltip(row, function() return it.Id end)
buy.MouseButton1Click:Connect(function()
local st = shopState(it)
if st == "OWNED" or isImplanting then return end
if st ~= "READY" then
buy.Text = (st == "LOCKED" and "NEED BLUEPRINT!") or (st == "NEED_MATS" and "NEED MATERIALS!")
or (it.Eddies and "NEED EDDIES!" or "NEED STEPS!")
buy.BackgroundColor3 = Color3.fromRGB(150, 20, 20)
task.delay(0.8, function() updateHudAndMenus() end)
return
end
-- pay: currency + required materials
if it.Eddies then eddies -= it.Eddies else steps -= it.Cost end
if it.ShopMats then
for m, n in pairs(it.ShopMats) do matInv[m] -= n end
end
if it.Type == "Cyber" then
updateHudAndMenus()
task.spawn(runImplantProcedure, it)
else
owned[it.Id] = true
if it.Id == "Pistol" then addToHotbar("Pistol") end
if it.Id == "DavidJacket" then wornJacket = true applyStats() refreshVisualAugments() end
updateHudAndMenus()
end
end)
end
-- shop: materials supply (common/uncommon for steps, rare+ for eddies, top tiers are quest/loot only)
new("TextLabel", {
LayoutOrder = 500, Size = UDim2.new(1, -10, 0, 26), BackgroundTransparency = 1, Text = "// MATERIALS SUPPLY", TextColor3 = C.RED,
Font = Enum.Font.GothamBlack, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left,
}, shopScroll)
matShopRows = {}
for i, m in ipairs(MATERIALS) do
local rc = rarityColor(m.Rarity)
local row = createCyberFrame(shopScroll, UDim2.new(1, -10, 0, 52), UDim2.new(), rc, Color3.fromRGB(34, 10, 14), 0.1)
row.LayoutOrder = 500 + i
local nameL = new("TextLabel", {
Size = UDim2.new(0.66, 0, 0, 22), Position = UDim2.new(0, 10, 0, 6), BackgroundTransparency = 1, Text = "", TextColor3 = rc,
Font = Enum.Font.GothamBold, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left,
}, row)
new("TextLabel", {
Size = UDim2.new(0.66, 0, 0, 18), Position = UDim2.new(0, 10, 0, 28), BackgroundTransparency = 1,
Text = m.Currency and "Sold by the Ripperdoc." or "Not sold - quest rewards and rare finds only.",
TextColor3 = Color3.fromRGB(190, 160, 160), Font = Enum.Font.Code, TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left,
}, row)
local btn = new("TextButton", {
Size = UDim2.new(0, 140, 0, 38), Position = UDim2.new(1, -152, 0.5, -19), BackgroundColor3 = Color3.fromRGB(90, 22, 28),
Text = m.Currency and (m.Qty .. "x " .. fmt(m.Price) .. (m.Currency == "eddies" and " EDDIES" or " STEPS")) or "QUEST / LOOT ONLY",
TextColor3 = m.Currency and C.YELLOW or Color3.fromRGB(150, 150, 150), Font = Enum.Font.GothamBlack, TextSize = 12, TextWrapped = true,
}, row)
new("UIStroke", { Color = rc }, btn)
matShopRows[m.Id] = { name = nameL, btn = btn }
btn.MouseButton1Click:Connect(function()
if not m.Currency then return end
local have = (m.Currency == "eddies") and eddies or steps
if have < m.Price then
btn.Text = m.Currency == "eddies" and "NEED EDDIES!" or "NEED STEPS!"
task.delay(0.6, function() updateHudAndMenus() end)
return
end
if m.Currency == "eddies" then eddies -= m.Price else steps -= m.Price end
matInv[m.Id] += m.Qty
updateHudAndMenus()
end)
end
-- UPGRADES (+ cyberware mastery rows)
upgradeFrame = makeWindow("UPGRADE BENCH", 540, 450)
upScroll = makeScroll(upgradeFrame, UDim2.new(0, 10, 0, 44), UDim2.new(1, -20, 1, -54))
new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }, upScroll)
upRows = {}
for i, up in ipairs(UPGRADES) do
local row = createCyberFrame(upScroll, UDim2.new(1, -10, 0, 66), UDim2.new(), rarityColor(ITEM_BY_ID[up.Item].Rarity), Color3.fromRGB(34, 10, 14), 0.1)
row.LayoutOrder = i
row.Visible = false
local nameL = new("TextLabel", {
Size = UDim2.new(0.62, 0, 0, 22), Position = UDim2.new(0, 10, 0, 6), BackgroundTransparency = 1, Text = "",
TextColor3 = C.ORANGE, Font = Enum.Font.GothamBold, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left,
}, row)
new("TextLabel", {
Size = UDim2.new(0.62, 0, 0, 30), Position = UDim2.new(0, 10, 0, 30), BackgroundTransparency = 1, Text = up.Desc,
TextColor3 = Color3.fromRGB(215, 190, 190), Font = Enum.Font.Code, TextSize = 11, TextWrapped = true,
TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top,
}, row)
local btn = new("TextButton", {
Size = UDim2.new(0, 130, 0, 40), Position = UDim2.new(1, -142, 0.5, -20), BackgroundColor3 = Color3.fromRGB(90, 22, 28),
Text = "", TextColor3 = C.YELLOW, Font = Enum.Font.GothamBlack, TextSize = 13,
}, row)
new("UIStroke", { Color = C.RED }, btn)
btn.MouseButton1Click:Connect(function()
local lvl = upl(up.Id)
if lvl >= upMax(up) then return end
local cost = up.Cost * (lvl + 1)
if steps >= cost then
steps -= cost
upLevel[up.Id] = lvl + 1
if up.Id == "GunMag" then ammo = math.min(gunMag(), ammo + 2) end
applyStats() -- passive-affecting upgrades (plating, joint springs) apply immediately
updateHudAndMenus()
else
btn.Text = "NEED STEPS!"
task.delay(0.6, function() updateHudAndMenus() end)
end
end)
upRows[up.Id] = { row = row, name = nameL, btn = btn }
end
masteryRows = {}
for i, it in ipairs(ITEMS) do
if it.Type == "Cyber" then
local rc = rarityColor(it.Rarity)
local row = createCyberFrame(upScroll, UDim2.new(1, -10, 0, 74), UDim2.new(), rc, Color3.fromRGB(24, 12, 30), 0.1)
row.LayoutOrder = 1000 + i
row.Visible = false
local nameL = new("TextLabel", {
Size = UDim2.new(1, -20, 0, 22), Position = UDim2.new(0, 10, 0, 6), BackgroundTransparency = 1, Text = "", TextColor3 = rc,
Font = Enum.Font.GothamBold, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left,
}, row)
local descL = new("TextLabel", {
Size = UDim2.new(1, -20, 0, 30), Position = UDim2.new(0, 10, 0, 28), BackgroundTransparency = 1, Text = "",
TextColor3 = Color3.fromRGB(215, 190, 215), Font = Enum.Font.Code, TextSize = 11, TextWrapped = true,
TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top,
}, row)
local track = new("Frame", { Size = UDim2.new(1, -20, 0, 6), Position = UDim2.new(0, 10, 1, -12), BackgroundColor3 = Color3.fromRGB(40, 20, 40), BorderSizePixel = 0 }, row)
local fill = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = rc, BorderSizePixel = 0 }, track)
masteryRows[it.Id] = { row = row, name = nameL, desc = descL, fill = fill }
end
end
-- CRAFTING (FABRICATOR)
craftFrame = makeWindow("FABRICATOR - CYBERWARE CRAFTING", 640, 480)
craftWallet = walletLabel(craftFrame)
craftScroll = makeScroll(craftFrame, UDim2.new(0, 10, 0, 44), UDim2.new(1, -20, 1, -54))
new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }, craftScroll)
function craftState(it)
if owned[it.Id] then return "OWNED" end
if it.Blueprint and not blueprints[it.Id] then return "NO_BLUEPRINT" end
for m, n in pairs(it.Recipe) do if matInv[m] < n then return "NO_MATS" end end
return "READY"
end
function missingText(it)
local miss = {}
for _, m in ipairs(MATERIALS) do
local need = it.Recipe[m.Id]
if need and matInv[m.Id] < need then table.insert(miss, (need - matInv[m.Id]) .. "x " .. m.Name) end
end
return #miss > 0 and ('<font color="#ffb060">MISSING: ' .. table.concat(miss, ", ") .. "</font>") or ""
end
function craftItem(it)
if craftState(it) ~= "READY" then return end
for m, n in pairs(it.Recipe) do matInv[m] -= n end -- consume materials (blueprint is kept)
owned[it.Id] = true -- delivered to inventory, unequipped
notify("CRAFTED: " .. it.Name .. " (check INVENTORY)", rarityColor(it.Rarity))
updateHudAndMenus()
end
craftRows = {}
for i, it in ipairs(CRAFTABLE) do
local rc = rarityColor(it.Rarity)
local row = createCyberFrame(craftScroll, UDim2.new(1, -10, 0, 148), UDim2.new(), rc, Color3.fromRGB(34, 10, 14), 0.1)
row.LayoutOrder = i
new("TextLabel", {
Size = UDim2.new(0.66, 0, 0, 22), Position = UDim2.new(0, 10, 0, 6), BackgroundTransparency = 1,
Text = string.upper(it.Name) .. " [" .. RARITY[it.Rarity].Name .. "] (" .. it.Category .. ")", TextColor3 = rc,
Font = Enum.Font.GothamBold, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left,
}, row)
local info = new("TextLabel", {
Size = UDim2.new(0.66, 0, 0, 114), Position = UDim2.new(0, 10, 0, 30), BackgroundTransparency = 1, Text = "", RichText = true,
TextColor3 = Color3.fromRGB(215, 215, 215), Font = Enum.Font.Code, TextSize = 11, TextWrapped = true,
TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top,
}, row)
local btn = new("TextButton", {
Size = UDim2.new(0, 140, 0, 46), Position = UDim2.new(1, -152, 0.5, -23), BackgroundColor3 = Color3.fromRGB(90, 22, 28),
Text = "CRAFT", TextColor3 = C.YELLOW, Font = Enum.Font.GothamBlack, TextSize = 13, TextWrapped = true,
}, row)
new("UIStroke", { Color = C.RED }, btn)
btn.MouseButton1Click:Connect(function() craftItem(it) end)
attachTooltip(row, function() return it.Id end)
craftRows[it.Id] = { info = info, btn = btn }
end
-- QUEST LOG (opened from the HUD, built with the same makeWindow / makeScroll patterns)
questFrame = makeWindow("QUEST LOG", 760, 520, mainGui, 45)
questFrame.Active = true -- swallow clicks so the window never fires abilities underneath
questTab = "Main"
questTabButtons = {}
for i, cd in ipairs(QUEST_CATEGORIES) do
local b = new("TextButton", {
Size = UDim2.new(0, 118, 0, 34), Position = UDim2.new(0, 16 + (i - 1) * 122, 0, 42), BackgroundColor3 = Color3.fromRGB(50, 12, 16),
Text = cd[2], TextColor3 = C.RED, Font = Enum.Font.Code, TextSize = 11, TextWrapped = true,
}, questFrame)
new("UIStroke", { Color = C.SLOTLINE }, b)
b.MouseButton1Click:Connect(function() questTab = cd[1] refreshQuestUI() end)
questTabButtons[cd[1]] = b
end
questTimerLabel = new("TextLabel", {
Size = UDim2.new(1, -32, 0, 16), Position = UDim2.new(0, 16, 0, 80), BackgroundTransparency = 1, Text = "",
TextColor3 = Color3.fromRGB(190, 160, 160), Font = Enum.Font.Code, TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left,
}, questFrame)
questScroll = makeScroll(questFrame, UDim2.new(0, 10, 0, 100), UDim2.new(1, -20, 1, -110))
new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }, questScroll)
function describeRewards(r)
local parts = {}
if r.Eddies then table.insert(parts, fmt(r.Eddies) .. " Eddies") end
if r.Steps then table.insert(parts, fmt(r.Steps) .. " Steps") end
if r.Mats then
for _, m in ipairs(MATERIALS) do if r.Mats[m.Id] then table.insert(parts, r.Mats[m.Id] .. "x " .. m.Name) end end
end
if r.Blueprints then
for _, id in ipairs(r.Blueprints) do table.insert(parts, "Blueprint: " .. ITEM_BY_ID[id].Name) end
end
return "REWARDS: " .. table.concat(parts, " | ")
end
questUI = {}
for order, q in ipairs(QUESTS) do
local n = #q.Objectives
local rewardY = 64 + n * 30 + 4
local rc = rarityColor(q.Rarity)
local card = createCyberFrame(questScroll, UDim2.new(1, -10, 0, rewardY + 46), UDim2.new(), rc, Color3.fromRGB(34, 10, 14), 0.1)
card.LayoutOrder = order
card.Visible = false
new("TextLabel", {
Size = UDim2.new(0.55, 0, 0, 22), Position = UDim2.new(0, 10, 0, 6), BackgroundTransparency = 1, Text = q.Name, TextColor3 = rc,
Font = Enum.Font.GothamBlack, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left,
}, card)
new("TextLabel", {
Size = UDim2.new(0.45, -12, 0, 22), Position = UDim2.new(0.55, 0, 0, 6), BackgroundTransparency = 1,
Text = RARITY[q.Rarity].Name .. " // " .. string.upper(q.Difficulty), TextColor3 = rc, Font = Enum.Font.Code, TextSize = 12,
TextXAlignment = Enum.TextXAlignment.Right,
}, card)
new("TextLabel", {
Size = UDim2.new(1, -20, 0, 30), Position = UDim2.new(0, 10, 0, 30), BackgroundTransparency = 1, Text = q.Desc,
TextColor3 = Color3.fromRGB(215, 190, 190), Font = Enum.Font.Code, TextSize = 11, TextWrapped = true,
TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top,
}, card)
local objLabels, objFills = {}, {}
for i, o in ipairs(q.Objectives) do
local y = 64 + (i - 1) * 30
objLabels[i] = new("TextLabel", {
Size = UDim2.new(0.54, -10, 0, 22), Position = UDim2.new(0, 10, 0, y), BackgroundTransparency = 1, Text = "", TextColor3 = Color3.fromRGB(225, 215, 215),
Font = Enum.Font.Code, TextSize = 11, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left,
}, card)
local track = new("Frame", {
Size = UDim2.new(0.42, -10, 0, 14), Position = UDim2.new(0.58, 0, 0, y + 4), BackgroundColor3 = Color3.fromRGB(40, 16, 20), BorderSizePixel = 0,
}, card)
new("UIStroke", { Color = C.SLOTLINE }, track)
objFills[i] = new("Frame", { Size = UDim2.new(0, 0, 1, 0), BackgroundColor3 = rc, BorderSizePixel = 0 }, track)
end
new("TextLabel", {
Size = UDim2.new(1, -170, 0, 40), Position = UDim2.new(0, 10, 0, rewardY), BackgroundTransparency = 1, Text = describeRewards(q.Rewards),
TextColor3 = C.YELLOW, Font = Enum.Font.Code, TextSize = 11, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left,
TextYAlignment = Enum.TextYAlignment.Top,
}, card)
local claim = new("TextButton", {
Size = UDim2.new(0, 140, 0, 36), Position = UDim2.new(1, -150, 0, rewardY + 2), BackgroundColor3 = Color3.fromRGB(90, 22, 28),
Text = "", TextColor3 = C.YELLOW, Font = Enum.Font.GothamBlack, TextSize = 13, AutoButtonColor = false,
}, card)
new("UIStroke", { Color = C.RED }, claim)
claim.MouseButton1Click:Connect(function() claimQuest(q) end)
questUI[q.Id] = { card = card, labels = objLabels, fills = objFills, claim = claim }
end
refreshQuestUI = function()
if systemDestroyed or not mainGui.Parent then return end
local claimable = 0
for _, q in ipairs(QUESTS) do
if questUnlocked(q) and not questClaimed[q.Id] and questComplete(q) then claimable += 1 end
end
questBtn.Text = claimable > 0 and ("QUEST (" .. claimable .. ")") or "QUEST"
questBtn.TextColor3 = claimable > 0 and C.GREEN or C.YELLOW
if not questFrame.Visible then return end
for key, b in pairs(questTabButtons) do
b.BackgroundColor3 = (key == questTab) and Color3.fromRGB(120, 24, 30) or Color3.fromRGB(50, 12, 16)
end
if QUEST_RESET[questTab] then
questTimerLabel.Text = string.upper(questTab) .. " QUESTS RESET IN " .. fmtTime(resetAt[questTab] - os.time())
elseif questTab == "Main" then
questTimerLabel.Text = "MAIN QUESTS UNLOCK IN ORDER - CLAIM A QUEST TO REVEAL THE NEXT"
else
questTimerLabel.Text = "PROGRESS IS TRACKED AUTOMATICALLY - CLAIM EACH REWARD ONCE"
end
for _, q in ipairs(QUESTS) do
local ui = questUI[q.Id]
ui.card.Visible = (q.Cat == questTab)
if ui.card.Visible then
local unlocked = questUnlocked(q)
local prog = questProgress[q.Id]
for i, o in ipairs(q.Objectives) do
local p = prog[i]
local done = p >= o.Target
ui.labels[i].Text = (done and "[x] " or "[ ] ") .. o.Text .. " (" .. fmt(p) .. "/" .. fmt(o.Target) .. ")"
ui.labels[i].TextColor3 = done and C.GREEN or (unlocked and Color3.fromRGB(225, 215, 215) or Color3.fromRGB(130, 120, 120))
ui.fills[i].Size = UDim2.new(math.clamp(p / o.Target, 0, 1), 0, 1, 0)
end
local c = ui.claim
if questClaimed[q.Id] then
c.Text, c.BackgroundColor3, c.TextColor3 = "CLAIMED", Color3.fromRGB(45, 55, 65), Color3.fromRGB(160, 180, 195)
elseif not unlocked then
c.Text, c.BackgroundColor3, c.TextColor3 = "LOCKED", Color3.fromRGB(35, 30, 32), Color3.fromRGB(130, 120, 120)
elseif questComplete(q) then
c.Text, c.BackgroundColor3, c.TextColor3 = "CLAIM REWARD", Color3.fromRGB(25, 90, 60), C.GREEN
else
c.Text, c.BackgroundColor3, c.TextColor3 = "IN PROGRESS", Color3.fromRGB(60, 24, 28), Color3.fromRGB(190, 150, 150)
end
end
end
end
-- bottom buttons
function menuButton(text, x, color, strokeColor)
local b = new("TextButton", {
Size = UDim2.new(0, 150, 0, 44), Position = UDim2.new(0, x, 0, 600), BackgroundColor3 = color, Text = text,
TextColor3 = Color3.fromRGB(255, 225, 220), Font = Enum.Font.GothamBlack, TextSize = 14,
}, menuRoot)
new("UIStroke", { Color = strokeColor, Thickness = 2 }, b)
return b
end
invBtn = menuButton("INVENTORY", 250, Color3.fromRGB(70, 16, 22), C.RED)
shopBtn = menuButton("RIPPERDOC SHOP", 410, Color3.fromRGB(70, 16, 22), C.RED)
upgBtn = menuButton("UPGRADES", 570, Color3.fromRGB(70, 16, 22), C.RED)
craftBtn = menuButton("CRAFTING", 730, Color3.fromRGB(70, 16, 22), C.RED)
exitMenuBtn = menuButton("EXIT", 890, Color3.fromRGB(110, 40, 36), Color3.fromRGB(220, 90, 80))
function closeWindows()
inventoryFrame.Visible, shopFrame.Visible, upgradeFrame.Visible, craftFrame.Visible = false, false, false, false
tooltip.Visible = false
end
invBtn.MouseButton1Click:Connect(function() closeWindows() inventoryFrame.Visible = true updateHudAndMenus() end)
shopBtn.MouseButton1Click:Connect(function() closeWindows() shopFrame.Visible = true updateHudAndMenus() end)
upgBtn.MouseButton1Click:Connect(function() closeWindows() upgradeFrame.Visible = true updateHudAndMenus() end)
craftBtn.MouseButton1Click:Connect(function() closeWindows() craftFrame.Visible = true updateHudAndMenus() end)
exitMenuBtn.MouseButton1Click:Connect(function() menuOverlay.Visible = false closeWindows() end)
-- ==========================================
-- UI REFRESH
-- ==========================================
updateHotbars = function()
if systemDestroyed or not mainGui.Parent then return end
for _, item in ipairs(ACTIVE_CYBER) do
local hot = hotbarSlots[item.Id]
if not owned[item.Id] then
hot.Text = "[" .. item.KeyText .. "]\nLOCKED"
hot.BackgroundColor3 = Color3.fromRGB(28, 32, 32)
hot.TextColor3 = Color3.fromRGB(130, 130, 130)
elseif isEq(item.Id) then
local cd = cooldowns[item.Id]
if cd > 0 then
hot.Text = "[" .. item.KeyText .. "]\nCD: " .. string.format("%.1f", cd) .. "s"
hot.BackgroundColor3 = Color3.fromRGB(50, 25, 25)
hot.TextColor3 = Color3.fromRGB(255, 110, 110)
else
local active = (item.Id == "KineticBoard" and isBoardActive) or (item.Id == "OverclockedHeart" and isSurging)
hot.Text = "[" .. item.KeyText .. "]\n" .. (item.Short or item.Name) .. (item.Hold and "\n(HOLD)" or "") .. (active and "\nACTIVE" or "")
hot.BackgroundColor3 = active and Color3.fromRGB(20, 100, 85) or Color3.fromRGB(25, 65, 50)
hot.TextColor3 = C.GREEN
end
else
hot.Text = "[" .. item.KeyText .. "]\nUNEQUIPPED"
hot.BackgroundColor3 = Color3.fromRGB(35, 35, 38)
hot.TextColor3 = Color3.fromRGB(160, 160, 160)
end
end
end
updateHudAndMenus = function()
if systemDestroyed or not mainGui.Parent then return end
stepsLabel.Text = "STEPS: " .. tostring(steps)
local matTotal = 0
for _, m in ipairs(MATERIALS) do matTotal += matInv[m.Id] end
eddiesLabel.Text = "EDDIES: " .. fmt(eddies) .. " MATERIALS: " .. matTotal
local wallet = string.format("STEPS %s EDDIES %s", fmt(steps), fmt(eddies))
shopWallet.Text, craftWallet.Text = wallet, wallet
updateHotbars()
-- menu equipment slots
for cat, widgets in pairs(slotWidgets) do
for j, w in ipairs(widgets) do
local id = equipped[cat][j]
if id then
local it = ITEM_BY_ID[id]
w.btn.Text = it.Name
w.btn.TextSize = 12
w.btn.TextColor3 = rarityColor(it.Rarity):Lerp(Color3.new(1, 1, 1), 0.6)
w.btn.BackgroundColor3 = Color3.fromRGB(18, 44, 54)
w.bar.Visible, w.corner.Visible = true, true
w.bar.BackgroundColor3 = rarityColor(it.Rarity)
else
w.btn.Text = "+"
w.btn.TextSize = 34
w.btn.TextColor3 = Color3.fromRGB(160, 42, 46)
w.btn.BackgroundColor3 = C.SLOT
w.bar.Visible, w.corner.Visible = false, false
end
end
end
-- meters (scale grows past 400 so heavy builds don't saturate)
updateStaminaMeter(getMaxStamina(), math.max(400, getMaxStamina()))
updateHealthMeter(getMaxHealth(), math.max(400, getMaxHealth()))
-- passives (6 slots): equipped passive cyberware + worn jacket
local list = {}
for _, it in ipairs(ITEMS) do
if it.Type == "Cyber" and it.Passive and isEq(it.Id) then table.insert(list, it.Id) end
end
if wornJacket then table.insert(list, "DavidJacket") end
for i = 1, PASSIVE_SLOTS do
local id = list[i]
passiveIds[i] = id
if id then
passiveSlots[i].Text = ITEM_BY_ID[id].Name
passiveSlots[i].TextColor3 = C.GREEN
passiveSlots[i].BackgroundColor3 = Color3.fromRGB(25, 65, 50)
else
passiveSlots[i].Text = "EMPTY"
passiveSlots[i].TextColor3 = Color3.fromRGB(110, 110, 110)
passiveSlots[i].BackgroundColor3 = Color3.fromRGB(28, 32, 32)
end
end
-- item hotbar
for i = 1, 5 do
local id = itemHotbar[i]
local s = itemSlots[i]
if id then
s.btn.Text = i .. "\n" .. ITEM_BY_ID[id].Name
s.btn.TextColor3 = Color3.fromRGB(255, 235, 215)
s.btn.BackgroundColor3 = Color3.fromRGB(60, 36, 22)
else
s.btn.Text = tostring(i)
s.btn.TextColor3 = Color3.fromRGB(120, 100, 100)
s.btn.BackgroundColor3 = Color3.fromRGB(30, 22, 22)
end
s.stroke.Color = (selectedSlot == i) and C.ORANGE or Color3.fromRGB(90, 50, 40)
s.stroke.Thickness = (selectedSlot == i) and 3 or 1.5
end
updateAmmoUI(0)
-- shop: rarity, requirements, price, locked / owned states
for _, it in ipairs(ITEMS) do
local b = buyButtons[it.Id]
local st = shopState(it)
if it.ShopMats then
shopReqLabels[it.Id].Text = "REQUIRES: " .. reqText(it.ShopMats, it, " | ")
else
shopReqLabels[it.Id].Text = "REQUIRES: NOTHING BUT " .. string.upper(it.Cost and "STEPS" or "EDDIES")
end
if st == "OWNED" then
b.Text = "OWNED"
b.BackgroundColor3 = Color3.fromRGB(45, 55, 65)
b.TextColor3 = Color3.fromRGB(160, 180, 195)
elseif st == "LOCKED" then
b.Text = "LOCKED\nBLUEPRINT REQUIRED"
b.BackgroundColor3 = Color3.fromRGB(35, 30, 32)
b.TextColor3 = Color3.fromRGB(150, 130, 130)
elseif st == "READY" then
b.Text = priceText(it)
b.BackgroundColor3 = Color3.fromRGB(90, 22, 28)
b.TextColor3 = C.YELLOW
else
b.Text = priceText(it)
b.BackgroundColor3 = Color3.fromRGB(60, 24, 28)
b.TextColor3 = Color3.fromRGB(170, 140, 100)
end
end
for _, m in ipairs(MATERIALS) do
local r = matShopRows[m.Id]
r.name.Text = m.Name .. " [" .. RARITY[m.Rarity].Name .. "] OWNED: " .. matInv[m.Id]
if m.Currency then
local have = (m.Currency == "eddies") and eddies or steps
r.btn.TextColor3 = have >= m.Price and C.YELLOW or Color3.fromRGB(170, 140, 100)
r.btn.Text = m.Qty .. "x " .. fmt(m.Price) .. (m.Currency == "eddies" and " EDDIES" or " STEPS")
end
end
-- inventory
local any = false
for _, it in ipairs(ITEMS) do
local cell = invCells[it.Id]
local show = owned[it.Id] and it.Type == invTab
cell.Visible = show
if show then
any = true
local status, col
if it.Type == "Cyber" then
if isEq(it.Id) then status, col = "EQUIPPED", C.GREEN else status, col = "UNEQUIPPED", Color3.fromRGB(180, 150, 150) end
elseif it.Type == "Item" then
if inHotbar(it.Id) then status, col = "IN HOTBAR", C.GREEN else status, col = "CLICK TO ADD", Color3.fromRGB(180, 150, 150) end
else
if wornJacket then status, col = "WORN", C.GREEN else status, col = "CLICK TO WEAR", Color3.fromRGB(180, 150, 150) end
end
cell.Text = it.Name .. "\n" .. RARITY[it.Rarity].Name .. "\n" .. status
cell.TextColor3 = col
end
end
for _, m in ipairs(MATERIALS) do
local cell = matCells[m.Id]
local show = invTab == "Material"
cell.Visible = show
if show then
any = true
cell.Text = m.Name .. "\n" .. RARITY[m.Rarity].Name .. "\nx" .. matInv[m.Id]
cell.TextColor3 = matInv[m.Id] > 0 and rarityColor(m.Rarity) or Color3.fromRGB(110, 100, 100)
end
end
for id, cell in pairs(bpCells) do
local show = invTab == "Blueprint" and blueprints[id]
cell.Visible = show
if show then
any = true
cell.Text = "BLUEPRINT\n" .. ITEM_BY_ID[id].Name .. "\n" .. RARITY[ITEM_BY_ID[id].Rarity].Name
cell.TextColor3 = rarityColor(ITEM_BY_ID[id].Rarity)
end
end
invEmpty.Visible = not any
for key, b in pairs(tabButtons) do
b.BackgroundColor3 = (key == invTab) and Color3.fromRGB(120, 24, 30) or Color3.fromRGB(50, 12, 16)
end
-- upgrades
for _, up in ipairs(UPGRADES) do
local r = upRows[up.Id]
local lvl = upl(up.Id)
local mx = upMax(up)
r.row.Visible = owned[up.Item]
local pips = string.rep("■", lvl) .. string.rep("□", mx - lvl)
r.name.Text = up.Name .. " [" .. ITEM_BY_ID[up.Item].Name .. "] " .. pips
if lvl >= mx then
r.btn.Text = "MAXED"
r.btn.BackgroundColor3 = Color3.fromRGB(45, 55, 65)
else
r.btn.Text = "UPGRADE: " .. (up.Cost * (lvl + 1)) .. " STEPS"
r.btn.BackgroundColor3 = Color3.fromRGB(90, 22, 28)
end
end
-- mastery
for id, r in pairs(masteryRows) do
local it = ITEM_BY_ID[id]
local lvl = masteryLevel(id)
local u = usage[id] or 0
r.row.Visible = owned[id]
r.name.Text = "MASTERY [" .. it.Name .. "] LV" .. lvl .. " " .. string.rep("■", lvl) .. string.rep("□", 5 - lvl)
if lvl >= 5 then
r.desc.Text = u .. " uses | MAX - " .. perkText(it, 5)
r.fill.Size = UDim2.new(1, 0, 1, 0)
else
local lo, hi = masteryThreshold(id, lvl), masteryThreshold(id, lvl + 1)
r.desc.Text = u .. "/" .. hi .. " uses | NEXT (L" .. (lvl + 1) .. "): " .. perkText(it, lvl + 1)
r.fill.Size = UDim2.new(math.clamp((u - lo) / math.max(1, hi - lo), 0, 1), 0, 1, 0)
end
end
-- crafting
for _, it in ipairs(CRAFTABLE) do
local r = craftRows[it.Id]
local st = craftState(it)
local lines = reqText(it.Recipe, it, "\n")
local miss = missingText(it)
r.info.Text = lines .. (miss ~= "" and ("\n" .. miss) or "")
if st == "OWNED" then
r.btn.Text, r.btn.BackgroundColor3, r.btn.TextColor3 = "OWNED", Color3.fromRGB(45, 55, 65), Color3.fromRGB(160, 180, 195)
elseif st == "NO_BLUEPRINT" then
r.btn.Text, r.btn.BackgroundColor3, r.btn.TextColor3 = "LOCKED\nNEED BLUEPRINT", Color3.fromRGB(35, 30, 32), Color3.fromRGB(150, 130, 130)
elseif st == "NO_MATS" then
r.btn.Text, r.btn.BackgroundColor3, r.btn.TextColor3 = "MISSING\nMATERIALS", Color3.fromRGB(60, 24, 28), Color3.fromRGB(170, 140, 100)
else
r.btn.Text, r.btn.BackgroundColor3, r.btn.TextColor3 = "CRAFT", Color3.fromRGB(25, 90, 60), C.GREEN
end
end
refreshQuestUI()
end
-- passive walk-speed bonus (Bionic Joints) applied on top of the captured base speed
function applyPassiveSpeed()
if not humanoid or not humanoid.Parent then return end
local nb = walkBonus()
local d = nb - appliedWalkBonus
if d ~= 0 then
baseWalkSpeed += d
appliedWalkBonus = nb
restoreSpeed()
end
end
-- passive jump boost (Bionic Joints); skipped while the surgery procedure has jump locked to a Cool Cyberware system with lots of cyberwares. Version 0.01 things: Quest Cyberwares And More! Keyless!! i made this project for fun. im not an key slop Enjoy!! Tested On Pack It If you Enjoy This Script ill keep updating:D ill add mobile support Soon Dont Worry

Universal