Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can i save a material of a part in datastore or in a table?

I never tried this, i just wanna make sure if im correct or not

    table.insert(because, {

["ParentName"] = ob.Name;

["Transparency"] = ob.Transparency;

["Color"] = ob.BrickColor.Name;

["Material"] = ob.Material.Name;

})
This isn't the full script, just showing what i need.

1 answer

Yes, that should be right. Although i dont think the Material has a Name property, everything should work.

This is how i would do it: local Part = Instance.new("Part"); Part.Parent = workspace; Part.Transparency = 0.5; Part.Size = Vector3.new(10, 10, 3);

local PartInfo = { Parent = Part.Parent.Name; Transparency = Part.Transparency; Size = Part.Size; }

This discussion is preserved as it was. New answers, comments, and votes are closed.