Hi, I’m trying to get the camera to have this angle and rotating around a focus point of part in this statue. Example of what I’m trying to achieve below.
This is my code.
while wait() do
CurrentCamera.CFrame = CFrame.new(Statue.CameraPart.Position) * CFrame.Angles(0, Angle, 0) * CFrame.new(0, 0, 0)
Angle = Angle + math.rad(1)
end
And this is the product that I am getting
It is rotating around it just fine, but I can’t get it to go backwards more, and tilt the way I want.
nicemike40
(nicemike40)
August 26, 2020, 7:15pm
#2
ItsNxthaniel:
CurrentCamera.CFrame = CFrame.new(Statue.CameraPart.Position) * CFrame.Angles(0, Angle, 0) * CFrame.new(0, 0, 0)
Change the X-component of the CFrame.Angles
to control tilt, and increase the Z-component of the second CFrame.new
to move the camera back.
Also read this for extra credit : Avoiding wait() and why
I did both of these and it did not achieve the position I wanted, it did not move at all.
This is the result of changing those.
CurrentCamera.CFrame = CFrame.new(Statue.CameraPart.Position) * CFrame.Angles(20, Angle, 0) * CFrame.new(0, 0, 50)
This was achieved by running
Player.CameraMaxZoomDistance = 75
Player.CameraMinZoomDistance = 75