Hitting

Has anyones toddler started hitting? Mine has but not out of anger he thinks it’s funny. I’ll grab his hand gently and say we don’t his or I’ll take it and rub it on where ever he hit me and say gentle hands but it isn’t helping, I don’t know if I just have to keep doing what I’m doing and be patient or what but he finds it so funny