So im working on a thing where it welds a brick to the humanoid root part, and the brick rotating. But the rotation script for some reason freezes the player in mid air.

I did small bit of testing and the culprit is the rotation script, but i dont know how to make a different one

while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.06,0)
wait (0.02)
end

Not sure if this can be fixed but im not very good with scripting