Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

getfenv disables LUAU optimizations why bruh? and what do i use bruh

Asked by 4 years ago

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 about setfenv
0
wtf bro why doesn't it work bro people too new to understand ur question bro royaltoe 5144 — 4y

Answer this question