the condition triggers whenever one slot set true, ignoring the other 4 ones. How do i make it read all the slots and not the first one?
local full = workspace.model.Full -- a boolValue that will trigger when all values are true
local rep = workspace.model.Area -- it's a model with 5 parts, each part have a boolValue.
for _,v in pairs(rep:GetChildren()) do
if v.Slot.Value == true then
full.Value = true
break
end
end
if full.Value == true then
--stuff
end
i know that i could do like:
if slot1 == true and slot2 == true and slot3 == true and slot4 == true and slot5 == true then
--stuff
end
but the number of parts will not be the same.And it's a dirty way.. Thank you!

2 comments
Thank you, you explanation helped me a lot! thank you again !
No problem :) glad it helped