>if someone uses fl Studio (pirated) for the Music of the game and publishes the game, is there any danger that he gets in Trouble.
Short story no
Long story yes
Generally speaking if you are a professional and intend to make a living off what you're doing you should buy your software. However it's very hard to get detected pirating unless you're sloppy or you run a company.
A good example of this is if you go to a job interview and your interviewer asks if he can see how you work. If he sees "UNLICENSED" at the top of the screen he's probably going to think you're not serious and not hire you. Similarly if you use pirated software and for instance release screenshots/livestreams and someone notices that can easily have ripple effects. I've seen occasionally someone outed for using pirated software. At all of the talks I've been to where piracy is brought up universally people generally state you should buy your own software because it really makes you look more professional and less sketchy.
However if you're dirt poor and don't wanna shell out thousands of dollars for 3dsmax I doubt anyone is going to really judge you for it. It's really only if you wanna graduate from "highschool student making shit for fun" to "do you want my business card?"
If you're afraid that someone's going to find out you pirated your software just based on the game itself. Unless the engine was proprietary or you do something stupid like don't pay the license to Unity and pirate the Professional version it's highly unlikely.