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

Reliable way to get EXACT camera position?

Asked by 10 years ago

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.

1 answer

Log in to vote
0
Answered by
l0cky2013 135
10 years ago

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
Ad

Answer this question