How do I make the camera rotate from a pivot?

I wanna achieve something like this:


Example got from KAT.

And I have this:

image

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 = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://"

local Camera = Instance.new("Camera")
ViewportFrame.CurrentCamera = Camera
Camera.Parent = ViewportFrame

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

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

Anytime man :D. char limit char limit