Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Reliable way to get EXACT camera position?

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.