Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

When player resets camera stays in same position?

Not sure if this is a bug with roblox or if its me but here's my code

game.Workspace.CurrentCamera.CameraType = "Custom"
game.Workspace.CurrentCamera.CameraSubject = player.Character:WaitForChild("Humanoid")

if you help me I will give you one non-existent cookie

1 answer

On line 1 you need to change:

game.Workspace.CurrentCamera.CameraType = "Custom" -- deprecated

To:

game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom

The first method is deprecated.

3 comments

0

hmm seems to still happen. Maybe I did something wrong

0

Maybe remove the second line

0

I don't think you need that (in this case)

This discussion is preserved as it was. New answers, comments, and votes are closed.