Universal Script πŸ“Œ
335 Views
259 Executions

another global function tes

Universal Script πŸ“Œ
ladynoire
ladynoire10K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

some random sh⁠itty cunt advertised here anyways works without using _G. or getgenv

View Raw
-- 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)



Comments

3
Log in to join the conversation. Login
globalexploitor's profile picture
globalexploitor1 year ago

oh

1
globalexploitor's profile picture
globalexploitor1 year ago

do u have discord server?

1
ladynoire's profile picture
ladynoireUploader1 year ago

@globalexploitor sure but it isn't really exploit focused

1