Scripting Question

Hello devs! Wondered for a long time and finally I want to get answer for such an interesting for me question.

Will script stop it’s run once it got Destroy() ed?

Yes, it will stop running once it’s been destroyed. Please note scripts will only stop running if you destroy them on the server, not the client. I wouldn’t recommend this though, I imagine the only use case of destroying a script is to stop an infinite loop, instead use the keyword break after a conditional statement to stop the loop.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.