Rotary encoders/ gyroscopes

I’m pretty new to electronics I’m working on a rotating toy not sure which to use measure the rotation. Either a rotary encoder or a gyroscope. I hope to get someone we can work together on the project