Problem with Isometric Camera Unable to Rotate Around Humanoid Root Part

  1. What do you want to achieve? Keep it simple and clear!
    For the camera to rotate around the hrp, or humanoid root part.

  2. What is the issue? Include screenshots / videos if possible!
    I can’t figure out how to achieve this with my current code

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    yes, but all solutions i had tried had an issue with my code

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

--//Isometric Camera//-- 
--(note that CameraRotate can be added from to go right, or subtracted from to go left)
Camera.CFrame = CFrame.new(Vector3.new((Character.HumanoidRootPart.Position.X + CameraRotate) + zoom, Character.HumanoidRootPart.Position.Y + zoom, (Character.HumanoidRootPart.Position.Z + CameraRotate) + zoom), Character.HumanoidRootPart.Position)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

It would look something like this. (LOCAL SCRIPT)

local Duration = 3 -- How long before making a full circle
local Distance = 5 -- The distance in studs
local Iteration = 0 -- How many times the function has run

game:GetService("RunService").RenderStepped:Connect(function(DeltaTime)
	Iteration = (Iteration + DeltaTime / Duration) % 1 -- Ensures a smooth movement of the part, I can go in depth if needed but for the quickest response I would consult Youtube.
	
	local Angle = 2 * math.pi * Iteration -- Find the angle to make the camera look at the hrp
	
	Camera.CFrame = CFrame.Angles(0, Angle, 0) * CFrame.new(0, 0, Distance) + HumanoidRootPart.Position -- Makes the camera level with the humanoid root part with respect to the distance we decided
end)

Hope this helps!