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

How can I get where the camera is facing?

For example, if I move my player's camera to look at the sky how can I get that lookVector? I want to make a fly script but I want it to work based on the position of where the player is facing with his or her camera.

NOTE: I'm not asking you to make me the script I simply want to know to find the lookVector of where the player is facing.

Thanks!

CURRENT SCRIPT:

local part = Instance.new("Part", game.Workspace.CurrentCamera)
part.Anchored = true

wait(1)
local Math = game.Workspace.CurrentCamera.CFrame + game.Workspace.CurrentCamera.CFrame.lookVector * 2
print(game.Workspace.CurrentCamera.CFrame.lookVector)
part.CFrame = Math

1 answer

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