Ok so i actually put. var isplaceobject = 1; inside the actual function. Ok now the crate will stay a ghost forever, and the ghost never disappears. But now instead of placing just 1 crate when i click it places a huge line of like 50 crates coming up all the way towards the camera, not just 1 like its supposed to be doing.