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.
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.
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
This really solve all my problems, thank you very much!