Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Rotate a custom camera downwards?

Asked by
dirk2999 103
5 years ago

I have a camera thats getting set to the block, the block itsself is rotated but the camera doesnt rotate downward with the block. How do you rotate the camera downward?

local cam = workspace.CurrentCamera
local cartCameraBlock = workspace.Configuration.cartSelectorCam

wait(5)
for i = 1,0,-.05 do
    script.Parent.blackoutFrame.BackgroundTransparency = i
    wait()
end
cam.CameraType = Enum.CameraType.Watch
cam.CameraSubject = cartCameraBlock
for i = 0,1,.05 do
    script.Parent.blackoutFrame.BackgroundTransparency = i
    wait()
end

Basically the cartSelectorCam is above where I want the view to look at, and rotated about 45 degrees, I would like the camera to do the same.

Answer this question