local Condition = true
local function Function1()
local function Function2()
if Condition == true then
return true
end
end
if Function2() then
return
end
print("Still Running")
end
Function1()
Use chat gpt before ask here. also don’t use chat gpt before think and try about it else you will be useless programmer
local thread
local function Function1()
thread = task.spawn(function()
local function Function2()
If Condition == true then
--Stop The functions here
task.cancel(thread)
return
end
end
--Doesnt print When both functions are stopped
print("Still Running")
end)
end