Guest User

Untitled

a guest
Jan 22nd, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.17 KB | None | 0 0
  1. // Roblox v3.0.cpp : Defines the exported functions for the DLL application.
  2. //
  3. #include <windows.h>
  4. #include <tchar.h>
  5. #include <stdio.h>
  6. #include <strsafe.h>
  7. #include <iostream>
  8. #include <Windows.h>
  9. #include <string>
  10. #include <ctime>
  11. #include <sstream>
  12. #include <vector>
  13. #include <iterator>
  14. #include <fcntl.h>
  15. #include <io.h>
  16. #include <TlHelp32.h>
  17. #include <fstream>
  18. #include <wininet.h>
  19. #include <Iphlpapi.h>
  20. #include <Shlwapi.h>
  21. #include <tchar.h>
  22. #include <urlmon.h>
  23. #include <DbgHelp.h>
  24. #include <Iphlpapi.h>
  25. #include <wininet.h>
  26. #include <stdlib.h>
  27. #include "main.h"
  28. #include "source.h"
  29. #include "form.h"
  30. #include "helper.h"
  31. #include "Memory.h"
  32. #include <urlmon.h>
  33. DWORD ROBLOX_BASE;
  34. DWORD BASE;
  35. int thingy;
  36. const char* message;
  37. const char* message2;
  38. void ConsoleOutput(const char * format, ...) {
  39. char message[INPUT_CHAR_LIMIT];
  40. va_list vl;
  41. va_start(vl, format);
  42. vsnprintf_s(message, INPUT_CHAR_LIMIT, format, vl);
  43. va_end(vl);
  44.  
  45. SendMessage(ConsoleField, EM_SETSEL, -1, 0);
  46. SendMessage(ConsoleField, EM_REPLACESEL, FALSE, (LPARAM)message);
  47. }
  48. BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
  49. if (ul_reason_for_call == 1) {
  50. DisableThreadLibraryCalls(hModule);
  51. athread begin(Initiate, NULL);
  52. }
  53. return 1;
  54. }
  55. void Initiate() {
  56. //if (DEBUG_MODE)
  57. CreateConsole();
  58.  
  59. printf("Initiating...\n");
  60.  
  61. ROBLOX_BASE = (DWORD)GetModuleHandle(NULL);
  62. HMODULE Base = GetModuleHandle("Layout Source.dll");
  63. BASE = (DWORD)Base;
  64. athread mainThread(InitiateWindow, NULL);
  65. int exitCode = mainThread.wait();
  66. }
  67. void ScanStuff()
  68. {
  69. ConsoleOutput("Scanning...\n");
  70. // Scan for DataModel address
  71. DWORD VFTable = Roblox::ScriptContext_address;
  72. byte byt[4];
  73. byt[0] = VFTable & 0x000000ff;
  74. byt[1] = (VFTable & 0x0000ff00) >> 8;
  75. byt[2] = (VFTable & 0x00ff0000) >> 16;
  76. byt[3] = (VFTable & 0xff000000) >> 24;
  77. Roblox::ScriptContext = Memory::Scan(PAGE_READWRITE, byt, "xxxx");
  78. // Check if DataModel address is 0. This means something went wrong. Often seen in Windows version less than 8.
  79. Roblox::DataModel = Roblox::GetParent(Roblox::ScriptContext);
  80. ConsoleOutput("DataModel: %d\n", Roblox::DataModel);
  81. // Get the service addresses
  82. Roblox::Lighting = Roblox::GetService("Lighting");
  83. Roblox::Workspace = Roblox::GetService("Workspace");
  84. Roblox::Players = Roblox::GetService("Players");
  85.  
  86. // Print the service addresses
  87. ConsoleOutput("Lighting: %d\n", Roblox::Lighting);
  88. ConsoleOutput("Workspace: %d\n", Roblox::Workspace);
  89. ConsoleOutput("Players: %d\n", Roblox::Players);
  90.  
  91. // Get your player's address
  92. int LocalPlayer = Roblox::GetLocalPlayer(Roblox::Players);
  93. Roblox::PlayerName = Roblox::GetName(LocalPlayer);
  94. ConsoleOutput("OK!\n");
  95.  
  96.  
  97. }
  98. // Function to input a string
  99. std::string Input()
  100. {
  101. std::string sInput;
  102. getline(std::cin, sInput);
  103. return sInput;
  104. }
  105.  
  106.  
  107. // Splits a strings into multiple strings
  108. std::vector<std::string> split(std::string s)
  109. {
  110. std::vector<std::string> elems;
  111. std::stringstream ss(s);
  112. std::istream_iterator<std::string> begin(ss);
  113. std::istream_iterator<std::string> end;
  114. std::vector<std::string> vstrings(begin, end);
  115. return vstrings;
  116. }
  117. std::vector<std::string> &split_str_2(const std::string &s, char delim, std::vector<std::string> &elems);
  118. std::vector<std::string> split_str(const std::string &s, char delim);
  119.  
  120.  
  121. std::vector<std::string> &split_str_2(const std::string &s, char delim, std::vector<std::string> &elems) {
  122. std::stringstream ss(s);
  123. std::string item;
  124. while (std::getline(ss, item, delim)) {
  125. elems.push_back(item);
  126. }
  127. return elems;
  128. }
  129.  
  130.  
  131. std::vector<std::string> split_str(const std::string &s, char delim) {
  132. std::vector<std::string> elems;
  133. split_str_2(s, delim, elems);
  134. return elems;
  135. }
  136.  
  137. // Creates the seizure effect by rapidly changing time from night to day and vice-versa
  138. const char* command_list[] =
  139. {
  140. "\r\nCommands:\r\n",
  141. "punish [p/all/others] - punishes player \r\n",
  142. "unpunish [p/all/others] - unpunishes player \r\n",
  143. "kill [p/all/others] - Kills player [p] \r\n",
  144. "freeze [p/all/others] - freezes player \r\n",
  145. "thaw [p/all/others] - unfreezes player \r\n",
  146. "noarms [p/all/others] - removes players arms \r\n",
  147. "nolegs [p/all/others] - removes players legs \r\n",
  148. "potato [p/all/others] - removes all players limbs \r\n",
  149. "topless [p/all/others] - removes players top \r\n",
  150. "pantless [p/all/others] - removes players pants \r\n",
  151. "swapclothes [p1] [p2] - swaps players clothes around \r\n",
  152. "swapface [p1] [p2] - swaps players face around \r\n",
  153. "nohat [p/all/others] - removes players hat \r\n",
  154. "noface [p/all/others] - removes players face \r\n",
  155. "mashup [p/all/others] - mashes players body up(reset fixes,works best with 1.0) \r\n",
  156. "blockhead [p/all/others] - makes player have a blockhead \r\n",
  157. "hhs [p/all/others] - make you a hammer head shark!!!!!!!! \r\n",
  158. "stealtools [p] - puts there tools in your backpack! \r\n",
  159. "noanimation [p/all/others] - animationless \r\n",
  160. "animation [p/all/others] - gives player there animation back \r\n",
  161. "fish [p/all/others] - Flop Like a fish\r\n",
  162. "swapstat [stat] [p] - swaps your stats \r\n",
  163. "rescanaob - rescans required AOB \r\n",
  164. };
  165. // Processes the commands
  166. void HandleCommand_r(const string& command) {
  167. std::vector<std::string> In = split(command);
  168. ConsoleOutput("\r\n>%s\r\n", command.c_str());
  169. if (In.size() == 0) { return; }
  170. else if (In.at(0) == "punish")
  171. {
  172. try {
  173. if (In.size() == 2)
  174. {
  175. if (In.at(1) == "all") {
  176. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  177. if (Players.size() != 0) {
  178. for (unsigned i = 0; i < Players.size(); ++i) {
  179. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  180. if (CPlayer != 0) {
  181. Roblox::SetParent(CPlayer, Roblox::Lighting);
  182. }
  183. }
  184. }
  185. }
  186. else if (In.at(1) == "others") {
  187. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  188. if (Players.size() != 0) {
  189. for (unsigned i = 0; i < Players.size(); ++i) {
  190. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  191. if (CPlayer != 0) {
  192. Roblox::SetParent(CPlayer, Roblox::Lighting);
  193. }
  194. }
  195. }
  196. }
  197. else {
  198. int Character = Roblox::GetCharacter(In.at(1).c_str());
  199. if (Character != 0) {
  200. Roblox::SetParent(Character, Roblox::Lighting);
  201. }
  202. }
  203. }
  204. }
  205. catch (exception) {
  206. printf("Error!\n");
  207. Sleep(1);
  208. }
  209. }
  210. else if (In.at(0) == "unpunish")
  211. {
  212. try {
  213. if (In.size() == 2)
  214. {
  215. if (In.at(1) == "all") {
  216. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  217. if (Players.size() != 0) {
  218. for (unsigned i = 0; i < Players.size(); ++i) {
  219. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Lighting, *Roblox::GetName(Players[i]));
  220. if (CPlayer != 0) {
  221. Roblox::SetParent(CPlayer, Roblox::Workspace);
  222. }
  223. }
  224. }
  225. }
  226. else if (In.at(1) == "others") {
  227. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  228. if (Players.size() != 0) {
  229. for (unsigned i = 0; i < Players.size(); ++i) {
  230. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Lighting, *Roblox::GetName(Players[i]));
  231. if (CPlayer != 0) {
  232. Roblox::SetParent(CPlayer, Roblox::Workspace);
  233. }
  234. }
  235. }
  236. }
  237. else {
  238. int Character = Roblox::FindFirstChild_PartOf(Roblox::Lighting, In.at(1).c_str());
  239. if (Character != 0) {
  240. Roblox::SetParent(Character, Roblox::Workspace);
  241. }
  242. }
  243. }
  244. }
  245. catch (exception) {
  246. printf("Error!\n");
  247. Sleep(1);
  248. }
  249. }
  250. else if (In.at(0) == "kill")
  251. {
  252. try {
  253. if (In.size() == 2)
  254. {
  255. if (In.at(1) == "all") {
  256. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  257. if (Players.size() != 0) {
  258. for (unsigned i = 0; i < Players.size(); ++i) {
  259. int CPlayer = Roblox::GetCharacter(*Roblox::GetName(Players[i]));
  260. if (CPlayer != 0) {
  261. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  262. if (Head != 0) {
  263. Roblox::SetParent(Head, Roblox::Lighting);
  264. }
  265. }
  266. }
  267. }
  268. }
  269. else if (In.at(1) == "others") {
  270. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  271. if (Players.size() != 0) {
  272. for (unsigned i = 0; i < Players.size(); ++i) {
  273. int CPlayer = Roblox::GetCharacter(*Roblox::GetName(Players[i]));
  274. if (CPlayer != 0) {
  275. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  276. if (Head != 0) {
  277. Roblox::SetParent(Head, Roblox::Lighting);
  278. }
  279. }
  280. }
  281. }
  282. }
  283. else {
  284. int Character = Roblox::GetCharacter(In.at(1));
  285. if (Character != 0) {
  286. int Head = Roblox::FindFirstChild_PartOf(Character, "Head");
  287. if (Head != 0) {
  288. Roblox::SetParent(Head, Roblox::Lighting);
  289. }
  290. }
  291. }
  292. }
  293. }
  294. catch (exception) {
  295. printf("Error!\n");
  296. Sleep(1);
  297. }
  298. }
  299. else if (In.at(0) == "freeze")
  300. {
  301. try {
  302. if (In.size() == 2) {
  303. if (In.at(1) == "all") {
  304. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  305. if (Players.size() != 0) {
  306. for (unsigned i = 0; i < Players.size(); ++i) {
  307. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  308. if (CPlayer != 0) {
  309. int Torso = Roblox::FindFirstChild_PartOf(CPlayer, "Torso");
  310. if (Torso != 0) {
  311. Roblox::AnchorObject(Torso, 1);
  312. }
  313. }
  314. }
  315. }
  316. }
  317. else if (In.at(1) == "others") {
  318. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  319. if (Players.size() != 0) {
  320. for (unsigned i = 0; i < Players.size(); ++i) {
  321. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  322. if (CPlayer != 0) {
  323. int Torso = Roblox::FindFirstChild_PartOf(CPlayer, "Torso");
  324. if (Torso != 0) {
  325. Roblox::AnchorObject(Torso, 1);
  326. }
  327. }
  328. }
  329. }
  330. }
  331. else {
  332. int Character = Roblox::GetCharacter(In.at(1));
  333. if (Character != 0) {
  334. int Torso = Roblox::FindFirstChild_PartOf(Character, "Torso");
  335. if (Torso != 0) {
  336. Roblox::AnchorObject(Torso, 1);
  337. }
  338. }
  339. }
  340. }
  341. }
  342. catch (exception) {
  343. printf("Error!\n");
  344. Sleep(1);
  345. }
  346. }
  347. else if (In.at(0) == "thaw")
  348. {
  349. try {
  350. if (In.size() == 2) {
  351. int Speed = 16;
  352. int jpow = 50;
  353. if (In.at(1) == "all") {
  354. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  355. if (Players.size() != 0) {
  356. for (unsigned i = 0; i < Players.size(); ++i) {
  357. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  358. if (CPlayer != 0) {
  359. int Torso = Roblox::FindFirstChild_PartOf(CPlayer, "Torso");
  360. if (Torso != 0) {
  361. Roblox::AnchorObject(Torso, 0);
  362. }
  363. }
  364. }
  365. }
  366. }
  367. else if (In.at(1) == "others") {
  368. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  369. if (Players.size() != 0) {
  370. for (unsigned i = 0; i < Players.size(); ++i) {
  371. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  372. if (CPlayer != 0) {
  373. int Torso = Roblox::FindFirstChild_PartOf(CPlayer, "Torso");
  374. if (Torso != 0) {
  375. Roblox::AnchorObject(Torso, 0);
  376. }
  377. }
  378. }
  379. }
  380. }
  381. else {
  382. int Character = Roblox::GetCharacter(In.at(1));
  383. if (Character != 0) {
  384. int Torso = Roblox::FindFirstChild_PartOf(Character, "Torso");
  385. if (Torso != 0) {
  386. Roblox::AnchorObject(Torso, 0);
  387. }
  388. }
  389. }
  390. }
  391. }
  392. catch (exception) {
  393. printf("Error!\n");
  394. Sleep(1);
  395. }
  396. }
  397. else if (In.at(0) == "nohat")
  398. {
  399. try {
  400. if (In.size() == 2) {
  401. if (In.at(1) == "all") {
  402. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  403. if (Players.size() != 0) {
  404. for (unsigned i = 0; i < Players.size(); ++i) {
  405. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  406. if (CPlayer != 0) {
  407. int Humanoid = Roblox::FindFirstChild_PartOf(CPlayer, "Humanoid");
  408. if (Humanoid != 0) {
  409. Roblox::SetParent(Humanoid, Roblox::Lighting);
  410. int Humanoid = Roblox::FindFirstChild_PartOf(Roblox::Lighting, "Humanoid");
  411. Roblox::SetParent(Humanoid, CPlayer);
  412. }
  413. }
  414. }
  415. }
  416. }
  417. else if (In.at(1) == "others") {
  418. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  419. if (Players.size() != 0) {
  420. for (unsigned i = 0; i < Players.size(); ++i) {
  421. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  422. if (CPlayer != 0) {
  423. int Humanoid = Roblox::FindFirstChild_PartOf(CPlayer, "Humanoid");
  424. if (Humanoid != 0) {
  425. Roblox::SetParent(Humanoid, Roblox::Lighting);
  426. int Humanoid = Roblox::FindFirstChild_PartOf(Roblox::Lighting, "Humanoid");
  427. Roblox::SetParent(Humanoid, CPlayer);
  428. }
  429. }
  430. }
  431. }
  432. }
  433. else {
  434. int Character = Roblox::GetCharacter(In.at(1).c_str());
  435. if (Character != 0) {
  436. int Humanoid = Roblox::FindFirstClass(Character, "Humanoid");
  437. if (Humanoid != 0) {
  438. Roblox::SetParent(Humanoid, Roblox::Lighting);
  439. int Humanoid = Roblox::FindFirstChild_PartOf(Roblox::Lighting, "Humanoid");
  440. Roblox::SetParent(Humanoid, Character);
  441. }
  442. }
  443. }
  444. }
  445. }
  446. catch (exception) {
  447. printf("Error!\n");
  448. Sleep(1);
  449. }
  450. }
  451. else if (In.at(0) == "noarms")
  452. {
  453. try {
  454. if (In.size() == 2) {
  455. if (In.at(1) == "all") {
  456. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  457. if (Players.size() != 0) {
  458. for (unsigned i = 0; i < Players.size(); ++i) {
  459. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  460. if (CPlayer != 0) {
  461. int LA = Roblox::FindFirstChild_PartOf(CPlayer, "Left Arm");
  462. int RA = Roblox::FindFirstChild_PartOf(CPlayer, "Right Arm");
  463. if ((LA != 0) & (RA != 0)) {
  464. Roblox::SetParent(LA, Roblox::Lighting);
  465. Roblox::SetParent(RA, Roblox::Lighting);
  466. }
  467. }
  468. }
  469. }
  470. }
  471. else if (In.at(1) == "others") {
  472. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  473. if (Players.size() != 0) {
  474. for (unsigned i = 0; i < Players.size(); ++i) {
  475. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  476. if (CPlayer != 0) {
  477. int LA = Roblox::FindFirstChild_PartOf(CPlayer, "Left Arm");
  478. int RA = Roblox::FindFirstChild_PartOf(CPlayer, "Right Arm");
  479. if ((LA != 0) & (RA != 0)) {
  480. Roblox::SetParent(LA, Roblox::Lighting);
  481. Roblox::SetParent(RA, Roblox::Lighting);
  482. }
  483. }
  484. }
  485. }
  486. }
  487. else {
  488. int Character = Roblox::GetCharacter(In.at(1).c_str());
  489. if (Character != 0) {
  490. int LA = Roblox::FindFirstChild_PartOf(Character, "Left Arm");
  491. int RA = Roblox::FindFirstChild_PartOf(Character, "Right Arm");
  492. if ((LA != 0) & (RA != 0)) {
  493. Roblox::SetParent(LA, Roblox::Lighting);
  494. Roblox::SetParent(RA, Roblox::Lighting);
  495. }
  496. }
  497. }
  498. }
  499. }
  500. catch (exception) {
  501. printf("Error!\n");
  502. Sleep(1);
  503. }
  504. }
  505. else if (In.at(0) == "nolegs")
  506. {
  507. try {
  508. if (In.size() == 2) {
  509. if (In.at(1) == "all") {
  510. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  511. if (Players.size() != 0) {
  512. for (unsigned i = 0; i < Players.size(); ++i) {
  513. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  514. if (CPlayer != 0) {
  515. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Left Leg");
  516. int RL = Roblox::FindFirstChild_PartOf(CPlayer, "Right Leg");
  517. if ((LL != 0) & (RL != 0)) {
  518. Roblox::SetParent(LL, Roblox::Lighting);
  519. Roblox::SetParent(RL, Roblox::Lighting);
  520. }
  521. }
  522. }
  523. }
  524. }
  525. else if (In.at(1) == "others") {
  526. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  527. if (Players.size() != 0) {
  528. for (unsigned i = 0; i < Players.size(); ++i) {
  529. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  530. if (CPlayer != 0) {
  531. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Left Leg");
  532. int RL = Roblox::FindFirstChild_PartOf(CPlayer, "Right Leg");
  533. if ((LL != 0) & (RL != 0)) {
  534. Roblox::SetParent(LL, Roblox::Lighting);
  535. Roblox::SetParent(RL, Roblox::Lighting);
  536. }
  537. }
  538. }
  539. }
  540. }
  541. else {
  542. int Character = Roblox::GetCharacter(In.at(1).c_str());
  543. if (Character != 0) {
  544. int LL = Roblox::FindFirstChild_PartOf(Character, "Left Leg");
  545. int RL = Roblox::FindFirstChild_PartOf(Character, "Right Leg");
  546. if ((LL != 0) & (RL != 0)) {
  547. Roblox::SetParent(LL, Roblox::Lighting);
  548. Roblox::SetParent(RL, Roblox::Lighting);
  549. }
  550. else {
  551. printf("Error!\n");
  552. }
  553. }
  554. }
  555. }
  556. else {
  557. printf("Error!\n");
  558. }
  559. }
  560. catch (exception) {
  561. printf("Error!\n");
  562. Sleep(1);
  563. }
  564. }
  565. else if (In.at(0) == "potato")
  566. {
  567. try {
  568. if (In.size() == 2) {
  569. if (In.at(1) == "all") {
  570. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  571. if (Players.size() != 0) {
  572. for (unsigned i = 0; i < Players.size(); ++i) {
  573. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  574. if (CPlayer != 0) {
  575. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Left Leg");
  576. int RL = Roblox::FindFirstChild_PartOf(CPlayer, "Right Leg");
  577. int LA = Roblox::FindFirstChild_PartOf(CPlayer, "Left Arm");
  578. int RA = Roblox::FindFirstChild_PartOf(CPlayer, "Right Arm");
  579. if ((LL != 0) & (RL != 0) & (LA != 0) & (RA != 0)) {
  580. Roblox::SetParent(LL, Roblox::Lighting);
  581. Roblox::SetParent(RL, Roblox::Lighting);
  582. Roblox::SetParent(LA, Roblox::Lighting);
  583. Roblox::SetParent(RA, Roblox::Lighting);
  584. }
  585. }
  586. }
  587. }
  588. }
  589. else if (In.at(1) == "others") {
  590. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  591. if (Players.size() != 0) {
  592. for (unsigned i = 0; i < Players.size(); ++i) {
  593. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  594. if (CPlayer != 0) {
  595. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Left Leg");
  596. int RL = Roblox::FindFirstChild_PartOf(CPlayer, "Right Leg");
  597. int LA = Roblox::FindFirstChild_PartOf(CPlayer, "Left Arm");
  598. int RA = Roblox::FindFirstChild_PartOf(CPlayer, "Right Arm");
  599. if ((LL != 0) & (RL != 0) & (LA != 0) & (RA != 0)) {
  600. Roblox::SetParent(LL, Roblox::Lighting);
  601. Roblox::SetParent(RL, Roblox::Lighting);
  602. Roblox::SetParent(LA, Roblox::Lighting);
  603. Roblox::SetParent(RA, Roblox::Lighting);
  604. }
  605. }
  606. }
  607. }
  608. }
  609. else {
  610. int Character = Roblox::GetCharacter(In.at(1).c_str());
  611. if (Character != 0) {
  612. int LL = Roblox::FindFirstChild_PartOf(Character, "Left Leg");
  613. int RL = Roblox::FindFirstChild_PartOf(Character, "Right Leg");
  614. int LA = Roblox::FindFirstChild_PartOf(Character, "Left Arm");
  615. int RA = Roblox::FindFirstChild_PartOf(Character, "Right Arm");
  616. if ((LL != 0) & (RL != 0) & (LA != 0) & (RA != 0)) {
  617. Roblox::SetParent(LL, Roblox::Lighting);
  618. Roblox::SetParent(RL, Roblox::Lighting);
  619. Roblox::SetParent(LA, Roblox::Lighting);
  620. Roblox::SetParent(RA, Roblox::Lighting);
  621. }
  622. else {
  623. printf("Error!\n");
  624. }
  625. }
  626. }
  627. }
  628. else {
  629. printf("Error!\n");
  630. }
  631. }
  632. catch (exception) {
  633. printf("Error!\n");
  634. Sleep(1);
  635. }
  636. }
  637. else if (In.at(0) == "topless")
  638. {
  639. try {
  640. if (In.size() == 2) {
  641. if (In.at(1) == "all") {
  642. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  643. if (Players.size() != 0) {
  644. for (unsigned i = 0; i < Players.size(); ++i) {
  645. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  646. if (CPlayer != 0) {
  647. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Shirt");
  648. if (LL != 0) {
  649. Roblox::SetParent(LL, Roblox::Lighting);
  650. }
  651. }
  652. }
  653. }
  654. }
  655. else if (In.at(1) == "others") {
  656. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  657. if (Players.size() != 0) {
  658. for (unsigned i = 0; i < Players.size(); ++i) {
  659. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  660. if (CPlayer != 0) {
  661. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Shirt");
  662. if (LL != 0) {
  663. Roblox::SetParent(LL, Roblox::Lighting);
  664. }
  665. }
  666. }
  667. }
  668. }
  669. else {
  670. int Character = Roblox::GetCharacter(In.at(1).c_str());
  671. if (Character != 0) {
  672. int LL = Roblox::FindFirstChild_PartOf(Character, "Shirt");
  673. if (LL != 0) {
  674. Roblox::SetParent(LL, Roblox::Lighting);
  675. }
  676. else {
  677. printf("Error!\n");
  678. }
  679. }
  680. }
  681. }
  682. else {
  683. printf("Error!\n");
  684. }
  685. }
  686. catch (exception) {
  687. printf("Error!\n");
  688. Sleep(1);
  689. }
  690. }
  691. else if (In.at(0) == "pantless")
  692. {
  693. try {
  694. if (In.size() == 2) {
  695. if (In.at(1) == "all") {
  696. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  697. if (Players.size() != 0) {
  698. for (unsigned i = 0; i < Players.size(); ++i) {
  699. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  700. if (CPlayer != 0) {
  701. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Pants");
  702. if (LL != 0) {
  703. Roblox::SetParent(LL, Roblox::Lighting);
  704. }
  705. }
  706. }
  707. }
  708. }
  709. else if (In.at(1) == "others") {
  710. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  711. if (Players.size() != 0) {
  712. for (unsigned i = 0; i < Players.size(); ++i) {
  713. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  714. if (CPlayer != 0) {
  715. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Pants");
  716. if (LL != 0) {
  717. Roblox::SetParent(LL, Roblox::Lighting);
  718. }
  719. }
  720. }
  721. }
  722. }
  723. else {
  724. int Character = Roblox::GetCharacter(In.at(1).c_str());
  725. if (Character != 0) {
  726. int LL = Roblox::FindFirstChild_PartOf(Character, "Pants");
  727. if (LL != 0) {
  728. Roblox::SetParent(LL, Roblox::Lighting);
  729. }
  730. else {
  731. printf("Error!\n");
  732. }
  733. }
  734. }
  735. }
  736. else {
  737. printf("Error!\n");
  738. }
  739. }
  740. catch (exception) {
  741. printf("Error!\n");
  742. Sleep(1);
  743. }
  744. }
  745. else if (In.at(0) == "mashup")
  746. {
  747. try {
  748. if (In.size() == 2) {
  749. if (In.at(1) == "all") {
  750. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  751. if (Players.size() != 0) {
  752. for (unsigned i = 0; i < Players.size(); ++i) {
  753. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  754. if (CPlayer != 0) {
  755. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  756. if (Head != 0) {
  757. int Torso = Roblox::FindFirstChild_PartOf(CPlayer, "Torso");
  758. int LLm = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  759. int LLf = Roblox::FindFirstChild_PartOf(Head, "face");
  760. if ((Torso != 0) & (LLm != 0) & (LLf != 0)) {
  761. Roblox::SetParent(LLf, Torso);
  762. Roblox::SetParent(LLm, Torso);
  763. }
  764. }
  765. }
  766. }
  767. }
  768. }
  769. else if (In.at(1) == "others") {
  770. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  771. if (Players.size() != 0) {
  772. for (unsigned i = 0; i < Players.size(); ++i) {
  773. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  774. if (CPlayer != 0) {
  775. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  776. if (Head != 0) {
  777. int Torso = Roblox::FindFirstChild_PartOf(CPlayer, "Torso");
  778. int LLm = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  779. int LLf = Roblox::FindFirstChild_PartOf(Head, "face");
  780. if ((Torso != 0) & (LLm != 0) & (LLf != 0)) {
  781. Roblox::SetParent(LLf, Torso);
  782. Roblox::SetParent(LLm, Torso);
  783. }
  784. }
  785. }
  786. }
  787. }
  788. }
  789. else {
  790. int Character = Roblox::GetCharacter(In.at(1).c_str());
  791. if (Character != 0) {
  792. int Head = Roblox::FindFirstChild_PartOf(Character, "Head");
  793. if (Head != 0) {
  794. int Torso = Roblox::FindFirstChild_PartOf(Character, "Torso");
  795. int LLm = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  796. int LLf = Roblox::FindFirstChild_PartOf(Head, "face");
  797. if ((Torso != 0) & (LLm != 0) & (LLf != 0)) {
  798. Roblox::SetParent(LLf, Torso);
  799. Roblox::SetParent(LLm, Torso);
  800. }
  801. }
  802. else {
  803. printf("Error!\n");
  804. }
  805. }
  806. }
  807. }
  808. else {
  809. printf("Error!\n");
  810. }
  811. }
  812. catch (exception) {
  813. printf("Error!\n");
  814. Sleep(1);
  815. }
  816. }
  817. else if (In.at(0) == "hhs")
  818. {
  819. try {
  820. if (In.size() == 2) {
  821. if (In.at(1) == "all") {
  822. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  823. if (Players.size() != 0) {
  824. for (unsigned i = 0; i < Players.size(); ++i) {
  825. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  826. if (CPlayer != 0) {
  827. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  828. int Torso = Roblox::FindFirstChild_PartOf(CPlayer, "Torso");
  829. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Left Leg");
  830. int RL = Roblox::FindFirstChild_PartOf(CPlayer, "Right Leg");
  831. int LA = Roblox::FindFirstChild_PartOf(CPlayer, "Left Arm");
  832. int RA = Roblox::FindFirstChild_PartOf(CPlayer, "Right Arm");
  833. if (Head != 0) {
  834. int LLm = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  835. int LLf = Roblox::FindFirstChild_PartOf(Head, "face");
  836. if ((Torso != 0) & (LL != 0) & (RL != 0) & (LA != 0) & (RA != 0)) {
  837. Roblox::SetParent(LL, Roblox::Lighting);
  838. Roblox::SetParent(RL, Roblox::Lighting);
  839. Roblox::SetParent(LA, Roblox::Lighting);
  840. Roblox::SetParent(RA, Roblox::Lighting);
  841. Roblox::SetParent(LLf, Torso);
  842. Roblox::SetParent(LLm, Torso);
  843. }
  844. }
  845. }
  846. }
  847. }
  848. }
  849. else if (In.at(1) == "others") {
  850. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  851. if (Players.size() != 0) {
  852. for (unsigned i = 0; i < Players.size(); ++i) {
  853. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  854. if (CPlayer != 0) {
  855. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  856. int Torso = Roblox::FindFirstChild_PartOf(CPlayer, "Torso");
  857. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Left Leg");
  858. int RL = Roblox::FindFirstChild_PartOf(CPlayer, "Right Leg");
  859. int LA = Roblox::FindFirstChild_PartOf(CPlayer, "Left Arm");
  860. int RA = Roblox::FindFirstChild_PartOf(CPlayer, "Right Arm");
  861. if (Head != 0) {
  862. int LLm = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  863. int LLf = Roblox::FindFirstChild_PartOf(Head, "face");
  864. if ((Torso != 0) & (LL != 0) & (RL != 0) & (LA != 0) & (RA != 0)) {
  865. Roblox::SetParent(LL, Roblox::Lighting);
  866. Roblox::SetParent(RL, Roblox::Lighting);
  867. Roblox::SetParent(LA, Roblox::Lighting);
  868. Roblox::SetParent(RA, Roblox::Lighting);
  869. Roblox::SetParent(LLf, Torso);
  870. Roblox::SetParent(LLm, Torso);
  871. }
  872. }
  873. }
  874. }
  875. }
  876. }
  877. else {
  878. int Character = Roblox::GetCharacter(In.at(1).c_str());
  879. int Head = Roblox::FindFirstChild_PartOf(Character, "Head");
  880. int Torso = Roblox::FindFirstChild_PartOf(Character, "Torso");
  881. if (Character != 0) {
  882. int LL = Roblox::FindFirstChild_PartOf(Character, "Left Leg");
  883. int RL = Roblox::FindFirstChild_PartOf(Character, "Right Leg");
  884. int LA = Roblox::FindFirstChild_PartOf(Character, "Left Arm");
  885. int RA = Roblox::FindFirstChild_PartOf(Character, "Right Arm");
  886. if (Head != 0) {
  887. int LLm = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  888. int LLf = Roblox::FindFirstChild_PartOf(Head, "face");
  889. if ((Torso != 0) & (LL != 0) & (RL != 0) & (LA != 0) & (RA != 0)) {
  890. Roblox::SetParent(LL, Roblox::Lighting);
  891. Roblox::SetParent(RL, Roblox::Lighting);
  892. Roblox::SetParent(LA, Roblox::Lighting);
  893. Roblox::SetParent(RA, Roblox::Lighting);
  894. Roblox::SetParent(LLf, Torso);
  895. Roblox::SetParent(LLm, Torso);
  896. }
  897. }
  898. }
  899. }
  900. }
  901. }
  902. catch (exception) {
  903. printf("Error!\n");
  904. Sleep(1);
  905. }
  906. }
  907. else if (In.at(0) == "swapclothes")
  908. {
  909. try {
  910. if (In.size() == 3) {
  911. int Character = Roblox::GetCharacter(In.at(1).c_str());
  912. int Character2 = Roblox::GetCharacter(In.at(2).c_str());
  913. if (Character != 0) {
  914. if (Character2 != 0) {
  915. int LL = Roblox::FindFirstChild_PartOf(Character, "Pants");
  916. int Ls = Roblox::FindFirstChild_PartOf(Character, "Shirt");
  917. int LL2 = Roblox::FindFirstChild_PartOf(Character2, "Pants");
  918. int Ls2 = Roblox::FindFirstChild_PartOf(Character2, "Shirt");
  919. if ((LL != 0) & (Ls != 0) & (LL2 != 0) & (Ls2 != 0)) {
  920. Roblox::SetParent(LL, Character2);
  921. Roblox::SetParent(Ls, Character2);
  922. Roblox::SetParent(LL2, Character);
  923. Roblox::SetParent(Ls2, Character);
  924. }
  925. }
  926. }
  927. }
  928. }
  929. catch (exception) {
  930. printf("Error!\n");
  931. Sleep(1);
  932. }
  933. }
  934. else if (In.at(0) == "swapface")
  935. {
  936. try {
  937. if (In.size() == 3) {
  938. int Character = Roblox::GetCharacter(In.at(1).c_str());
  939. int Head = Roblox::FindFirstChild_PartOf(Character, "Head");
  940. if ((Character != 0) & (Head != 0)) {
  941. int Character2 = Roblox::GetCharacter(In.at(2).c_str());
  942. int Head2 = Roblox::FindFirstChild_PartOf(Character2, "Head");
  943. if ((Character2 != 0) & (Head2 != 0)) {
  944. int LL = Roblox::FindFirstChild_PartOf(Head, "face");
  945. int LL2 = Roblox::FindFirstChild_PartOf(Head2, "face");
  946. if ((LL != 0) & (LL2 != 0)) {
  947. Roblox::SetParent(LL, Head2);
  948. Roblox::SetParent(LL2, Head);
  949. }
  950. }
  951. }
  952. }
  953. }
  954. catch (exception) {
  955. printf("Error!\n");
  956. Sleep(1);
  957. }
  958. }
  959. else if (In.at(0) == "noface")
  960. {
  961. try {
  962. if (In.size() == 2) {
  963. if (In.at(1) == "all") {
  964. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  965. if (Players.size() != 0) {
  966. for (unsigned i = 0; i < Players.size(); ++i) {
  967. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  968. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  969. if (CPlayer != 0) {
  970. int LL = Roblox::FindFirstChild_PartOf(Head, "face");
  971. if (LL != 0) {
  972. Roblox::SetParent(LL, Roblox::Lighting);
  973. }
  974. }
  975. }
  976. }
  977. }
  978. else if (In.at(1) == "others") {
  979. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  980. if (Players.size() != 0) {
  981. for (unsigned i = 0; i < Players.size(); ++i) {
  982. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  983. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  984. if (CPlayer != 0) {
  985. int LL = Roblox::FindFirstChild_PartOf(Head, "face");
  986. if (LL != 0) {
  987. Roblox::SetParent(LL, Roblox::Lighting);
  988. }
  989. }
  990. }
  991. }
  992. }
  993. else {
  994. int Character = Roblox::GetCharacter(In.at(1).c_str());
  995. int Head = Roblox::FindFirstChild_PartOf(Character, "Head");
  996. if (Character != 0) {
  997. int LL = Roblox::FindFirstChild_PartOf(Head, "face");
  998. if (LL != 0) {
  999. Roblox::SetParent(LL, Roblox::Lighting);
  1000. }
  1001. }
  1002. }
  1003. }
  1004. }
  1005. catch (exception) {
  1006. printf("Error!\n");
  1007. Sleep(1);
  1008. }
  1009. }
  1010. else if (In.at(0) == "blockhead")
  1011. {
  1012. try {
  1013. if (In.size() == 2) {
  1014. if (In.at(1) == "all") {
  1015. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  1016. if (Players.size() != 0) {
  1017. for (unsigned i = 0; i < Players.size(); ++i) {
  1018. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  1019. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  1020. if (CPlayer != 0) {
  1021. int LL = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  1022. if (LL != 0) {
  1023. Roblox::SetParent(LL, Roblox::Lighting);
  1024. }
  1025. }
  1026. }
  1027. }
  1028. }
  1029. else if (In.at(1) == "others") {
  1030. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  1031. if (Players.size() != 0) {
  1032. for (unsigned i = 0; i < Players.size(); ++i) {
  1033. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  1034. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  1035. if (CPlayer != 0) {
  1036. int LL = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  1037. if (LL != 0) {
  1038. Roblox::SetParent(LL, Roblox::Lighting);
  1039. }
  1040. }
  1041. }
  1042. }
  1043. }
  1044. else {
  1045. int Character = Roblox::GetCharacter(In.at(1).c_str());
  1046. int Head = Roblox::FindFirstChild_PartOf(Character, "Head");
  1047. if (Character != 0) {
  1048. int LL = Roblox::FindFirstChild_PartOf(Head, "Mesh");
  1049. if (LL != 0) {
  1050. Roblox::SetParent(LL, Roblox::Lighting);
  1051. }
  1052. }
  1053. }
  1054. }
  1055. }
  1056. catch (exception) {
  1057. printf("Error!\n");
  1058. Sleep(1);
  1059. }
  1060. }
  1061. else if (In.at(0) == "noanimation")
  1062. {
  1063. try {
  1064. if (In.size() == 2) {
  1065. if (In.at(1) == "all") {
  1066. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  1067. if (Players.size() != 0) {
  1068. for (unsigned i = 0; i < Players.size(); ++i) {
  1069. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  1070. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  1071. if (CPlayer != 0) {
  1072. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Animate");
  1073. if (LL != 0) {
  1074. Roblox::SetParent(LL, Roblox::Lighting);
  1075. }
  1076. }
  1077. }
  1078. }
  1079. }
  1080. else if (In.at(1) == "others") {
  1081. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  1082. if (Players.size() != 0) {
  1083. for (unsigned i = 0; i < Players.size(); ++i) {
  1084. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  1085. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  1086. if (CPlayer != 0) {
  1087. int LL = Roblox::FindFirstChild_PartOf(CPlayer, "Animate");
  1088. if (LL != 0) {
  1089. Roblox::SetParent(LL, Roblox::Lighting);
  1090. }
  1091. }
  1092. }
  1093. }
  1094. }
  1095. else {
  1096. int Character = Roblox::GetCharacter(In.at(1).c_str());
  1097. if (Character != 0) {
  1098. int LL = Roblox::FindFirstChild_PartOf(Character, "Animate");
  1099. if (LL != 0) {
  1100. Roblox::SetParent(LL, Roblox::Lighting);
  1101. }
  1102. }
  1103. }
  1104. }
  1105. }
  1106. catch (exception) {
  1107. printf("Error!\n");
  1108. Sleep(1);
  1109. }
  1110. }
  1111. else if (In.at(0) == "animation")
  1112. {
  1113. try {
  1114. if (In.size() == 2) {
  1115. if (In.at(1) == "all") {
  1116. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  1117. if (Players.size() != 0) {
  1118. for (unsigned i = 0; i < Players.size(); ++i) {
  1119. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  1120. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  1121. if (CPlayer != 0) {
  1122. int LL = Roblox::FindFirstChild_PartOf(Roblox::Lighting, "Animate");
  1123. if (LL != 0) {
  1124. Roblox::SetParent(LL, CPlayer);
  1125. }
  1126. }
  1127. }
  1128. }
  1129. }
  1130. else if (In.at(1) == "others") {
  1131. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  1132. if (Players.size() != 0) {
  1133. for (unsigned i = 0; i < Players.size(); ++i) {
  1134. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  1135. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  1136. if (CPlayer != 0) {
  1137. int LL = Roblox::FindFirstChild_PartOf(Roblox::Lighting, "Animate");
  1138. if (LL != 0) {
  1139. Roblox::SetParent(LL, CPlayer);
  1140. }
  1141. }
  1142. }
  1143. }
  1144. }
  1145. else {
  1146. int Character = Roblox::GetCharacter(In.at(1).c_str());
  1147. if (Character != 0) {
  1148. int LL = Roblox::FindFirstChild_PartOf(Roblox::Lighting, "Animate");
  1149. if (LL != 0) {
  1150. Roblox::SetParent(LL, Character);
  1151. }
  1152. }
  1153. }
  1154. }
  1155. }
  1156. catch (exception) {
  1157. printf("Error!\n");
  1158. Sleep(1);
  1159. }
  1160. }
  1161. else if (In.at(0) == "fish")
  1162. {
  1163. try {
  1164. if (In.at(1) == "all") {
  1165. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  1166. if (Players.size() != 0) {
  1167. for (unsigned i = 0; i < Players.size(); ++i) {
  1168. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  1169. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  1170. if (CPlayer != 0) {
  1171. int part = Roblox::FindFirstChild_PartOf(CPlayer, "HumanoidRootPart");
  1172. if (part != 0) {
  1173. Roblox::SetParent(part, Roblox::Lighting);
  1174. }
  1175. }
  1176. }
  1177. }
  1178. }
  1179. else if (In.at(1) == "others") {
  1180. vector <DWORD> Players = Roblox::GetCharacterVector(In.at(1).c_str());
  1181. if (Players.size() != 0) {
  1182. for (unsigned i = 0; i < Players.size(); ++i) {
  1183. int CPlayer = Roblox::FindFirstChild_PartOf(Roblox::Workspace, *Roblox::GetName(Players[i]));
  1184. int Head = Roblox::FindFirstChild_PartOf(CPlayer, "Head");
  1185. if (CPlayer != 0) {
  1186. int part = Roblox::FindFirstChild_PartOf(CPlayer, "HumanoidRootPart");
  1187. if (part != 0) {
  1188. Roblox::SetParent(part, Roblox::Lighting);
  1189. }
  1190. }
  1191. }
  1192. }
  1193. }
  1194. else {
  1195. int chara = Roblox::GetCharacter(In.at(1));
  1196. if (chara != 0) {
  1197. int part = Roblox::FindFirstChild_PartOf(chara, "HumanoidRootPart");
  1198. if (part != 0) {
  1199. Roblox::SetParent(part, Roblox::Lighting);
  1200. }
  1201. }
  1202. }
  1203. }
  1204. catch (exception) {
  1205. printf("Error!\n");
  1206. Sleep(1);
  1207. }
  1208. }
  1209. else if (In.at(0) == "stealtools")
  1210. {
  1211. try {
  1212. int person = Roblox::GetPlayer(In.at(1));
  1213. int me = Roblox::GetPlayer("me");
  1214. int person_b = Roblox::FindFirstChild_PartOf(person, "Backpack");
  1215. int me_b = Roblox::FindFirstChild_PartOf(me, "Backpack");
  1216. vector<DWORD> children = Roblox::GetChildren(person_b);
  1217. for (int p = 0; p < children.size(); ++p) {
  1218. string me = Roblox::GetClass(children[p]);
  1219. if (me == "Tool") {
  1220. Roblox::SetParent(children[p], me_b);
  1221. Sleep(0.2);
  1222. }
  1223. if (me == "HopperBin") {
  1224. Roblox::SetParent(children[p], me_b);
  1225. Sleep(0.2);
  1226. }
  1227. }
  1228. }
  1229. catch (exception) {
  1230. printf("Error!\n");
  1231. Sleep(1);
  1232. }
  1233. }
  1234. else if (In.at(0) == "rescanaob")
  1235. {
  1236. try {
  1237. ScanStuff();
  1238. }
  1239. catch (exception) {
  1240. printf("Error!\n");
  1241. Sleep(1);
  1242. }
  1243. }
  1244. else if (In.at(0) == "cmds") {
  1245. ConsoleOutput("\r\n");
  1246. for (int i = 0; i < _countof(command_list); ++i)
  1247. ConsoleOutput("%s", command_list[i]);
  1248. ConsoleOutput("\r\n");
  1249. }
  1250. }
  1251. void HandleCommand(string command) {
  1252. try {
  1253. HandleCommand_r(command);
  1254. }
  1255. catch (...) {
  1256. ConsoleOutput("Oops, I crashed when trying to execute the command '%s'.\r\n", command.c_str());
  1257. }
  1258. }
  1259. int main() {
  1260. ScanStuff();
  1261. ConsoleOutput("Starting!\n");
  1262. ConsoleOutput("Welcome %s!\n", Roblox::PlayerName);
  1263. ConsoleOutput("Layout Source has fully loaded!\n");
  1264. ConsoleOutput("Type 'cmds' to view a list of commands.\n");
  1265. return 1;
  1266. }
  1267. void CreateConsole() {
  1268. if (DoesConsoleExist())
  1269. return;
  1270.  
  1271. int hConHandle = 0;
  1272. HANDLE lStdHandle = 0;
  1273. FILE *fp = 0;
  1274.  
  1275. // Allocate a console
  1276. AllocConsole();
  1277.  
  1278. // redirect unbuffered STDOUT to the console
  1279. lStdHandle = GetStdHandle(STD_OUTPUT_HANDLE);
  1280. hConHandle = _open_osfhandle(PtrToUlong(lStdHandle), _O_TEXT);
  1281. fp = _fdopen(hConHandle, "w");
  1282. *stdout = *fp;
  1283. setvbuf(stdout, NULL, _IONBF, 0);
  1284.  
  1285. // redirect unbuffered STDIN to the console
  1286. lStdHandle = GetStdHandle(STD_INPUT_HANDLE);
  1287. hConHandle = _open_osfhandle(PtrToUlong(lStdHandle), _O_TEXT);
  1288. fp = _fdopen(hConHandle, "r");
  1289. *stdin = *fp;
  1290. setvbuf(stdin, NULL, _IONBF, 0);
  1291.  
  1292. // redirect unbuffered STDERR to the console
  1293. lStdHandle = GetStdHandle(STD_ERROR_HANDLE);
  1294. hConHandle = _open_osfhandle(PtrToUlong(lStdHandle), _O_TEXT);
  1295. fp = _fdopen(hConHandle, "w");
  1296. *stderr = *fp;
  1297. setvbuf(stderr, NULL, _IONBF, 0);
  1298.  
  1299. SetConsoleTitle("Layout Source");
  1300. }
  1301. BOOLEAN DoesConsoleExist() {
  1302. return GetConsoleWindow() != NULL;
  1303. }
Add Comment
Please, Sign In to add comment