You shouldn’t add another function to the script but make an if statement in your init function like if the coords of the player <500: for the right side and >0: for the left side. Hope this works!