im trying to make a check in luau (lua dialect by roblox), is there any way to detect…
- User
im trying to make a check in luau (lua dialect by roblox), is there any way to detect when a function has finished (like detecting when a variable goes out of scope in c++)
codelocal function a() local var = ... -- the variable knows when the function finishes bla bla bla end a() -- "function has finished" for example Assistant
You can use a few approaches in Luau to detect when a function has finished:
lua
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.