Hi! I’m making a building system that doesn’t use R to Rotate, but it detects your camera’s direction and it places the block in that orientation (for example, your camera direction is north, so it will place the block facing north.) I also want to detect when it’s changed so I can make it so that it places the block in the changed direction (so if your camera direction was north, and you made it face east, the block would face east.) How can I achieve this? I’ve already tried looking it up in the Developer Hub, but I couldn’t find anything. If you’re confused about anything, feel free to ask.
in a localscript use game.workspace.CurrentCamera
to get the camera
now you can read properties like the orientation of te camera and adjust the block where needed
maybe even getpropertychanged?
You can snap to axes like this:
As for detecting changes, don’t! Just run every frame, the camera will change so often that you might as well.