Camera part change

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

I think you’re trying to change the server camera, which is not going to do anything. You need to fire all clients with a remote and tell them to move their own camera.

Please don’t make duplicate topics, you already have 2 other topics for the same thing:
image

1 Like