Move Camera around an object

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I would like that the player camera keeps on rotating around a part and never stops. The player should’t be able to move the camera.

  2. What is the issue? Include screenshots / videos if possible!
    Idk where to start on coding it.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried searching around, but found nothing i can understand

For this you will need to change the player’s camera to be scriptable. You can manually animate the CFrame of the camera to rotate around the object. A segment like this should achieve what you want when provided with degrees and the table:

local at = table.CFrame * CFrame.Angles(0, math.rad(degrees), 0) * CFrame.new(0, 5, -5)
local cframe = CFrame.lookAt(at, table.CFrame)
camera.CFrame = cframe
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.