– Slide Camera
local function slideCamera()
if cameraMove then
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CFrame.new(Vector3.new(-5.5, 3.435, -36.605),Target.Position)
end
end
I found this script,
but it rotates the camera 180 degrees which I don’t want it to do…
local tween_info = TweenInfo.new(2, Enum.EasingStyle.Linear) --//the first index being the time of the tween
local camera = workspace.CurrentCamera
local function Tween_Camera(point) --//‘point’ being a CFrame
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CFrame.new(camPart.CFrame.Position,Target.Position)
local property_goals = {CFrame = point} --//Goals we want the properties of 'camera' to achieve.
local new_tween = tweenService:Create(camera, tween_info, property_goals)
new_tween:Play()