Hello there! I want to make a save system with data store. But I cant store instances. Instances have a lot of properties such as name,color,size,position,value, cast shadow and more. And to save all of them i need a lot of space in code. So is it possible to change property with its name?
local myPart = workspace.SomePart
local targetProperty = "Color" -- property stored as a string and case sensitive
local targetValue = Color3.fromRGB(255,255,255) -- value must of the proper type
myPart[targetProperty] = targetValue