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)
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.