I’ve been using this function for quite a while with no issues whatsoever until today.
When I fire BindToClose, it fails with this error in output:
I’ve searched the forums and only found one post with the same issue, however it was from years ago and had no responses. I’ve attempted to fix this by using it in a different script and have also made sure it’s only being used in one script at a time.
Example code:
game:BindToClose(function ()
--Do some stuff.
wait(1) --Allow stuff to finish before closing.
end)