Tween Not Rotating Properly

I’m currently creating an AI for my game, and I have the AI turning and walking using Tweens. The rotation of the AI is randomized between 1 and 360, to give full movement.

However, often times the AI will turn all the way around and basically go the full 360 degrees just to turn a little bit to the left.

I’ve tried creating a small calculation that checks if the rotation is over 180, and if it is, subtract 180 and multiply by -1. This helps, but doesn’t remove the problem. Can someone help me with this?

Dont use tweens for walking cycles, its much better to learn pathfindingservice (its not as hard as you may initially think)