Does the issue still occur if you disable/remove queue_free entirely? Obviously this wouldn’t be a solution, but it might narrow down where the issue is. I would have thought it was the queue_free call, but it seems this may not be the case. But it might and so removing it temporarily would help rule that out.
Never mind, I think the issue is in the block script on second read.
SuperMatCat24 Btw, it also happens inside a mushroom block scene i made, which doesnt have a coin in it
Okay, looking at this again, this was my bad. The issue seems to be in the block, not the coin. My guess is calling Coinscene.coin_collect()
right after spawning the node may be the problem. Have you tried calling this in a deferred function call?
What code is on line 16 on the coin block? That should help tell you where the issue is. I think if you double click it, the editor should try to go to the line of code, but I do not remember 100% right off.