To leave the island in Kingdom Hearts, advance the early story until the secret place becomes accessible. Enter the secret place, approach the mysterious door, and trigger the cutscene. Afterward, head toward Riku’s island and then return to the door to continue the sequence.