How can I convert Quaternion to CFrame?

How would I convert a Quaternion to a CFrame?

local quat = {
   x = 0.5,
   y = 0.5,
   z = 0.5,
   w = 0.5
}

Alright got it working with this module!

Used this method

Quaternion:ToCFrame()

Roblox’s CFrame library also has a constructor that takes a position and a quaternion. I think this will work.

local cf: CFrame = CFrame.new(0, 0, 0, quat.x, quat.y, quat.z, quat.w)
1 Like

Oh dang didnt even need that entire module, thanks man!