Waiting until BodyGyro stops rotating

Self-explanatory

i tried
repeat wait() until CFrame == BodyGyro.CFrame
but it doesnt work, any solution for this??

BodyGyro is deprecated and should not be used. Use AlignOrientation instead