#how do i check in a folder if any value in that folder has the value of a set local variable?

5 messages · Page 1 of 1 (latest)

undone blade
#

So this but working:


local val = 0

for i, v in folder:GetChildren() do
  if any of v.Value == val then
    --do stuff
  end
end```
tepid robin
#

what?

#

its basically like that

#

but you need to check if its the object you need

#

just add to the condition
v:IsA("IntValue")