the script that rotates/pans the camera:
local lookat = nil
local mouse = game.Players.LocalPlayer:GetMouse()
local ts = game:GetService("TweenService")
while true do
lookat = mouse.Hit.Position
local tween = ts:Create(workspace.CameraCenter, TweenInfo.new(0.99, Enum.EasingStyle.Quint), {["CFrame"] = CFrame.new(workspace.CameraCenter.Position, lookat)})
tween:Play()
wait(0.1)
end
The main script:
local camera = workspace.CurrentCamera
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
while true do
workspace.CurrentCamera.CFrame = workspace.CameraCenter.CFrame
wait()
end
help pls
