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...
As kingdom5 said, you can't really do this in an easy way, like no method to instantly do so. Although, you could do something like:
game.Workspace.Part.Transparency game.Workspace.Part.Name ...
My point being you would need to access each and every property.