Part always tweens the same orientation no matter the input

So I’m trying to make it so that the Player’s camera rotates down a bit, but for some reason the camera always tweens to the same orientation disregarding the input.

LocalScript:

local message = script.Parent:FindFirstChild("LoadMsg")
local playButton = script.Parent:WaitForChild("PlayButton")
local TweenService = game:GetService("TweenService")
local Camera = workspace.CurrentCamera
local Supposed = true

repeat task.wait()
	Camera.CameraType = Enum.CameraType.Scriptable
	print(1)
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame

local Tween = TweenService:Create(workspace.CameraPart,TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0),{CFrame = CFrame.new(workspace.CameraPart.Orientation) * CFrame.Angles(math.rad(5),0,0)})
-- Important ^^
workspace.CameraPart:GetPropertyChangedSignal("CFrame"):Connect(function()
	if not Supposed then
		return
	end
	Camera.CFrame = workspace.CameraPart.CFrame
end)

task.wait(2)

for i = 1, 0, -0.05 do
	task.wait(0.1)
	message.ImageTransparency = i
end


task.wait(2)

for i = 0, 1, 0.05 do
	task.wait(0.1)
	message.ImageTransparency = i 
end	

task.wait()
message:Destroy()

task.wait(2)

for i = 0, 1, 0.05 do
	task.wait(0.1)
	script.Parent.BackgroundTransparency = i
end

Tween:Play() -- Important
task.wait(2)
Supposed = false

playButton.Visible = true
for i = 1, 0, -0.05 do
	task.wait(0.1)
	playButton.ImageTransparency = i
end

What happens:

Try this as tween

local Tween = TweenService:Create(workspace.CameraPart, TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0), {CFrame = CFrame.new(workspace.CameraPart.Position) * CFrame.Angles(0,math.rad(5),0)})

The only thing that changed is that it moves slower.

I gave up tweening the CFrame so I used the Orientation instead.

local Tween = TweenService:Create(workspace.CameraPart, TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0), {Orientation = Vector3.new(-13.69, 119.71, 1.14)})
1 Like