function changeColors(newStatus)
task.wait(0.05)
local color
if newStatus == 0 then
color = blue
elseif newStatus == 2 then
color = red
else
setMiddle()
return
end
for key, value in color:GetChildren() do
print(value.Name)
if value:IsA("BasePart") then
value.Transparency = 0
value.CanCollide = true
end
end
end
something like this? and no this doesn’t work, it is inside of a local script.
What even is a legacy script
I usually add a ChildAdded event to fix this issue, also if you have StreamingEnabled then make sure your parts are in a model with the streaming mode set to persistent so that they don’t stream out.