Forum > General >

Would this function (settop) work?

Luau

Luau

Posts: 113

Threads: 24

Joined: May, 2022

Reputation: -33

Posted

   void settop(DWORD RState, int idx) const//using 2 arguments because y not
    {
        if (idx >= 0) {//if its greater then or equal to
            while (*(TValue**)(RState + L_TOP) < *(TValue**)(RState + L_BASE) + idx)//add
                r_setnilvalue((*(TValue**)(RState + L_TOP))++);//yep you need this
            *(TValue**)(RState + L_TOP) = *(TValue**)(RState + L_BASE) + idx;
        }
        else
            *(TValue**)(RState + L_TOP) += idx + 1;
    }

By the way this isn't mine, I found it from a Github Repo. Would this work with the index and everything?

  • 0

Added

@_realnickk Yeah just noticed, they replaced L (Lua state) with the Roblox State.

  • 0

Added

@_realnickk Excuse me for asking, is that Roblox/Luau source or from the Lua Source Files?

  • 0

Luau

Posts: 126

Threads: 21

Joined: Mar, 2022

Reputation: -2

Replied

noobhaxx is the best exploit ever made.

  • 0

exploits i use: kiwi x

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )