Model rotating on the wrong axis

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make the orientation rotate on the Y axis so it rotates to this side ←

  2. What is the issue? Include screenshots / videos if possible!

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried reading the devforum and tried using cframe.toangles it didn’t work but instead moved the position.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

function onClicked()
	local tweenservice = game:GetService("TweenService")
	
	local tweenspeed = 2 --Tweening speed
	local tweeninfo = TweenInfo.new(tweenspeed,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
	local tweengoal = {Orientation = Vector3.new(0, 30, 0)} --Your position goes here
	
	for i = 1, 10 do
		local tweenpart = game.Workspace.MainStudio.FastestFingers["Cont" .. i].Part
		local tween = tweenservice:Create(tweenpart,tweeninfo,tweengoal)
		tween:Play()
	end
end

Hello!

Whenever tweening a model, it is best to tween the model’s primary part, rather than an individual part inside of it. So set the PrimaryPart property to the part to want to rotate.

Hope this helps!

That’s what I originally did that the part (now named to StarterPart) is the primary model, but when rotating it, it does that.