Camera part change for all players

Hello everyone , i tried to make a script to make all camera of all players are changing to a part and at a moment all cameras are back to the player

Could someone can help me pls?

Here is my main script :

game.Players.PlayerAdded:Connect(function(Player)
	IntroEvent:FireClient(Player)
end)


wait(14.5)
local function MainGame()
	
	print("game start")
	game.Workspace.SoundsEffects["Car Engine"]:Play()
	ToggleDialogueEvent:FireAllClients(true)
	

	**cam.CameraType = Enum.CameraType.Scriptable**
           **CFrame = workspace.CamPart4.CFrame**

	DialogueEvent:FireAllClients("You : Damn...")
	workspace.SoundsEffects.Fuel:Play()
	wait(4)
	DialogueEvent:FireAllClients("You : the car does not have any more fuel, we will have to stop here. ")
	wait(4)
	workspace.SoundsEffects.Fuel:Stop()
	wait(3)
	game.Workspace.SoundsEffects["Car Engine"]:Stop()
	workspace.SoundsEffects.CarDoor:Play()

	**cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid**
	**cam.CameraType = Enum.CameraType.Custom**

	ToggleDialogueEvent:FireAllClients(false)
	
	game.Workspace.SoundsEffects.Foret:Play()
	
	for _,player in pairs(game:GetService("Players"):GetPlayers())do
		if player and player.Character then
			player.Character:MoveTo(part.Position)
		end
	end
1 Like

I think

camera.CameraSubject = Part

will work great for the local script for cutscenes

1 Like


something like this

1 Like