How do I find out that the local script has fully loaded?

My task is to find out when the local script is fully loaded so that I can safely trigger local events knowing that everything is going to work as it should.

I haven’t found any information on the Internet, but maybe there is some way to do it.

:WaitForChild(“Localscript”)?

Or make a bool that becomes true if script executes.

When a script appears, it doesn’t mean that it’s completely loaded. The code is still running inside, and it’s not a fact that it got to the part of code that I need.