How to animate camera

I have a task, I need to animate the camera, but I don’t have a MoonAnimator.
in the main menu, the camera needs to spin but i don’t know how it do.
I tried using Tween Position but it didn’t work out.

sorry, my english is bad.

duplicate of How do I animate the camera and tool in Roblox Studio's animator
sorry if i sound passive-agressive idk how to tone my writing

game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
while true do
task.wait()
game.Workspace.CurrentCamera.CFrame = CFrame(Vector3.new(0, 0, 0)*CFrame.Angles(0, game.Workspace.CurrentCamera+1, 0)) -- You can change the position (Vector3) to your desired position.
end

Try this, but I made this on mobile phone.

Change this to task.wait() as it’s more efficient and without a delay unlike the normal wait() function if you didn’t know.

1 Like