I want to make the player when he die, the camera not follow the body of the player.
COMMUNITY QUESTION
How to make camera not follow the player when the player dies?
1 answer
One way to do this would be to change the camera's CameraType. In a LocalScript:
local humanoid = thePlayer'sHumanoid
humanoid.Died:connect(function()
local camera = game.Workspace.CurrentCamera
-- get the players camera
camera.CameraType = Enum.CameraType.Fixed
-- I'm not sure if that's exactly it, you might to change that a bit
end)
And now, when the player dies, the camera will (hopefully) remain in a fixed position.
This discussion is preserved as it was. New answers, comments, and votes are closed.
