below I have a script written out, but I have some questions. it works fine and exactly how I wanted to. I got .087 by doing some math with my mom, she understands it but Im fully confused how .087 is able to make it so that it perfectly rotates around the circle. The only reason I could see this working is because when i added the vector it doesn’t use world space and rather the object space? but nowhere in this script did i set it to object space. If someone could just explain why this works so I can add a few more touches to it, that would be great thanks.
edit: I was incorrect it does not actually rotate around the ball, or focus point
local camera = game.Workspace.CurrentCamera local leftButton = script.Parent.left local rightButton = script.Parent.right local LR = 1 print(game.Workspace.ball.Position) wait(5) camera.CameraType = Enum.CameraType.Scriptable camera.CFrame = (game.Workspace.ball.CFrame + Vector3.new(0,0,5)) leftButton.MouseButton1Click:Connect(function() print("clicked") camera.CFrame = CFrame.lookAt((camera.CFrame.Position + Vector3.new(-.087,0,0)), game.Workspace.ball.Position) end) rightButton.MouseButton1Click:Connect(function() print("clicked") camera.CFrame = CFrame.lookAt((camera.CFrame.Position + Vector3.new(.087,0,0)), game.Workspace.ball.Position) end)