Changing Camera View

How can I change the users Camera to a certain position?

(I know this is probably easy, but I don’t know how to do it.)

1 Like

by using cframes. if you need info on cframes, heres a site for info:
https://developer.roblox.com/en-us/articles/Understanding-CFrame

local cam = workspace.CurrentCamera
cam.CFrame = CFrame.new(game.Workspace.Part) * CFrame.new(0,0,30)

Replace game.Workspace.Part with your part that you want your camera to focus on. You can edit the 30 to how far away you want the camera to be in studs.

(Edit: The script is a LocalScript named “CameraScript” inside StarterPlayerScripts. Naming it “CameraScript” is important.)

1 Like