speedstarkiwi / Teleport-Handler

Handles the teleportation between injection and roblox games. Prevents your DLL from breaking.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Teleport-Handler

When you teleport, roblox fires an event called OnTeleportEvent, which restarts lua state.

For example, you are playing and the ls is 0x50, but suddenly, the game teleports you.

Now, the ls is 0x90, but your old pointer still thinks it's 0x50, therefore crashes.

This code was meant to keep the handler in check so it won't break during teleportation.

Usage

lua_setfield((lua_State*)rL, LUA_GLOBALSINDEX, "checked_on_teleport");
//i dont know what your registeration looks like, but this is mine
// you want to REGISTER the function into your lua environment

You must make an auto script launcher, and execute the script that is in the launch.lua!

In Short Words

Pretend your playing an obby, when you complete it, there will be more game suggestions, so you teleport and it takes you to a new game.

Now, the DLL broke. It completly died. When you add this, it won't break easily!

About

Handles the teleportation between injection and roblox games. Prevents your DLL from breaking.


Languages

Language:Lua 96.5%Language:C++ 3.5%