Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "RobloxLua.h"
- BOOL contains(string Text, string TextToFind)
- {
- if (Text.find(TextToFind))
- {
- cout << "Found Text Inside Of String!" << endl;
- return true;
- }
- else
- {
- return false;
- }
- }
- int main()
- {
- #define luaState rLuaState
- BaseFunctions BaseFucns;
- cout << "Scanning LuaState, Thanks xGladuis! (will be making our own soon).." << endl;
- LUA_STATE_SCAN();
- cout << "Scanned LuaState, You May Now Use Lyonx!" << endl;
- for (;;)
- {
- if (GetAsyncKeyState(VK_F5))
- {
- getfield(luaState, -10002, "game");
- getfield(luaState, -1, "GetService");
- pushvalue(luaState, -2);
- pushstring(luaState, "Players");
- pcall(luaState, 2, 1, 0);
- getfield(luaState, -1, "LocalPlayer");
- getfield(luaState, -1, "Character");
- getfield(luaState, -1, "Torso");
- getfield(luaState, -10002, "Instance");
- pushstring(luaState, "Sparkles");
- pushvalue(luaState, -4);
- pcall(luaState, 2, 0, 0);
- }
- }
- return 0;
- }
- BOOL APIENTRY DllMain(HMODULE Module, DWORD Reason, void* Reserved)
- {
- switch (Reason)
- {
- case DLL_PROCESS_ATTACH:
- {
- DisableThreadLibraryCalls(Module);
- CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)main, NULL, NULL, NULL);
- }
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement