local plr = game.Players.LocalPlayer
local tweenService = game:GetService("TweenService")
local animate = require(script.Parent.Animate)
local cameraFolder = workspace.MenuCameras
local cameras = {
[cameraFolder.Camera1] = cameraFolder.Camera1Tween,
[cameraFolder.Camera2] = cameraFolder.Camera2Tween,
[cameraFolder.Camera3] = cameraFolder.Camera3Tween,
[cameraFolder.Camera4] = cameraFolder.Camera4Tween
}
local individualCutsceneDuration = 10 -- seconds
repeat task.wait() until plr.Character
local currentCamera = workspace.CurrentCamera
currentCamera.CameraType = "Fixed"
local function handleCameras()
local tween = nil
while true do
for startCFrame, endCFrame in cameras do
animate:CamTransition()
task.wait(1)
currentCamera.CFrame = startCFrame.CFrame
if not tween then
tween = tweenService:Create(currentCamera, TweenInfo.new(individualCutsceneDuration, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = endCFrame.CFrame})
tween:Play()
end
repeat task.wait() until tween.PlaybackState == Enum.PlaybackState.Completed
end
task.wait()
end
end
handleCameras()
This is my script, I am trying to make a main menu cutscene system, but StreamingEnabled won’t let me because the camera parts are very far away from the player character, so I was thinking, how could I make it so StreamingEnabled doesn’t include my camera parts?