So, I'm trying to make a brick that changes color very slowly using Color3.fromRGB. In order to do this, I needed to add SurfaceGui's onto each side of the part, and then add frames into those Gui's. So, I need to GetChildren() more than once. I've asked something similar to this before, but I'm completely confused on how it works. Here's my code:
local part = script.Parent
local model = part:GetChildren()
while true do
for i,v in pairs(model:GetChildren()) do
if v.ClassName == "Frame" then
for b = 1,255,1 do
v.Color3 = Color3.fromRGB(255,i,255)
wait(0.1)
end
end
end
end
All help is appreciated!

1 comment
Pay close attention to your error messages.