Way/fence Building system

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JeremiasDev

Hello everyone, I have a question about a construction system in Godot, how can I make that you can build paths and the paths connect perfectly with each other, like when you use the tilemap bitmask. How does it work? I invented a building system where everything is saved and loaded, but I don’t know the automatic connection with paths or fences. And how can I load a scene that contains a script in the script.
I use a duplication of a preload scene in my build system, but if the scene contains a script then it doesn’t work. Then the methods like process cannot be executed or apparently cannot be found.

Thanks in advance