function onClick(hit)
local seeds = script.Parent.Parent.Seeds:GetChildren()
for i = 1,#seeds do
print(i)
for a = 1,#seeds[i].Seed.Value == false do
if a == 25 then -- fix this problem
if hit.Name == Owner.Value then
script.Parent.BrickColor = BrickColor.new("Brown")
script.Parent.Parent.GrowthTest.Disabled = false
script.Disabled = true
end
end
end
end
"Seed.Value" Comes from script.Parent.Parent.Seeds.Seed.Value
what im trying to do is get the value from the bool value inside of Seeds.
basically i have 25 blocks. and inside each block there is a bool value now what im trying to do is count up the amount of blocks i have and then check if all 25 blocks have the bool value set to false the error im getting is "Field.Field.Soil.Sc:22: attempt to get length of field 'Value' (a boolean value)"

2 comments
Thank you so much :)
No problem.