First off, this is technically a paid plugin. It runs on the GPT-4 Turbo API. Someone could get it to work with a free open-source language model (ROBLOX has implemented a free Assistant), but those aren’t quite there yet.
The creatively named RoGPT is a variant of an open-sourced base from HumainAbsurde’s post. I altered it to be compatible with the ScriptEditorService released by ROBLOX, and of course use OpenAI’s latest API.
Capabilities
Does what GPT-4 can, that means it has pretty decent knowledge of services and can write 70 lines of code at once. Neat for beginners, neat for automating certain tedious tasks.
Roadmap
It can’t do these things yet; but if anyone wants to pursue these avenues or improve the script, I leave the source below.
Creating/Inserting models - Would be cool if there were a sort of GPT plugin-style behavior that could intelligently insert models from catalog.
Broader context - An AI that could read the descendants in your place would be able to properly integrate new scripts and items. This functionality could be spoofed to some degree by providing the GPT with a table of descendants and properties, but it’s quite costly due to the high number of input tokens.
UI - The script editor UI will open when a script is opened and it will close when you exit the last opened script, but nothing occurs when you switch tabs. There may be additional API functionality for the editor service that enables a more intelligent behavior so you don’t have to close and re-open scripts as often.
While GPT4 can write good code in many small, isolated cases, it cannot replace the role of a scripter in most cases. GPT does not understand the broader systems of a game and cannot yet write code that accurately and reliably interfaces with such systems.
A tool like this can write small one-off jobs but nothing more. Using GPT to do more than that requires a scripter to understand how to join the outputs of GPT together. It also requires a scripter to fix the many inevitable mistakes and hallucinations of GPT’s results.
I got one word for this. “Modules”. Ai will never understand modules and modules are very important in roblox coding as they add allot of features and can help, fastcast, math modules etc.