Does anyone know anything about copyright legalities?

So I know as long as you're not selling something it probably doesn't matter for like using songs for YouTube and stuff. But if you were to produce toys based on things how much does that matter? I searched online and couldn't find anything concrete about what I'm allowed to do. And it seems fine but not 100% sure.
Does anyone know anything about copyright legalities?
Post Opinion