Script I am using: (serverscript)
local tau = 22.5*math.pi
local t = 0
local cam = script.Parent
local radius = 100
print(1)
while script.Parent.Parent.Visible == true do
t += tau / 100
cam.CFrame = CFrame.lookAt(Vector3.new(math.sin(t)*radius, 0, math.cos(t)*radius), Vector3.new())
wait(0.15)
end
What happens:
My hierarchy:
Does anyone know what I am doing?
Source of where I found the script: Rotate a camera around a part in viewport frame like robinsons