I need some help trying to get the camera to return to the player.
So I got this script to work with my GUI's (Script below) and I can't figure out how to script it so the camera returns to the player after they hit the play button, Because right now everything works but the camera is stuck in the camera transition phases from block to block but gets stuck once it stops at the end block and won't move on to the 2nd set of blocks.
This script is a localscript.
-- Locals
local tween = game:GetService("TweenService")
local cam = workspace.Camera
local scenes = workspace.CameraScenes
local currentTween = nil
local looping = true
repeat wait() until cam.CameraSubject ~= nil
cam.CameraType = Enum.CameraType.Scriptable
while true do
for i, v in pairs(scenes:GetChildren()) do
if looping == false then return end
cam.CFrame = v["1"].CFrame
currentTween = tween:Create(cam, TweenInfo.new(10), {CFrame = v["2"].CFrame})
currentTween:Play()
wait(10)
end
end
