Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Execute_Script(std::string Script) {
- Script = "spawn(function() script = Instance.new('LocalScript')\r\n" + Script + "\r\nend)";
- if(Script.find(".Name = \"Dex\"") == std::string::npos){
- Script = ReplaceAll(Script, "game:GetObjects", "GetObjects");
- Script = ReplaceAll(Script, "game:HttpGet", "HttpGet");
- }
- else {
- cout << iblue << "[AtomWrapper] Executing Dex" << endl;
- }
- if (luaL_loadstring(LS, Script.c_str())) {
- return;
- }
- else {
- lua_pcall(LS, 0, 0, 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement