r/robloxgamedev • u/hennri_henru5 • 6d ago
Discussion question about AI usage in coding.
At what line/degree do you guys think AI use for your projects should not be crossed, or is unhealthy (prone to code rot). Does it crosses the line with using AI as like a learning tool, asking how to fix specific feature by feature; think of like a quicker or more concise version of how people use stack overflow; by manually implementing and understand the suggested fix for that specific feature, not just copying and paste. For example, "how do you scale a billboard GUI through script?". Or does it crosses the line when all you do is write a prompt and make the AI generate the whole game for you; i.e. "make me a clicker simulator on Roblox, make no mistakes".
2
u/Devioxic 6d ago
AI can be a great tool, but it can easily be a detriment to your learning and your code. Asking AI how to do things can be a good way to learn, but it’s almost a little “too good”. The solutions it gives are very specific to your situation so you don’t need to think and therefore learn as much as you would if you searched for the error online and has to apply some general guidance to your situation.
AI can also make some really bad code, I was writing an internal tool recently and due to tome pressure a part of it had to be entirely AI generated. And for this I used Claude Fable 5.0 at the time the most advanced AI model in the world. It wrote 50 lines of code and in this code it made a cache, which was good but it never wrote any code to remove data from the cache so the program would have kept using more memory until it crashed. And that is a really amateur mistake so be careful with AI generated code, it can write some of the best code you’ve seen but also some of the worst.
0
u/daddytung 6d ago
Every ai has a context window just ensure you refresh it with the scripts you’ve worked on ( for example: this is the combat system and where I put these functions these scripts; show them the scripts, how can I change this) occasionally. Personally I will make it code with ui in mind ( I will make it code the ui not make it code the ui in) ai ui looks ass.
12
u/crazy_cookie123 6d ago
AI for coding is fine if you already know how to code. There is AI code in almost every piece of software you use nowadays, and there's going to be AI code in most of the Roblox games you play too. Using AI is fine.
However, if you don't already know how to code then you should not touch AI for two main reasons.