for i = 1,5,1 do
for j, part in pairs(lightning.bolt1:GetDescendants()) do
if part.Name == "Part" and part:IsA("BasePart") then
part.Transparency = 0
elseif part:IsA("PointLight") then
part.Enabled = true
end
end
end
What I am looking to do is replace where it says “bolt1” with bolt + i, so that it goes from bolt1 to bolt5, however I am not sure how this would be concatenated. Maybe there is a better way of doing this?