How do I lock a camera in a certain spot for my title screen project? I want a certain view from this point that cannot be moved at all. Any scripts help! Thanks!
COMMUNITY QUESTION
How do I lock a camera in a certain spot?
1 answer
Hello, so basically you use CameraType for that, then set your CFrame. Here is an example:
--local script
local player = game.Players.LocalPlayer
local currentcam = player.CurrentCamera
currentcam.CameraType = "Scriptable"
currentcam.CFrame = CFrame.new(Vector3.new(0,0,0)) -- Place your desired position in the 3 zeros section.
Hope it helps!
2 comments
0
Don't use "CFrame.new(Vector3.new(0, 0, 0))". It's not how CFrame works. Instead, use "CFrame.new(0, 0, 0)".
0
It should be Enum.CameraType.Scriptable, the CameraType is not a String
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Set the CameraType to Scriptable then the CFrame to your desired position