Go to a club that plays your favourite kind of Dance Music, watch for the tracks that get people on the dancefloor. They are the tracks to analyse and imitate. Sometimes you will take a sample and you just can't make it work. Don't worry, you took a chance and failed. Next time you'll take a chance and succeed.
Some people are too scared to take chances.
You need to respect the laws of copyright. You might take a chance on using an uncleared sample on a record that will only ever sell a couple of thousand copies. You might get away with it, or you might not. It's up to you to consider what might happen if you get caught. One day, you'll want people who sample your records to pay you for the privilege.