Can someone help me ? I have a project where a node replicate himself for no reason

Godot Version

Im in 4.6.1

Question

My main node always makes a replica of himself for no reason. Now although I’m a beginner, I really checked everywhere to see if I’ve made an instance per accident, which is not the case. I don’t think I would be able to describe the problem since everything is here. I’ll still add screen shot but I rather put the whole project inside the post.

This is a We-transfer with the project.

Did you set the script up as an Autoload in the Project Settings perhaps?

It is certainly the case since I’ve made an autoload with a global script. It was attach to my main node, but I thought it was a bad idea since it doesn’t need to be attached to run so I put another script in called main. A while after, I deleted everything cause I wasn’t happy with what I’ve done and made everything from scratch without deleting the whole project folder : just the scripts and the scenes saved. I also kept my main node and camera and even replaced my old main script with a new one. But I think that even though I deleted the global script in the project folder, the engine kept it in somewhere.

The things that bother me is that I’ve never done any instantiation with the global script and in the main script, it was always a packaged scene for a character. Plus, the strange duplicated node take all the child from the main node. It wouldn’t bother me if it’s script would also send an output if I sent one with the script of the real node, and this output is bugged, like when I run it it is never the same int from the real one but still modifies when the real one modfies too.

Thank you anyway for your help ! I’ll try tomorrow to remove the autoload.

Yes ! it worked ! Thank you !