Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix identity
Browse files Browse the repository at this point in the history
  • Loading branch information
plusgiant5 committed Mar 12, 2023
1 parent 6752af4 commit 25bc66a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TaaprWare V3/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void refresh_state() {
// This navigates to L->userdata aka extra space
// Then navigates to userdata->identity
// Userdata/extra space is every Roblox-related attribute to lua states
*reinterpret_cast<int*>(*reinterpret_cast<uintptr_t*>(state + 0x48) + 0x1C) = RAISE_IDENTITY;
*reinterpret_cast<int*>(*reinterpret_cast<uintptr_t*>(state + 0x48) + 0x18) = RAISE_IDENTITY;
printf("Raised identity to %d\n", RAISE_IDENTITY);
#endif
Sleep(100);
Expand All @@ -69,7 +69,7 @@ void execute(std::string source) {
options.coverageLevel = 0;
options.debugLevel = 1;
options.optimizationLevel = 1;
std::string compiled = Luau::compile(source, options, {}, &encoder);
std::string compiled = Luau::compile("spawn(function() " + source + " end)", options, {}, &encoder);
bool success = decompressed_luavm_load(state, compiled);
if (success) {
printf("Running function\n");
Expand Down

0 comments on commit 25bc66a

Please sign in to comment.