📕
OpenAI Library - A Roblox Module Library
  • OpenAI - Roblox Library
  • docs
    • Obtain an API Key
    • Installation
    • Usage
    • Feedback
Powered by GitBook
On this page
  1. docs

Installation

PreviousObtain an API KeyNextUsage

Last updated 2 years ago

Installation

Before you can use the OpenAI Roblox module library in your game, you need to install it. There are three ways to do this:

  1. Download the module from the Roblox library and save it to your computer. Then, open your game in Roblox Studio and drag the file into studio.

2. Insert it from the Library: In your game in Roblox Studio, go to the "Insert" tab and click on the "Module Script" button. In the pop-up window, search for , find the one by DecentAgent and select it to insert it into your game.

3. Insert it from the Command Bar: In your game in Roblox Studio, go to the "View" tab and click on the "Command Bar" button. In the command bar, paste this in:

local Asset = game:GetService("InsertService"):LoadAsset(11934303220)

Asset.Parent = game.ReplicatedStorage

for i,v in pairs(Asset:GetChildren()) do
	v.Parent = game.ReplicatedStorage
	Asset:Destroy()
end

and press enter to insert the module into your game's ReplicatedStorage.

Once you have installed the OpenAI Roblox module library, you can use its commands by requiring it in your script and calling the various functions available.

HttpService must be enabled to use OpenAI Library.

"OpenAI"
2KB
OpenAI.lua