Need help with CFrame Tweening

Hello! I’m trying to make an object tween that rotates and moves an object at the same time. This is what I have so far:

local tweenService = game:GetService("TweenService")
local Part = script.Parent	
local tweenInformation = TweenInfo.new(
	.75,
	Enum.EasingStyle.Quad,
	Enum.EasingDirection.InOut,
	-1,
	true,
	1.25
)
local partInfo = {
	CFrame = CFrame.new(-19.998, 38.3, -165.016) * CFrame.Angles(math.rad(600),0,0)
}
local tween = tweenService:Create(Part, tweenInformation, partInfo)
tween:Play()

My issue is that I just want the object to rotate in one direction, but it rotates in multiple, and not the amount I wanted. Any help is appreciated!

It seems your issue entirely lies within your variables for the tween info and rotation.

Reminder for variable meanings
local tweenInformation = TweenInfo.new(
.75, -- Time it takes
Enum.EasingStyle.Quad, -- Easing style (the style for the tween)
Enum.EasingDirection.InOut, -- Easing Direction (how it tweens)
-1, -- Repeat count
true, -- Does it reverse?
1.25 -- Delay from start to action
)

The way you have it set up currently, it will bounce back and forth to the destination, reverse, and repeat infinitely. If you wish to fix this, change the easingdirection to out (unless you wish to keep the bouncing behavior) and set the repeat count to either 0 or a positive number (unless you want it repeating infinitely).

As for the rotating in multiple directions: I’d have to see exactly what you’re working with on your end but my guess is that you’ve set the wrong axis for your rotation in the CFrame. Remember this is set up in the classic (X,Y,Z) format and represents the orientation property. Any number (as you have done) that isn’t 0 should be wrapped in a math.rad(). I’d recommend checking you’re rotating the correct axis and to the correct desired angle. (Try flipping it around like (0,math.rad(180),0),(0,0,math.rad(180)) etc.)

As I don’t have the setup in front of me, that is the most detail I can give you without fixing it myself. Hope this helps!