Raiokk — Our Scrappy First Horror Prototype

Before Kairokk’s polished hack‑and‑slash, there was Raiokk — a glitchy horror test‑bed inspired by Roblox’s Doors. Built solo at first, then co‑crafted with Matt under a mentorship program.

Raiokk elevator start

Global Variables Gone Wild

Our first sprint mechanic used a single global flag — so if one player sprinted, everyone sprinted. Here’s the gem of code that taught us better practices:


// BAD: Global variable controls sprint for all players
SPRINTING = false

function onKeyPress(player, key)
  if key == 'Shift' then
    SPRINTING = true
  end
end

function onKeyRelease(player, key)
  if key == 'Shift' then
    SPRINTING = false
  end
end

function onPlayerMove(player)
  if SPRINTING then
    player.Character.Humanoid.WalkSpeed = 32
  else
    player.Character.Humanoid.WalkSpeed = 16
  end
end
    

Rarnkell Hospital — Our Only Completed Level

We randomized levels, but only finished one: Rarnkell Hospital. Door triggers occasionally hung the server:


// BUG: Door trigger can fire twice and break the map
function onDoorTouched(player)
  if not doorOpened then
    doorOpened = true
    openDoorAnimation()
  end
end

-- Oops: forgot to reset doorOpened on map reset!
    
Rarnkell Hospital level

Learning from the Mess

“That garbage code taught us cleaning up matters.” — Scopecreep

Play the Prototype (If You Dare)

The build is rough, but you can still experience Rarnkell Hospital. Play Raiokk on Roblox.