first in the rock cycle is the weathering and erosion.
weathering and erosion is when the weather breaks down the rock and next is deposition. deposition is when it continues to flow onto sedimentation. After that is compaction and cementation.
After the rocks are compacted, it turns into sedimentary rocks.
after the sedimentary rock, is the heat and pressure and that turns into metamorphic rock.
After metamorphic rock, it melts.
After the melting, it is the intrusive rock that uplifts and comes out as extrusive rock and the rock cycle restarts.