Chapter 5
Q1. What is the purpose of structuring your experience to be modular?
A: Keeping systems in separate modules is great for organization and lets them run independently of each other.
Q2. What service is used for storing and retrieving player data?
A: DataStoreService
.
Q3. What is the purpose of including a recursiveCopy
function in the Data
module?
A: Tables are assigned to a variable by a shared reference instead of the structure being copied for performance. We want a unique table at several points throughout this system.
Q4. Why do we wrap asynchronous methods in a pcall()
function?
A: These methods can produce errors; we need to make sure these errors don’t crash our program and retry when necessary.
Q5. What is the importance of including the ProcessReceipt
event function in your game when selling developer products?
A: Roblox uses this to verify sales of products; you will not receive your earnings without it.
Q6. Why might...