Cortex · AI for your Roblox game · all guides

How to build an AI dungeon master in Roblox

Let an AI narrate events and spin encounters that react to the party — endless content without hand-authoring every scenario.

One server-side request

Put a ModuleScript in ServerStorage and call it from a server Script — your key never touches the client.

local Cortex = require(game.ServerStorage.Cortex)
local ai = Cortex.new("YOUR_KEY")

print(ai:ask(
  "You are a dungeon master. Narrate the next event in 1-2 sentences.",
  "the party opens the sealed iron door"
))

~3 seconds, and you pay in Robux via a game pass. No cards, no backend.

🎁 Open beta — free keys for the first devs. Founding testers keep a permanent founder discount when it goes paid, plus a Robux reward + your game featured for shipping it in a live game with feedback.

Get started

Get a free beta key → Free kit on GitHub Live demo

More guides: ai npc · ai chatbot · chat moderation · ai quests · ai companion · ai shopkeeper · dynamic dialogue · ai dungeon master · ai lore generator · smart enemies · ai tutorial npc · ai story generator