I was planning that my seed script project can have a line of code that can stop a function from continuing. Sorry this description is stub. But anyways to pause a function?
Assuming this is just for debugging and you still have code afterwards, you can do
local function foo() print("hello") do return end print("world") end foo()
and that will only print hello
.
The reason this works is because return
only needs no more code after it in its scope.
Hope this helps!