How would I put all of these properties into a table?
Help is much appreciated.
1 Like
if you’re gonna use Color3 then use the ones with Color3 on the end
What do you mean by that? What is “the ones”?
1 Like
Hmm. I’ve tried something when making a serialization module.
local PropertiesToGet = {
--names of all the properties, ex. "Position"
}
local PropertiesAndValues = {}
local Part = workspace.Part
for index, property in pairs(PropertiesToGet) do
if (Part[property]) then
table.insert(PropertiesAndValues, {[property] = Part[property]})
end
end
I don’t recommend this for LONG properties but it can still be used.
Result:
Part was replaced with Baseplate
Properties:
(Wish I could keep this a secret but people must have known about this already)
Sorry, I don’t feel awake.
Edit:
Remember this:
Change the table.insert()
method I used to your own.
I meant more of not typing the names manually, but okay this works.
1 Like