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

[READ DESC] How to find the Orientation of the camera x,y,z?

Asked by 4 years ago

So I was wondeirng how to figure out the Orietnation of the camera or something similar to it

heres what i want

something similar to

local Camera = workspace.Camera

local Baseplate = workrspace.Baseplate

print(Baseplate.Orientation.X)
print(Baseplate.Orientation.Y)
print(Baseplate.Orientation.Z)

-- But you cant do that with camera ccan you

so i was wondering if there was a way

1
game.Workspace.CurrentCamera.CFrame:ToEulerAnglesXYZ() dadysherwin2 155 — 4y

1 answer

Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

you had a few typos in your script


local Camera = workspace.Camera local Baseplate = workspace.Baseplate print(Baseplate.Orientation.X) print(Baseplate.Orientation.Y) print(Baseplate.Orientation.Z) -- Your Question: But you cant do that with camera ccan you -- Answer: There is not an Orientation for a Camera. Maybe ‘game.workspace.currentcamera.cframe:ToEulerAnglesXYZ()’ would work.
Ad

Answer this question