I need help with drag and drop thing

Hey y’all I am trying to make a level editor like game and I am having an issue with my code where if I toggle relative with camera for two objects it breaks, it is hard to explain but I need help: https://arcade.makecode.com/S37313-36449-59264-67984