I’ve had an issue when CameraSubject doesn’t change when resetting. Recently, I just made a flag tech when if you die, the camera subject will switch to the new camera subject, “Tip” (flag’s child), and you had a gui button to appear when you click a button to respawn yourself and camera will change back to normal. BTW, I was tryna find a solution on devforum lol
The script
Humanoid.Died:Connect(function()
if Player.TeamColor == BrickColor.new("Maroon") then
for _, Flag in pairs(ReplicatedStorage.FlagStorage:GetChildren()) do
for _, player in pairs(PlayerList) do
if player.Character:FindFirstChild(Flag.Name) then
task.delay(5, function()
FlagModule:ChangeCamera("Custom", player.Character:FindFirstChild(Flag.Name).Sabre.Tip)
FlagModule:CreateGui()
end)
end
end
end
end
end)
Module script:
function FlagModule:ChangeCamera(cameraType, cameraSubject)
local CurrentCamera = workspace.CurrentCamera
repeat task.wait()
CurrentCamera.CameraType = Enum.CameraType[cameraType]
until CurrentCamera.CameraType == Enum.CameraType[cameraType]
CurrentCamera.CameraSubject = cameraSubject
CurrentCamera.CFrame = cameraSubject.CFrame
end
Video that camerasubject doesnt change after respawn:
Place1 - Roblox Studio (gyazo.com)