Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How would I make a player's camera go to a certain angle when they die?

Asked by 9 years ago
plr=game.Players.LocalPlayer
pchar=plr.Character
camera=workspace.CurrentCamera

pchar.Humanoid.Died:connect(function()
    camera.CameraType="Scriptable"
        --What would I do here?
end

When someone dies, I'm wanting the camera to go straight to a certain angle but how would I do that? Would it require a start and end velocity/position to make the angle? I'm doing this in a local script in a GUI.

1 answer

Log in to vote
0
Answered by
Cr0ws 20
9 years ago

Add this:

camera.Focus = pchar.Torso.CFrame

Ad

Answer this question