how to exit current scope roblox

To exit the current scope in Lua for Roblox, you can use the "return" keyword. This will immediately exit the current function or block of code and return control to the calling function or the next line of code outside the block. Here's a simple example:

function myFunction()
  if someCondition then
    return
  end
  -- Code here will only execute if someCondition is false
end

In this example, if the "someCondition" is true, the "return" statement will exit the "myFunction" immediately. If the condition is false, the code after the "return" statement will be executed.