if this is in the wrong topic, please let me know below so it can be changed.
Long story short, I’ve hit some sort of a weird wall in scripting.
Anything I think of mainly, I can some what create. But, once it’s created there’s many errors and issues.
I understand trial and error is a common part of scripting to flatten out all of the errors, but for me it gets to a point where the script isn’t even erroring anymore, there’s no errors. It just is no longer working correctly, or causing performance issues, this that and the other.
Is there anything anyone would recommend at a point like this for myself and people alike?
It’s quite downing watching hundreds of hours of work go to waste every time.
Write down a list of common tests to run on your script such as:
What happens when I reset at this point of the script?
What happens when I leave the game at this point of the script?
Will this data get deleted when I leave the game? Is there anything I should be cleaning up?
If you still run into bugs, go through your script with breakpoints and see if your code is running as expected. A lot of bugs you learn how to fix with experience. If you don’t know how to fix something, ask here or google it! I’m a part of a communications server where you can ask quick questions called ‘Roblox Script Assistance’
Another great tool is the debugger. You can click the line of code you want your code to pause at and it’ll pause your code at that line when you press run. If you don’t already use it, check it out here: Using the Lua Debugger (roblox.com)
I’ll checkout the Debugger, never knew about that actually!
Thank you for the reply I appreciate it a lot, I’ll also checkout the group too.
I’ll start setting up the tests as well.