Okay since i finally found out how to let MainModule work i have a problem with inserting 1 script in every model that is in a folder here are a few pictures (because im bad in explaining)
GetChildren() returns an array of all children of a specified instance, sorted by the order in which their Parent property was set for example even if an instance has one child, you cannot do :
Something.Parent = -- one specific something else, not a table
-- you can also do this (a generic loop)
for _, part in ipairs(folder:GetChildren()) do
part.Parent = -- some other new instance
end
Also one more thing I noticed about your code is that you are constantly setting MLSelling 's Parent to multiple instances in a short time, that is without any waits or delay, so it’ll happen too fast and you’ll only notice it’s parent to be the instance you attempted to Parent last, that is PLights.M8 (remember not a table).
Also your module is a script, if you want a module then run it in a Module Script