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

Why camera CFrame doesn't change?

I change the camera type to scriptable and write this piece of code(server script):

local camera = workspace.CurrentCamera

camera.CFrame = cameraPositon.CFrame

but it won't work, what i'm doing wrong.

1 answer

✓ Accepted answer

First and foremost, you cannot change a client's camera from the server. All of this has to be done via LocalScript.

Secondly, your camera is still in Roblox's "custom" mode, which is just the default Roblox camera. In order to change it, you must set the camera type. Its a property of the camera so its fairly easy to change. All you need is: workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable. Without this, you will not be able to manually change the CFrame of the camera.

I believe that's all you really need. If something else comes up shoot me a DM on Discord, @artblart#3386 and I'll be happy to help.

1 comment

0

This really solve all my problems, thank you very much!

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