Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. if (In.at(1) == "me") {
  2. lua_getglobal(luaState, "game");
  3. lua_getfield(luaState, -1, "Players");
  4. lua_getfield(luaState, -1, "LocalPlayer");
  5. lua_getfield(luaState, -1, "Backpack");
  6. lua_getglobal(luaState, "Instance");
  7. lua_getfield(luaState, -1, "new");
  8. lua_pushstring(luaState, "HopperBin");
  9. lua_pushvalue(luaState, -4);
  10. lua_pcall(luaState, 2, 1, 0);
  11. lua_pushnumber(luaState, 1);
  12. lua_setfield(luaState, -2, "BinType");
  13. lua_emptystack(luaState);
  14.  
  15. lua_getglobal(luaState, "game");
  16. lua_getfield(luaState, -1, "Players");
  17. lua_getfield(luaState, -1, "LocalPlayer");
  18. lua_getfield(luaState, -1, "Backpack");
  19. lua_getglobal(luaState, "Instance");
  20. lua_getfield(luaState, -1, "new");
  21. lua_pushstring(luaState, "HopperBin");
  22. lua_pushvalue(luaState, -4);
  23. lua_pcall(luaState, 2, 1, 0);
  24. lua_pushnumber(luaState, 2);
  25. lua_setfield(luaState, -2, "BinType");
  26. lua_emptystack(luaState);
  27.  
  28. lua_getglobal(luaState, "game");
  29. lua_getfield(luaState, -1, "Players");
  30. lua_getfield(luaState, -1, "LocalPlayer");
  31. lua_getfield(luaState, -1, "Backpack");
  32. lua_getglobal(luaState, "Instance");
  33. lua_getfield(luaState, -1, "new");
  34. lua_pushstring(luaState, "HopperBin");
  35. lua_pushvalue(luaState, -4);
  36. lua_pcall(luaState, 2, 1, 0);
  37. lua_pushnumber(luaState, 3);
  38. lua_setfield(luaState, -2, "BinType");
  39. lua_emptystack(luaState);
  40.  
  41. lua_getglobal(luaState, "game");
  42. lua_getfield(luaState, -1, "Players");
  43. lua_getfield(luaState, -1, "LocalPlayer");
  44. lua_getfield(luaState, -1, "Backpack");
  45. lua_getglobal(luaState, "Instance");
  46. lua_getfield(luaState, -1, "new");
  47. lua_pushstring(luaState, "HopperBin");
  48. lua_pushvalue(luaState, -4);
  49. lua_pcall(luaState, 2, 1, 0);
  50. lua_pushnumber(luaState, 4);
  51. lua_setfield(luaState, -2, "BinType");
  52. lua_emptystack(luaState);
  53. }
  54. else {
  55. lua_getglobal(luaState, "game");
  56. lua_getfield(luaState, -1, "Players");
  57. lua_getfield(luaState, -1, "LocalPlayer");
  58. lua_getfield(luaState, -1, "Backpack");
  59. lua_getglobal(luaState, "Instance");
  60. lua_getfield(luaState, -1, "new");
  61. lua_pushstring(luaState, "HopperBin");
  62. lua_pushvalue(luaState, -4);
  63. lua_pcall(luaState, 2, 1, 0);
  64. lua_pushnumber(luaState, 1);
  65. lua_setfield(luaState, -2, "BinType");
  66. lua_emptystack(luaState);
  67.  
  68. lua_getglobal(luaState, "game");
  69. lua_getfield(luaState, -1, "Players");
  70. lua_getfield(luaState, -1, "LocalPlayer");
  71. lua_getfield(luaState, -1, "Backpack");
  72. lua_getglobal(luaState, "Instance");
  73. lua_getfield(luaState, -1, "new");
  74. lua_pushstring(luaState, "HopperBin");
  75. lua_pushvalue(luaState, -4);
  76. lua_pcall(luaState, 2, 1, 0);
  77. lua_pushnumber(luaState, 2);
  78. lua_setfield(luaState, -2, "BinType");
  79. lua_emptystack(luaState);
  80.  
  81. lua_getglobal(luaState, "game");
  82. lua_getfield(luaState, -1, "Players");
  83. lua_getfield(luaState, -1, "LocalPlayer");
  84. lua_getfield(luaState, -1, "Backpack");
  85. lua_getglobal(luaState, "Instance");
  86. lua_getfield(luaState, -1, "new");
  87. lua_pushstring(luaState, "HopperBin");
  88. lua_pushvalue(luaState, -4);
  89. lua_pcall(luaState, 2, 1, 0);
  90. lua_pushnumber(luaState, 3);
  91. lua_setfield(luaState, -2, "BinType");
  92. lua_emptystack(luaState);
  93.  
  94. lua_getglobal(luaState, "game");
  95. lua_getfield(luaState, -1, "Players");
  96. lua_getfield(luaState, -1, "LocalPlayer");
  97. lua_getfield(luaState, -1, "Backpack");
  98. lua_getglobal(luaState, "Instance");
  99. lua_getfield(luaState, -1, "new");
  100. lua_pushstring(luaState, "HopperBin");
  101. lua_pushvalue(luaState, -4);
  102. lua_pcall(luaState, 2, 1, 0);
  103. lua_pushnumber(luaState, 4);
  104. lua_setfield(luaState, -2, "BinType");
  105. lua_emptystack(luaState);
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement