Systems
Server-checked Luau for every loop: movement, stealing, hatching, saving and the shop.
Movement
- Gun-flip controller: avatar to gun with no dropped frameGun Flip For Egg
- PC, phone, tablet and console inputGun Flip For Egg
Core loop
- Base stealing and locks, checked on the serverGun Flip For Egg, ASMR
- Guardian chase with a safe-zone flashGun Flip For Egg, ASMR
- Hatching, mutations and fusionGun Flip For Egg
- A 22-zone corridor with speed signs per zoneGun Flip For Egg
Retention
- Daily rewards, playtime gifts, 30-minute eventsGun Flip For Egg
- A seven-step tutorial: arrow, one line, a counterASMR
- Saving, global leaderboards, a timed night cycleGun Flip For Egg
Live ops
- Game passes, dev products, rewarded adsGun Flip For Egg
- Admin panel and server-wide announcementsGun Flip For Egg, ASMR
Real code from a live game
Two pieces of Gun Flip For Egg, trimmed for length. The server decides every steal (distance, locks, cooldowns), and rarity rolls are typed, data-driven and luck-aware.
onSteal = function(thief: Player, base: Model, vis: Model)
local owner = ownerOf(base)
if not owner or thief == owner or locked(base) or thief:GetAttribute("Flipping") == true or Eggs.IsCarrying(thief) then
return
end
local ch = thief.Character
local hrp = ch and ch:FindFirstChild("HumanoidRootPart") :: BasePart?
local hum = ch and ch:FindFirstChildOfClass("Humanoid")
if not hrp or not hum or hum.Health <= 0 or (hrp.Position - vis:GetPivot().Position).Magnitude > 14 then
return
end
local key = thief.UserId .. ":" .. owner.UserId
if (rerob[key] or 0) > os.clock() then
Inventory.Notify(thief, "You just raided this base! Try again in " .. math.ceil(rerob[key] - os.clock()) .. "s.", "FFD23A")
return
end
-- … then the egg moves to the thief and the owner's alarm fires
Mutations.LIST = {
{ id = "Rainbow", mult = 3, chance = 0.003, color = "FF7AD9", light = Color3.new(1, 1, 1), ambient = Color3.new(1, 1, 1) },
{ id = "Shadow", mult = 2.5, chance = 0.04, night = true, color = "B07CFF", light = Color3.fromRGB(150, 90, 255), ambient = Color3.fromRGB(70, 30, 120) },
{ id = "Diamond", mult = 2, chance = 0.015, color = "8AF4FF", light = Color3.fromRGB(160, 245, 255), ambient = Color3.fromRGB(120, 210, 255) },
{ id = "Golden", mult = 1.5, chance = 0.05, color = "FFD23A", light = Color3.fromRGB(255, 215, 90), ambient = Color3.fromRGB(255, 180, 60) },
} :: { Mutation }
-- roll a hatch's mutation (nil = none)
function Mutations.Roll(rng: Random, night: boolean, luck: number?): string?
local l = luck or 1
for _, m in Mutations.LIST do
if (not m.night or night) and rng:NextNumber() < m.chance * l then
return m.id
end
end
return nil
end
Systems clip coming soon