Hello everyone, I made a script where when a player dies, they spectate their body. However, it seems like the game is automatically setting the CameraSubject to Humanoid when the player respawns, which basically overrides my script.
Here is the code:
--When player character loaded
local Camera = workspace.CurrentCamera
local corpse = game.Workspace.Corpses:FindFirstChild(plr.Name)
if corpse then
wait(0.3)
Camera.CameraSubject = corpse.HumanoidRootPart
end
I want to be able to set the CameraSubject smoothly without having to rely on a “wait(0.3)” because it looks choppy that way.