Instances can be saved inside datastores through a process called serialization basically you have to convert every property and value of the instance(and its children) into an array, and save the array or the string(using HttpService:JSONEncode(array)
) to the datastore.
To deserialize the data you have to reverse the algorithm serializing it.