So, I found a building system and for some reason X rotates Z when Y is = 90. I have no idea how to change something to world space. any help is appreciated.
vid showing what is happening:
code:
local Cframe = CFrame.fromEulerAnglesXYZ(math.rad(Rot.X), math.rad(Rot.Y), math.rad(Rot.Z)) + Position