Cortex · AI for your Roblox game · all guides
Generate story beats that adapt to player choices, so no two playthroughs read the same.
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.
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