Complex sentence: Xander took revenge for these actions by making him dance at gunpoint, nearly naked, while singing which causes him to have a heart attack.
Split into simpler sentences: Xander took revenge for these actions by making him dance at gunpoint, nearly naked, while singing. This causes him to have a heart attack.