I’m writing a script where the camera tweening down when I press a certain key. But the camera cuts through the place and tweening If you know how to fix it, please help!
local camera = game.Workspace.CurrentCamera
local tween = game:GetService('TweenService')
local currentCamera = workspace.CurrentCamera
local fov = Vector3.new(0,-50,0)
local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut)
local tween = tween:Create(currentCamera, tweenInfo, { CFrame = currentCamera.CFrame + 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()
tween.Completed:Wait()