-- lazy way to make this function actually global lmao (works on every executor i think) -- synapse, krnl, delta, fluxus, even the weird mobile ones local env = getgenv() or getrenv() or _G -- whatever works env.globalfunctiontest = function(msg) print(msg) end -- just in case some scripts have their own env if getfenv and setfenv then local current = getfenv() if current ~= env and current.globalfunctiontest == nil then current.globalfunctiontest = env.globalfunctiontest end end -- force it into real _G too so nothing can hide it rawset(_G, "globalfunctiontest", env.globalfunctiontest)