Child game objects move to different position after clicking play in Unity 2D

So I have child game objects on my “player” game object for detecting the ground and the walls. I put them into a certain position, however they for some reason move to a different position when I click the “play” button to test my game. The game objects do not have rigid bodies so I do not know what could be causing this.

edit: I figured out what the problem was, it wasn’t an issue, it was my fault; for some reason I was setting the local position of the objects inside the script, I don’t know why I decided to do that but totally forgot that I did, I guess I should have checked my script before making a post.

Can you give more information. What’s the code in your script? Do you have any other scripts that use the child objects as reference?