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

Weird glitch in Roblox; CameraType wrong switching, anyone knows why?

game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

I have this code ^^^ and I want to switch current camera from Fixed to Scriptable. When I run the code, camera sets itself to Fixed > Custom not to Scriptable. Is there any glitch or something in roblox that does this? Or some other built-in script that switches it? (I ensure that NOTHING FROM MY SCRIPTS is switching camera type)

2 comments

0

what script do you used?

1

Hello, camera manipulation is tricky, I recommend adding a repeat loop that stops when the mode is equal to the requested mode (e.g. repeat wait(1) cam.CameraType = Enum.CameraType.Scriptable until cam.CameraType == Enum.CameraType.Scriptable)

1 answer

@HaveASip LocalScript only @RedcommanderV2 Thanks, I'll force it through:

repeat game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable until game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

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