What I mean is, is there a way to instead of having a script in a lava brick and copying it to other places I might want can I instead have one single script where it detects if it's touched.
like this
brick -script brick -script brick -script brick -script
is that a way to reduce this like:
brick brick brick brick Script(PARENT IS WORKSPACE)

4 comments
ahh okay, but im a little confused what the 'next ' is?
It basically just iterates through everything inside of the table, and the :GetChildren() method creates a table of all of the children of a model.
why not just do pairs? isnt it the same? dont get me wrong, i like the answer just questioning the difference between these two commands.
pairs actually uses next, so it's more efficient to use next.