The goal is to have cubes follow a path from one end to another, while the player is able to place a turret onto the "map area" and the turret will destroy aforementioned cubes.
The cubes follow the path, and work fine, but the issue is that when the player spawns into the world, that do not have the ability to select a location for the turret, and the turret is not duplicated at all
Scripts where too long to place here

2 comments
I frankly don't have the patience to read through and try to interpret ~150 lines of code. Have you tried adding debug statements (i.e. prints) around the code to follow the flow?
i fixed it