Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

The player's camera subject isnt the morph?

code:

script.Parent.Humanoid.Died:connect(function()
	local player = game.Players:GetPlayerFromCharacter(script.Parent)
	if player.Team == game.Teams.SCP then
		local Model = game.ReplicatedStorage["SCP 457"]:Clone()
		Model.Name = player.Name
		Model.Parent = workspace
		player.Character = Model
		while player.Team == game.Teams.SCP do --part that doesnt work
			wait()
			game.Workspace.CurrentCamera.CameraSubject = game.Workspace[player.Name].Head
			game.Workspace.CurrentCamera.CFrame = game.Workspace[player.Name].Head.CFrame
			end
	end
end)

1 answer

As explained in the Roblox API, the camera is not replicated between the client and server. It also states that game.Workspace.CurrentCamera is "The Camera object being used by the local player."

With that being said, make sure you are handling the Camera from a LocalScript.

This discussion is preserved as it was. New answers, comments, and votes are closed.