just to clarify the structure goes like this (my bad I didn't realise the spaces didn't show up)
Main
--Player
----Camera2D
--Ring
--Enemy
also because the enemy is like a separate scene, the player does not exist with it because when I code for the Enemy, it is assuming the structure of the enemy scene which look like
Enemy
--Sprite
--AnimationPlayer
--CollisionShape2D
--Area2D
----CollisionShape2D
the enemy exists separately as it is in a different, same with the player scene, it is just that I instanced both the player scene and the enemy scene to the main scene, I am pretty sure that is why it isn't working. I'm very new to GDscript btw