Here is an example of what I am trying to do:

Module Script:

local Module  = {}


function findMatchInServerStorage(item)
	for i,v in pairs(game.ServerStorage:GetChildren()) do
		if v.Name == item then
			return true
		end
	end
end

function Module.ExampleFunction(exampleTable)
	for i,v in pairs(exampleTable) do
		if findMatchInServerStorage(v) then
			local copy = game.ServerStorage.v:Clone()
			copy.Parent = game.Workspace
		end
	end
end



return Module

1 comment

0

test it with print()