Put queue_free() below the print statement to check if it it detects the player. If it doesn’t you may need to check layer and if the signal is properly connected.
ok, just now i checked and indeed collisionlayer and collision mask were different(i just get wrong); now i set same value for both of them and it works.