I'm trying to make it so when the player holds the build tool, it would allow the player to choose a structure to place and be able to actually place it with a ghost outline visible before placement. I am also going to be needed help later on when I take a stab at creating the proper snap points for said buildings.
here's the problem, when I test out the script, it does not allow me to place any structures, nor can I see a ghost outline. What am I doing wrong?