Modules not indexed?

Howdy,

I am trying to make a tower defense game… but … what does this mean

Can you show me the code in the module?

local Handler = {}

Handler.Begin = function(Selected: string)
	local Spawner = require(script.Parent.Parent.Modules.Entity)
	if Selected == "Classic" then
		for _, round in ipairs(script.Classic) do
			print(round.Message)

			for _, enemy in ipairs(round.Enemies) do
				local entityName = enemy.Name
				local quantity = enemy.Quantity
				local cooldown = enemy.Cooldown
				Spawner.Spawn(entityName, quantity, cooldown, 0, 0)
			end

			wait(round.Time_Interval)
		end
	end
end

local Handler = {}

Handler.Begin = function(Selected: string)
	local Spawner = require(script.Parent.Parent.Modules.Entity)
	if Selected == "Classic" then
		for _, round in ipairs(script.Classic) do
			print(round.Message)

			for _, enemy in ipairs(round.Enemies) do
				local entityName = enemy.Name
				local quantity = enemy.Quantity
				local cooldown = enemy.Cooldown
				Spawner.Spawn(entityName, quantity, cooldown, 0, 0)
			end

			wait(round.Time_Interval)
		end
	end
end
return Handler

try this.

awesome, fixed … can you tell me what the issue was so I can avoid it in the future?

You have to return the module in order for them to be required. Just don’t delete the return at the bottom of it. That simple.

Oh my … I didnt even see it was deleted. Thanks