How to lock only the roll rotation when not using *Use pawn control rotation*

Would you happen to have a screenshot of your recreation so I can see what you did with all the math in between add local rotation and the old set world rotation? if you that makes sense.