[RESOLVED] require( “folder.filename” ) still looks in main directory

Hi and thank you for any replies.  I’m trying to organize my scripts into a
folder named “scripts” but am getting the error message: module ‘filename’ not
found:resource <filename.lua> doesn not exist in archive
.  The code runs perfectly if I leave the script
file in the main directory despite the fact that I have specified a sub folder.  Here is an example:

local perspective = require( "scripts.perspective.lua" )

Leave off the .lua

local perspective = require( “scripts.perspective” )

this will find scripts/perspective.lua  where scripts is a folder in the same folder with your main.lua

Thanks, that worked great.  

Leave off the .lua

local perspective = require( “scripts.perspective” )

this will find scripts/perspective.lua  where scripts is a folder in the same folder with your main.lua

Thanks, that worked great.