Here's how it works:
* Within dialogue:
* The full stop goes inside the closing quotation marks if it's part of the spoken sentence:
* "I'm going to the store," she said.
* Outside dialogue:
* The full stop goes outside the closing quotation marks if it's part of the narrative:
* He asked, "What are you doing?"
Let me know if you have any other questions about dialogue punctuation!