Attractions are designed with natural forces in mind including earthquakes. Typically the attraction will just sway like any building designed to handle earthquakes would. It would all depend on the magnitude of the earthquake, the location of the roller coaster, and exactly how well the roller coaster was built.