local count = 1
local inmenu = true
function Next()
local newspot = camparts:FindFirstChild('Cam' .. count)
if newspot then
tweenservice:Create(camera,TI, {CFrame = newspot.CFrame}):Play()
count += 1
wait(2)
else
count = 1
end
end
while inmenu == true do
Next()
end
how can I make the camera tween from CamPart 1, to CamPart 2, and so on, instead of back to the character?
Set the cam.CameraSubject to nil then cam.CameraType to Scriptable
and afterwards change cam.CameraSubject back to the players humanoid cam.CameraType to Custom
local count = 1
local inmenu = true
function Next()
local newspot = camparts:FindFirstChild('Cam' .. count)
if newspot then
tweenservice:Create(camera,TI, {CFrame = newspot.CFrame}):Play()
count += 1
wait(2)
else
count = 1
end
end
cam.CameraType = Enum.CameraType.Scriptable
cam.CameraSubject = nil
while inmenu == true do
Next()
end
cam.CameraType = Enum.CameraType.Custom
cam.CameraSubject = game.Players.LocalPlayer.Charater.Humanoid