How would I tween the rotation of a model without using primary part or lerp?

I’m struggling to tween the rotation of a model without using primary part. So how would I do this?

tween:Create(clone, TweenInfo.new(0.75, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {Orientation = clone:PivotTo(CFrame.Angles(0, 180, 0))}):Play()

I tried this but then it just breaks this

local cam = Instance.new("Camera")
				cam.Parent = viewport
				cam.CFrame = CFrame.new(Vector3.new(13.056, -13.916, -183.302))  -- move the camera 3 studs in front of da pet, and make it look at the pet
				cam.Focus = CFrame.new(Vector3.new(13.056, -13.916, -183.302))
				cam.CFrame *= CFrame.Angles(math.rad(-4.638), math.rad(90.179), 0)
				cam.Focus *= CFrame.Angles(math.rad(-4.638), math.rad(90.179), 0)
				viewport.CurrentCamera = cam

				ray:TweenSize(UDim2.new(0.5, 0, 0.5, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.75)
				viewport:TweenSize(UDim2.new(1, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.75)
				
				task.wait(3)
				ray:TweenSize(UDim2.new(0.1, 0, 0.1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.75)
				viewport:TweenSize(UDim2.new(0.1, 0, 0.1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.75)


				task.wait(0.5)
				clone:Destroy()
				cam:Destroy()
				ray.Visible = false
				debounce = false
3 Likes

How are you tweening it? By the Orientation or the CFrame?
Why can’t you set a Primary Part?
I think you can also set the Pivot of the Model with the Pivot editor in the Model Tab of Studio and make it anywhere you want.
You can also edit the WorldPivot of the Model using a script.

2 Likes

You can use a dummy cframe value and then you can lerp that offset and then apply that through the model’s PivotTo function in a heartbeat loop

local dummyValue = CFrame.new()
local model = workspace.Model
local rotation = 90
local target = model:GetPivot() * CFrame.Angles(0, math.rad(rotation), 0)

game:GetService("RunService").Heartbeat:Connect(function()
    dummyValue = dummyValue:Lerp(target)
    model:PivotTo(dummyValue)
end)

I changed the post to show what i tried doing @astraIboy @Scottifly

Thanks, but this is still confusing.
You are creating a tween for clone, which I’m guessing is the model you are referring to in the title.

You don’t reference what clone has to do with the camera tween function. We can see you are trying to move the camera 3 studs from the pet and rotate the camera.

Then you destroy clone.

What exactly is clone? The Camera Part? Is it a Model the pet is rotating around?

Please explain every detail no matter how insignificant you think it is, because we can’t read your mind to know what all the outside details are that may be causing your issue.

Clone is the model that i am tweening

Also forget about that comment I added that was old and I didn’t delete it since @Scottifly