so i’m trying to make it so V’s children become transparent as seen by this loop, but how would i localize the children?
for i, v in pairs(workspace:GetChildren()) do
if v.Name == Player.Name then
v:GetChildren() do
v.Transparency = 1
wait(duration)
v.Tranparency = 0
end
end
end
end
So is pairs and next. ipairs is idiomatically proper for iterating through contiguous arrays and it makes it more clear that what you’re iterating through is an array not a dictionary where the key matters. With ipairs, your keys are known to be incremental numerical indices starting from 1.