So I’m trying to require an object that I don’t know the path (as it’s a library) but the output just drops an error saying “invalid require arguments”

The print actually throws a valid instance, but the require thing doesn’t.
So I’m trying to require an object that I don’t know the path (as it’s a library) but the output just drops an error saying “invalid require arguments”

The print actually throws a valid instance, but the require thing doesn’t.
Are you certain it is an object? Try doing print(typeof(memoryObject)) to see if it is a string or Instance and print(memoryObject.ClassName) to see if it is a ModuleScript.
It’s a module, but Roblox it’s highlighting it.
If the script works but it’s highlighted red, then you can ignore the “error” since it could just be the Luau type checking having a hard time understanding what’s happening.
Just tested, the problem was another line, but I the line it’s still red, I think the inspector is having problems to understand what’s happening