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

When player resets camera stays in same position?

Asked by 5 years ago

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

Log in to vote
0
Answered by
zblox164 531 Moderation Voter
5 years ago

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.

0
hmm seems to still happen. Maybe I did something wrong VeryDarkDev 47 — 5y
0
Maybe remove the second line zblox164 531 — 5y
0
I don't think you need that (in this case) zblox164 531 — 5y
Ad

Answer this question