Is there a way to get a list of propeties in a instance because i wan't to make a module that can save - load instances using data store.
Idea:
local module = {}
local instanceStorage = game:GetService("DataStoreService"):GetDataStore(game.PlaceId .. "INSTANCE") --Pfft
function saveInstance(instance, name)
local saveData = {}
for i,v in pairs(--[[Properties of Instances]]) --Problem
table.insert(saveData, v) --Insert value
end
instanceStorage:SetAsync(name, saveData) --Save!
end
function loadInstance(name)
--no idea left
end
return module
This is the bad example, but OK...

5 comments
Currently there is not a way to do this.
I believe there are several modules in existence which do this (by manually listing the salient properties)
I think it is erroring at line 2 and also this system is very poopy
And has poor and sloppy coding. No offense
ik I never meant this as the actual code