She is a baby still and hopefully you JUST got her as she should technically be with her mommy and siblings until 12-14 weeks.
As a baby she needs you to be the sibling or mommy. Mommy cats do not swat, spray, etc their kittens. When a kitten misbehaves or is too rough, momma walks away. Baby doesn't like it and soon learns not to do whatever caused mama to leave. If baby is playing rough with your hands...you shouldn't be playing with her with your hands....use a wand toy. If baby is rough with your legs or feet, leave....baby will learn.