Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get the camera to align with the mouse?

Asked by 7 years ago

So basically, when a player is zoomed in, the mouse is in the middle of screen including the top bar. However, the camera is actually in the middle of the screen not including the top bar so their sync is off. So I'm using a script to manipulate the camera to face a part with CFrame.new(cam.Position,part.Position) and due to what I described above, the camera and the mouse is not aligned. Is there a way to fix this?

Answer this question