Reference: How to get an angle from cursor position?
I want to do something similar to this:
local new_delta = Vector3.new(delta.x, 0, delta.z)
local unit_delta = new_delta.unit
local angle = math.atan2(unit_delta.z, unit_delta.x)
But the issue is, I want it to only find the x angle. I’ve tinkered with this for hours and hours at this point, with no real result.
Does anybody know what’s up??