so bro since getfenv disables some luau optimizations im wondering whats a way to replace it
so like im using it to inject variables from a module script into the requiring script like
local import = require(_M)
import "string.join"; -- the module script injects into getfenv(2), aka the calling environment
print(join("bruh", ".")) -- b.r.u.h
it injects a variable into the environment but since roblox super dum dum have, u simply cant use getfenv without losing optimizations
- why in the hell does getfenv disable them in the first place WHY BRO
- out of all the functions there are it had to be getfenv LIKE ANY FUNCTIONS BRO. why
getfenv. nobody cares aboutsetfenv

1 comment
wtf bro why doesn't it work bro people too new to understand ur question bro