How do I make the camera rotate from a pivot?

I wanna achieve something like this:

Example got from KAT.

And I have this:


I basically want a copy from what that is basically, and for that I need to know how to rotate the camera around the character, but I don’t know how to do that.

This might help you

1 Like

Yep! Thanks, took a while but I got it to work, just need to set it up so it only moves when I hold on the frame, but that should be easy to do.

This is my testing code:

local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local ViewportFrame = script.Parent
local Dummy = ViewportFrame.Dummy
local HumanoidRootPart = Dummy.HumanoidRootPart

local Animator = Dummy.Humanoid.Animator
local Animation ="Animation")
Animation.AnimationId = "rbxassetid://"

local Camera ="Camera")
ViewportFrame.CurrentCamera = Camera
Camera.Parent = ViewportFrame

local Angle = 0
local LastMousePos = UserInputService:GetMouseLocation()

	local currentMousePos = UserInputService:GetMouseLocation()
	Angle -= currentMousePos.X - LastMousePos.X
	LastMousePos = currentMousePos
	local coordinate = HumanoidRootPart.CFrame * CFrame.Angles(
		0, math.rad(Angle), 0
	) *, 0, 7.5)
	Camera.CFrame = CFrame.lookAt(
		coordinate.Position, HumanoidRootPart.Position

Anytime man :D. char limit char limit