How do I cancel an “Instance.Changed:Connect(function() end)” so that it doesn’t react to that instance changing anymore?
I have something that looks like this
function()
–some stuff here–
Instance.Changed:Connect(function()
–some stuff here–
end)
–some stuff here–
return x
end
I can’t figure out how to cancel the Changed function inside once the entire function has finished because the events inside are still firing even though the function has ended and returned all the values I need it to. Any help would be appreciated, thank you!
Sorry, just a nitpick on wording but that one word could be an important difference. Nonetheless, you are right in that break outside of a loop will throw an error.