hi all ! I have an if statement checking to see if an attribute is the same as a part in a table, and it lines up, but it never fires the if statement.
local signalCode = {
Red = "1",
Yellow = "2",
Green = "3"
}
for i, signal in pairs(Signals) do
for name, code in pairs(signalCode) do
print(code, signal:GetAttribute("Aspect"))
if signal:GetAttribute("Aspect") == code then
print("hi") -- never prints
signalModule.set[name](signal)
end
end
end
can anyone help me see if I’ve missed anything ? thanks !