Cant connect to smb only if running via LaunchAgent

Does it connect when you start this LaunchAgent manually after boot?:

launchctl start your.copy.launchd

If yes then you have to wait for a network.

Have a look at this example for mount:

you can modify it for your command. No need for LaunchAgents.