The camera moves through the place

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()

2 Likes

Could you maybe show a bit more of the code ? Because I don’t know whats Slide or SlideDuration you defined and maybe try explaining a little bit more what you mean by “cuts through the place”, maybe a video would help.