So, I want to take pictures of my map. I want the camera to be pointed where the part is pointed and not the normal player camera but I don’t know how?
Any help?
The part is where I want the camera to face.
Here is an example:
So, I want to take pictures of my map. I want the camera to be pointed where the part is pointed and not the normal player camera but I don’t know how?
Any help?
The part is where I want the camera to face.
Here is an example:
Put this in LocalScript:
local camPart = path.to.CameraPart
local Camera = workspace.CurrentCamera
Camera.CFrame = camPart.CFrame
does it need to be in workspace or any place particular?
In a local script:
game:GetService("ContentProvider"):PreloadAsync({workspace.Camera}) -- Make sure the camera is loaded
local camera = workspace.CurrentCamera
local camPart = workspace.Part -- Or whatever the part is
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = camPart.CFrame
There is an easier way, go to Workspace → Camera →
This is for only in studio, the easiest way. ^^
Doesnt seem to work as I just go to my normal player cam when i load in
That’s because that Camera is for what you see on Studio, not on client. Use workspace.CurrentCamera
for this.
Is the script in StarterPlayerScripts
or StarterPack
?