OK, so you have a component with a script, and when you load that component into the 3D world, the script does not execute when you run the simulation. Instead, you have to go to the script, recompile it, and then it works. Right?
If yes:
Unfortunately, that is a known issue. Are you importing any modules in your script besides vcScript?
Yes, that can workaround the issue. There was a change made a few versions ago in which the main application auto-compiles scripts when loading. That potentially causes problems when the scripts are parsed and then compiled, but references to objects that do not yet exist in the layout/component can throw exceptions and make the script not work. Only after the component is loaded/finalized would the script function properly.
Case in point, if you are using vcHelpers.Robot2, then use the OnFinalize event to workaround some issues in declaring variables.