I tried rotating the model instead but that didn't work
while true do wait() script.Parent.ViewportFrame.DontChangeThisName:SetPrimaryPartCFrame(script.Parent.ViewportFrame.DontChangeThisName:GetPrimaryPartCFrame() * CFrame.fromEulerAnglesXYZ(0, 0.5, 0)) end
Any help?
local target = workspace.Part local camera = workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable camera.CameraSubject = target local angle = 0 while wait() do camera.CoordinateFrame = CFrame.new(target.Position) --Start at the position of the part * CFrame.Angles(0, angle, 0) --Rotate by the angle * CFrame.new(0, 0, 5) --Move the camera backwards 5 units angle = angle + math.rad(1) end
This is where I got it from https://developer.roblox.com/articles/Camera-manipulation