I’m trying to tweening the camera CFrame position, but it doesn’t work. I would appreciate it if you could let me know what the problem is.
local camera = game.Workspace.CurrentCamera
local tween = game:GetService('TweenService')
local currentCamera = workspace.CurrentCamera
local Camera_C = camera.CFrame.Position
local fov = Vector3.new(0,-50,0)
local tweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut)
local tween = tween:Create(currentCamera, tweenInfo, { currentCamera.CFrame.Position + Vector3.new(0,-50,0) } )
tween:Play()
local tweenInfo = TweenInfo.new(SlideDuration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local tween = game:GetService('TweenService'):Create(Slide, tweenInfo, {Velocity = Vector3.new(0, 0, 0)})
tween:Play()