Camera does not change

I am trying to make a main menu using cameras, however, when I try changing it, it literally doesn’t work.

local Player = game.Players.LocalPlayer
local Camera = game.Workspace.Camera
local MenuCamera = game.Workspace:WaitForChild("MainMenuCamera")

Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = MenuCamera.CFrame
Camera.FieldOfView = 50

^ Script above

The FOV changes, the positioning doesn’t.

5 Likes

Camera, on line 2, should be workspace.CurrentCamera

Unfortunately, that didn’t work.

MainMenuCamera is a part and this is a local script correct?

CurrentCamera is the camera at the current frame, but using Camera is a legitimate way of controlling it too. Also sometimes it’s even better, since you don’t have to update camera every single frame

Mhm, it definitely is. (stupid character limit thing)

I tested the original code, and it worked fine for me.

I had a local script in starterpack and made a part called MainMenuCamera in workspace. That’s your setup?

No, the camera script is in StarterPlayerScripts

What is the MenuCamera? Also do you have any other things named “camera” in the workspace?

No, I specifically called it MainMenuCamera, there’s nothing else with the same name.


Set it up exactly like this. It’s working for me.

1 Like


Still didn’t work.

Is “MainMenuCamera” anchored? Else it will just fall through a baseplate.

no errors right? 303030303003030

It’s anchored, and collisions are off.

Nope. (I DO NOT CARE ABOUT THE CHARACTER LIMIT!)

Show the explorer view with the script and the part

Camera thingy.rbxl (53.1 KB)
This is the place file that works.

1 Like