Camera Trouble in Cutscene

Hey guys,

I am experiencing an issue regarding my cutscene. The player’s camera orients around the player’s character instead of moving to a defined part in the workspace, and I cannot find a way around it.

Here is an illustration of the issue:

Module Script

function module.InitiateCutscenes()
	local Cutscene_Folder = ReplicatedStorage.Cutscenes
	local Defence_Cutscene = Cutscene_Folder.Defence
	local Offence_Cutscene = Cutscene_Folder.Offence
	
	local Defence_Cutscene_Event = Defence_Cutscene.Defence_Cutscene_Event -- Event
	local Defence_Cutscene_Parts = Defence_Cutscene:FindFirstChild("Defence_Cutscene_Parts") -- Cameras and Assets
	
	local Offence_Cutscene_Event = Offence_Cutscene.Offence_Cutscene_Event -- Event
	local Offence_Cutscene_Parts = Offence_Cutscene:FindFirstChild("Offence_Cutscene_Parts") -- Cameras and Assets

	for i, Player in pairs(game.Players:GetPlayers()) do
		if Player.Team == game.Teams.Defence then

			local Cloned_Defence_Cutscene = Defence_Cutscene_Parts:Clone()  
			Cloned_Defence_Cutscene.Parent = workspace -- Physical Cutscene enters Workspace
			Defence_Cutscene.Defence_Cutscene_CameraPlay:FireClient(Player) -- Launch Camera Script (Defence_Cutscene - Cameras)

		elseif Player.Team == game.Teams.Offence then
			local Cloned_Offence_Cutscene = Offence_Cutscene_Parts:Clone()
			Cloned_Offence_Cutscene.Parent = workspace -- Physical Cutscene enters Workspace
			Offence_Cutscene.Offence_Cutscene_CameraPlay:FireClient(Player) -- Launch Camera Script (Offence_Cutscene - Cameras)

		end
	end
end

Local Script (Defence Team Variant)

local Camera = game.Workspace.Camera
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Defence_Cutscene = ReplicatedStorage.Cutscenes.Defence
local Defence_Cutscene_Parts = Defence_Cutscene.Defence_Cutscene_Parts

local Part1 = Defence_Cutscene_Parts:WaitForChild("Cameras").Part1
local Part2 = Defence_Cutscene_Parts:WaitForChild("Cameras").Part2
local Part3 = Defence_Cutscene_Parts:WaitForChild("Cameras").Part3

Defence_Cutscene.Defence_Cutscene_CameraPlay.OnClientEvent:Connect(function()
	Camera.CFrame = Part1.CFrame
	print("Playing")
	wait(3)
	Camera.CFrame = Part2.CFrame
	wait(3)
	Camera.CFrame = Part3.CFrame
	wait(3)
	Camera.CameraType = Enum.CameraType.Custom
end)
3 Likes

Have you tried setting the CameraType to Enum.CameraType.Scriptable?

Also use task.wait instead of wait. It’s cooler and better

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.