Tweening Orientation when degrees are more than 360 makes it weirdly go back to 0 for a brief moment

repeat 
		local x,y,z = CFrame.new(part.Position,mo.Hit.p):ToOrientation()
		rotation = math.deg(y)
		game:GetService("TweenService"):Create(part,TweenInfo.new(.2,Enum.EasingStyle.Quint),{Orientation = Vector3.new(0,rotation,0)}):Play()
		part.Anchored = true
		part.Transparency = .4
		part.BrickColor = BrickColor.new("Really red")
		wait()
	until not fe

I want to to go to -180 after it exceeds 360 degrees but instead it goes back to 0 then to -180 for some reason