Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by
avozzo 22
5 years ago

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; }

Ad

Answer this question