Paint a model using Paint bucket tool?

I have the Roblox paint bucket tool in my game and I want it to detect if the target part is in a model and will paint the children in that model. How should I do this?

( Kinda like Work at a Pizza Place when you paint your house wall.