wait(0)
--Services
local Tween = game:GetService("TweenService")

--CameraTween
local Cam = workspace.CurrentCamera
local CamPoints = workspace:WaitForChild("CameraPoints")

local function TweenCameraPos(Point, Speed)
	Tween:Create(Cam, TweenInfo.new(Speed, Enum.EasingStyle.Linear), {CFrame = Point.CFrame}):Play()
end

Cam.CameraType = Enum.CameraType.Scriptable
Cam.FieldOfView = 70

Cam.CFrame = CamPoints:FindFirstChild("1").CFrame
TweenCameraPos(CamPoints:FindFirstChild("1"), 4)

How would I make it so that when I click a button the camera changes to a different camera

1 comment

0

im not sure if you can create a new camera but just change the cameras cframe to the one you want