RoGPT - GPT4 for coding

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.

Get your API key here from OpenAI

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.

Plugin.rbxm (32.1 KB)

15 Likes

image

3 Likes

I get this is helpful and all, but then that’d kill the purpose of scripters- just saying…

This is pretty cool and quite beneficial to Roblox devs as a whole. Finally, I can pay for skill.

1 Like

Next level skidding‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

6 Likes

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.

8 Likes

Ah, got it, thanks for clarifying! It makes more sense now!

3 Likes

I love scripting but, even i use chatgpt to make codes but its not always perfect.

  • So when code doesn’t work as expected, you have to remake it.
    or
  • Just find another way to fix it just a little so it works.

Like:

  • You can learn from the code itself that ChatGpt created, so you learn how it works by just looking at it.
  • You can fix problems quick and easier.
  • You can make ChatGpt to Make your code Simpler or More Editable.
  • Most important for me: ChatGpt Helps me create Tweens easily :innocent:
1 Like

Yeah, I like to ask it to break down the meaning of the code! But yes, understandable!

1 Like

Most important for me: ChatGpt Helps me create Tweens easily

I mean, yeah … that’s just about much you’ll get out of it … lol

2 Likes

bro this made me laugh so hard i cant lie

1 Like

This is very beneficial to new Developers who are struggling. Thank you for helping them out!

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.

1 Like

gpt 4o compatibility added, fixed some bugs.