Eg. if a script called “Foo” is calling a module script function, I want to somehow retrieve “Foo” (or just the “Foo” script instance).
Example:
-- "Bar" module script
local mod = {}
function mod.hello()
print("Script '" .. (?) .. "' says hello!")
end
return mod
-- "Foo" script
local bar = require(Bar)
bar.hello()
-- Output: Script 'Foo' says hello!