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

How to use orbital camera type?

I tried doing this in a local script but it didn't work:

workspace.CurrentCamera.CameraType = Enum.CameraType.Orbital

1 answer

Try doing the following! (In a regular script.)

repeat wait() until game.Workspace.Camera --fix a roblox bug, just to make sure Camera exists when the script goes.

wait(1) --It needed 1 second delay, now it will work :S
game.Workspace.Camera.CameraType = Enum.CameraType.Orbital --CurrentCamera doesn't really exist :S

If this works, please mark as the answer! <3

As always, good scripting!

2 comments

0

i put it in a server script and it did not work

0

I updated the script, paste again, I tested it and it works.

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