Cortex · AI for your Roblox game · all guides

How to generate branching stories in Roblox

Generate story beats that adapt to player choices, so no two playthroughs read the same.

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 narrator. Continue the story in 1-2 sentences from the choice.",
  "the player chose to spare the thief"
))

~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