Tweens being interrupted when game pauses and resumes

In my game I’m testing out a wrecking ball type enemy, and I’m trying to use tweens to make a behavior that rotates the enemy back and forth. When I pause the game and resume it, it changes direction mid-tween as if the wait time for changing the boolean value had kept on going while the game was paused. Does anyone know why it’s doing this and how I can fix it?




Screenshot 2024-12-26 160145
caloriecliffsball-1


So I think the issue was that the wait action didn’t stop for the time scale being set to zero (I use layer time scale for my pause feature). I should’ve tried this before, but I set a timer for each side to change the boolean value when it goes over the given time value and it works!