Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can someone help me with Camera Rotation Tilt?

So I have a script that rotates around a part so that you can see the different sides of the part while it's rotating. Except the camera rotates around it but it is pointed straight forwards. I was wondering if there was a way to change it so the camera rotates around the object but the camera is pointed down a bit towards the object. Here is my script.

local target = workspace.Part86
local cam = workspace.CurrentCamera

cam.CameraSubject = target
cam.CameraType = "Scriptable"

local angle = 0
local speed = 50

while true do
	angle=angle+(game:GetService("RunService").RenderStepped:wait()*speed)
	cam.CFrame = target.CFrame * CFrame.Angles(300,math.rad(angle),0) * CFrame.new(0,0,50)
end

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.