How to make a Scripted Camera look at a certain object in workspace?

Alright so, basically I’m making a football game, and I have a select team thing and I want the background to be the game from another view. However, I don’t really know how to make the camera part look at the ball/object. if anyone knows anything, please feel free to help!

2 Likes

Camera.CFrame = CFrame.new(CameraPos, Ball.Pos)

1 Like

CFrame.lookAt creates a CFrame set to a specific location, looking at a specific point. From a LocalScript in the player’s starter scripts use…

workspace.Camera.CFrame = CFrame.lookAt(workspace.Camera.CFrame.Position, ball.Position)
2 Likes