Sorry for the confusing title. I just wanted to know if when a script executes like so
local function doSomething()
--some long code that does stuff
return somevariable
end
remote:Connect(function()
local var = doSomething()
-- do some more stuff <-- Would this code execute before the variable can be returned?
end)