im making a spawner and i added a timer for it to delete itself but the only issue is it deletes the spawned thing here is the script
extends Node2D @export var magma: PackedScene @export var levle: PackedScene
Where is the code that makes the spawner delete itself? Such an issue may be related to the destruction of the node that’s the parent of both the spawner and the spawned objects.
Okay, seems like my guess was wrong.
Have you checked your scene tree at runtime to make sure the spawned nodes are not children of the spawner (could happen if you have some other code affecting that somewhere)?
Also, are there any codes destroying the spawned nodes?