Complex sentence: If they see a stranger they might scare or make a noise, but they will run to their owner and play with them.
Split into simpler sentences: If they see a stranger they might scare or make a noise. But they will run to their owner and play with them.