Hello, I am trying to create a main menu for my game. I am setting the workspace’s CurrentCamera to the CFrame of a part and while the CurrentCamera attains the same position as the part, the orientation is not attained.
This is the only line of code that sets the CFrame. Camera is the CurrentCamera and CameraParts[i] is the part.
Hm. I think I know your problem already. It has to do with the way you’re indexing the table. You might be inserting the items using :GetChildren(), but that function returns a dictionary, with instances as the keys. Try looping through the camera parts, and using table.insert() to insert the keys, which will insert using numerical indexes instead.
Also make sure you’re setting Camera.CameraType to Enum.CameraType.Scriptable.