How to run a specific code in roblox studio

Basically I’m making a story game, and it takes a long time waiting just to reach a certain part of the game, for example to see if it works or see if I need to debug something. Is there any way to not start the game in the beginning but instead at a given place instead. Sorry if this does not make sense I am horrendous at English

Your code should be designed with that use case in mind. Good code design for a story experience should allow the developer, whether for debugging or for an actual checkpointing feature, to specify a place in the current timeline to start at or jump to.

Without the design for this, you’ll simply have to do some handiwork in commenting out what isn’t necessary to be tested and making sure the resources are set up for the part of the story that you’re working to test. There are no such tools that allow you to step into code like that[1].

[1] There is an exception: Stepping Through Code with the Debugger. This, however, is not the same kind of stepping-through that I’m referring to. Debugger’s step-through allows you to run code line-by-line to see the environment change with each line of code ran and skip over some whole functions. It does not start a thread at a middle line.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.