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)
