#Optimization
36 messages · Page 1 of 1 (latest)
did you read my message ?
yes
for i,v in pairs is a better optimization
since you get the children
of the parent
and you can set the material through here not wasting a lot of time
by just like
I guess I understood
v.Material = Enum.Material.blabla
** You are now Level 3! **
for i,v in pairs(script.Parent.Parent.Parent.Border:GetChildren()) do
v.Material = Enum.Material.CorrodedMetal
v.Color = Color3.fromRGB(163, 162, 165)
end
@dusk bear this is how it works
in pairs = in like group
i = number (amount of the something in the model)
v = the existing something in there
if you do print(v) it will print out the names of the stuff in the model
ohhhh ok
if you do print(i) it will print the amount of there
np