I have tried this code:
print(workspace.CurrentCamera.CoordinateFrame.p);
The problem is that it does not capture the exact camera position and I am looking at odd angles.
Why are you trying to get the Position
of the Camera
? Why not get the CoordinateFrame
or the CFrame
of the camera?
Getting the Camera's
CoordinateFrame
print(Workspace.CurrentCamera.CoordinateFrame)
Usage
local part=Instance.new("Part", Workspace) part.Anchored=true part.CFrame=Workspace.CurrentCamera.CoordinateFrame