I am apparently a beginner with the table functions and I want to know if there is a method to get all the values of a table and change their properties. This is the script:
tablepart = {} -- my table
function parts()
local parts = script.Parent:GetChildren() -- creates a table with the children of the model
for i = 1, #parts do
if parts[i]:IsA('BasePart') then
table.insert(tablepart, parts[i]) -- create a new table with the children of the model that are parts
end
end
end
wait(7.5)
parts() -- call the function to test it
I know I can just insert the script below after the second 'end' but it would only change the transparency of the parts one by one...
for i = 1, #tablepart do
repeat
wait(1)
tablepart[i].Transparency = tablepart[i].Transparency + 0.1
until
tablepart[i].Transparency == 0.5
end
Thanks in advance!

1 comment
Your script does not work because a For loop runs the first time for the first number, then a second time for a second number, etc. That means, your script takes the first part, changes its Transparency until it's 0.5, and just then changes to the next part.