How to require another lua script?

I have a lib file I made for saving/loading data from a file but I cannot get it to include right from my main script. It just returns the object is nil.

local loadsave = require "resources/on-duty/loadsave"