The camera doesnt follow mouse, as you can see in your own screens even tho the mouse moved the camera is still in the same position. To get camera position you just do workspace.CurrentCamera.CFrame.Position.
But I think what you mean is like if there was a bounding box to the screen, and it followed the mouse movement, how would you get that box’s position.
If so, to get the centre of the box you need to do
Vector2.new(Mouse.x, Mouse.y)
If you want to get the edges of the box, just calculate them from this vector2
Why? If he wants the camera to follow mouse he can either hold RMB or enable shiftlock. without those, if mouse moves freely and camera still follows mouse, it will be incredibly uncomfortable for the player.
However if thats what he wants I can provide solution for that too
The blue box can not have a vector3 position, as it is not a 3D object, it is a 2D plane. And I thoroughly explained how to get the vector2 position of the blue box
I know it’s hard to understand but listen again, there’s BLUE screen and there’s WHITE screen. There’s a camera that has position, it shows up the WHITE screen. I want to know camera position that shows BLUE screen.
When the player moves his mouse you want the camera to move to that position so the mouse looks like it’s stuck in the middle? That would move the camera away from his character tho…
No, I want to keep normal camera and get camera position that would have this mouse in the middle.
So we have 2 screens.
1 screen having it’s mouse anywhere
2 screen having it’s mouse in the middle (I want to get position of the camera that would have that screen)