I want to rotate an object towards something but I have little knowledge on whatever math is required to do it in CFrame. There is a simple way which is however said by the wiki to be deprecated where you use CFrame(object1, object2) but now its recommended to use CFrame.fromMatrix. However, I don't know how to utilize CFrame.fromMatrix correctly.
I presume that LookVector will be used or a unit vector.
--example variables (aka probably use this in ur answer to help me)
local object1 = workspace.Object1
local object2 = workspace.Object2
If you can answer, please explain any math behind it if you can! Should be easy to answer.

1 comment
I actually made a module that contains this function. Check it out here: https://devforum.roblox.com/t/libraries-a-library-extension-module/409035