Advertisement
Mortalkombatman2

Roblox Wallhack Manager Source Code

Dec 8th, 2022
3,683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.98 KB | None | 0 0
  1. @echo off
  2. title Roblox Wallhack Manager
  3. color 0a
  4.  
  5. setlocal enableextensions enabledelayedexpansion
  6.  
  7. for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do ( set "DEL=%%a"
  8. )
  9.  
  10.  
  11. :Variables
  12. Set SelectedMainMenuOption=1
  13. set SelectedInstallTexturePackMenuOption=1
  14. set SelectedLoadInstalledTexturePackMenuOption=1
  15. set SelectedUninstallTexturePackMenuOption=1
  16.  
  17. set ProgramCurrentVersion=V1.0
  18.  
  19. cls
  20. mode 47,6
  21. color 0e
  22. echo -----------------------------------------------
  23. echo credits to:
  24. echo shanethegamer142 Or EditedReality: Main Creator
  25. echo Mortalkombatman2: GUI and LocateRoblox script
  26. echo -----------------------------------------------
  27. ping -n 5 127.0.0.1>nul
  28.  
  29. :LocateRoblox
  30. cls
  31. mode 42,2
  32. color 0d
  33. echo Locating Roblox... Please wait.
  34. ping -n 3 127.0.0.1>nul
  35. for /f "delims=" %%F in ('dir /b /s "%LocalAppData%\Roblox\RobloxPlayerBeta.exe" 2^>nul') do set RobloxLocation=%%F
  36. if defined RobloxLocation (
  37. goto RobloxSuccessfullyFound
  38. ) else (
  39. goto RobloxNotFoundError
  40. )
  41. cls
  42.  
  43.  
  44. :UnexpectedErrorWhileFindingRoblox
  45. cls
  46. mode 50,2
  47. color 0c
  48. echo An unexpected error has occured, please stand by.
  49. ping -n 7 127.0.0.1>nul
  50. cls
  51. goto LocateRoblox
  52.  
  53. :RobloxSuccessfullyFound
  54. cls
  55. mode 42,2
  56. color 0a
  57. echo Roblox has been successfully located.
  58. ping -n 4 127.0.0.1>nul
  59. cls
  60. goto Updator
  61.  
  62.  
  63. :RobloxNotFoundError
  64. cls
  65. mode 90,2
  66. color 0c
  67. echo Error 404, Roblox not found. Please install Roblox first, then press any key to continue.
  68. pause>nul
  69. goto LocateRoblox
  70.  
  71.  
  72. :Updator
  73. cls
  74. mode 42,2
  75. color 0e
  76. echo Checking for updates... Please wait.
  77. powershell cmd /c & ping -n 5 127.0.0.1>nul
  78. set DLOAD_SCRIPT=download.vbs
  79. echo Option Explicit > %DLOAD_SCRIPT%
  80. echo Dim args, http, fileSystem, adoStream, url, target, status >> %DLOAD_SCRIPT%
  81. echo. >> %DLOAD_SCRIPT%
  82. echo Set args = Wscript.Arguments >> %DLOAD_SCRIPT%
  83. echo Set http = CreateObject("WinHttp.WinHttpRequest.5.1") >> %DLOAD_SCRIPT%
  84. echo url = args(0) >> %DLOAD_SCRIPT%
  85. echo target = args(1) >> %DLOAD_SCRIPT%
  86. echo. >> %DLOAD_SCRIPT%
  87. echo http.Open "GET", url, False >> %DLOAD_SCRIPT%
  88. echo http.Send >> %DLOAD_SCRIPT%
  89. echo status = http.Status >> %DLOAD_SCRIPT%
  90. echo. >> %DLOAD_SCRIPT%
  91. echo If status ^<^> 200 Then >> %DLOAD_SCRIPT%
  92. echo WScript.Quit 1 >> %DLOAD_SCRIPT%
  93. echo End If >> %DLOAD_SCRIPT%
  94. echo. >> %DLOAD_SCRIPT%
  95. echo Set adoStream = CreateObject("ADODB.Stream") >> %DLOAD_SCRIPT%
  96. echo adoStream.Open >> %DLOAD_SCRIPT%
  97. echo adoStream.Type = 1 >> %DLOAD_SCRIPT%
  98. echo adoStream.Write http.ResponseBody >> %DLOAD_SCRIPT%
  99. echo adoStream.Position = 0 >> %DLOAD_SCRIPT%
  100. echo. >> %DLOAD_SCRIPT%
  101. echo Set fileSystem = CreateObject("Scripting.FileSystemObject") >> %DLOAD_SCRIPT%
  102. echo If fileSystem.FileExists(target) Then fileSystem.DeleteFile target >> %DLOAD_SCRIPT%
  103. echo adoStream.SaveToFile target >> %DLOAD_SCRIPT%
  104. echo adoStream.Close >> %DLOAD_SCRIPT%
  105. echo. >> %DLOAD_SCRIPT%
  106. cscript //Nologo %DLOAD_SCRIPT% https://pastebin.com/raw/jCvBg7Ki "%cd%\Server Current Version"
  107. del download.vbs
  108. set /p ServerCurrentVersion=<"%cd%\Server Current Version"
  109. del "%cd%\Server Current Version"
  110. cls
  111.  
  112. if "%ProgramCurrentVersion%" == "%ServerCurrentVersion%" goto UpToDateMessage
  113.  
  114. cls
  115. mode 88,2
  116. color 0b
  117. echo A new update is available! Downloading Roblox Resource Pack Manager %ServerCurrentVersion%... Please wait.
  118. ping -n 7 127.0.0.1>nul
  119. set DLOAD_SCRIPT=download.vbs
  120. echo Option Explicit > %DLOAD_SCRIPT%
  121. echo Dim args, http, fileSystem, adoStream, url, target, status >> %DLOAD_SCRIPT%
  122. echo. >> %DLOAD_SCRIPT%
  123. echo Set args = Wscript.Arguments >> %DLOAD_SCRIPT%
  124. echo Set http = CreateObject("WinHttp.WinHttpRequest.5.1") >> %DLOAD_SCRIPT%
  125. echo url = args(0) >> %DLOAD_SCRIPT%
  126. echo target = args(1) >> %DLOAD_SCRIPT%
  127. echo. >> %DLOAD_SCRIPT%
  128. echo http.Open "GET", url, False >> %DLOAD_SCRIPT%
  129. echo http.Send >> %DLOAD_SCRIPT%
  130. echo status = http.Status >> %DLOAD_SCRIPT%
  131. echo. >> %DLOAD_SCRIPT%
  132. echo If status ^<^> 200 Then >> %DLOAD_SCRIPT%
  133. echo WScript.Quit 1 >> %DLOAD_SCRIPT%
  134. echo End If >> %DLOAD_SCRIPT%
  135. echo. >> %DLOAD_SCRIPT%
  136. echo Set adoStream = CreateObject("ADODB.Stream") >> %DLOAD_SCRIPT%
  137. echo adoStream.Open >> %DLOAD_SCRIPT%
  138. echo adoStream.Type = 1 >> %DLOAD_SCRIPT%
  139. echo adoStream.Write http.ResponseBody >> %DLOAD_SCRIPT%
  140. echo adoStream.Position = 0 >> %DLOAD_SCRIPT%
  141. echo. >> %DLOAD_SCRIPT%
  142. echo Set fileSystem = CreateObject("Scripting.FileSystemObject") >> %DLOAD_SCRIPT%
  143. echo If fileSystem.FileExists(target) Then fileSystem.DeleteFile target >> %DLOAD_SCRIPT%
  144. echo adoStream.SaveToFile target >> %DLOAD_SCRIPT%
  145. echo adoStream.Close >> %DLOAD_SCRIPT%
  146. echo. >> %DLOAD_SCRIPT%
  147. cscript //Nologo %DLOAD_SCRIPT% https://pastebin.com/raw/Xnv0mSNx "%cd%\Roblox Wallhack Manager %ServerCurrentVersion%.bat"
  148. del download.vbs
  149. start "" "%cd%\Roblox Resource Pack Manager %ServerCurrentVersion%.bat"
  150. (goto) 2>nul & del "%~f0"
  151.  
  152.  
  153. :UpToDateMessage
  154. cls
  155. mode 48,2
  156. color 0a
  157. echo Roblox Resource Pack Manager %ProgramCurrentVersion% is up to date.
  158. ping -n 5 127.0.0.1>nul
  159. goto MainMenu
  160.  
  161.  
  162. :MainMenu
  163. mode 42,10
  164. cls
  165. color 0a
  166. if %SelectedMainMenuOption% == 1 (
  167. call :SetSelectionColor 1a "[SELECTED] Install custom texture pack"
  168. echo.
  169. ) else (
  170. echo Install custom texture pack
  171. )
  172. if %SelectedMainMenuOption% == 2 (
  173. call :SetSelectionColor 1a "[SELECTED] Load texture pack"
  174. echo.
  175. ) else (
  176. echo Load texture pack
  177. )
  178. if %SelectedMainMenuOption% == 3 (
  179. call :SetSelectionColor 1a "[SELECTED] Uninstall texture pack"
  180. echo.
  181. ) else (
  182. echo Uninstall texture pack
  183. )
  184. if %SelectedMainMenuOption% == 4 (
  185. call :SetSelectionColor 1a "[SELECTED] Help"
  186. echo.
  187. ) else (
  188. echo Help
  189. )
  190. if %SelectedMainMenuOption% == 5 (
  191. call :SetSelectionColor 1a "[SELECTED] Check for updates"
  192. echo.
  193. ) else (
  194. echo Check for updates
  195. )
  196. if %SelectedMainMenuOption% == 6 (
  197. call :SetSelectionColor 1a "[SELECTED] Exit"
  198. echo.
  199. ) else (
  200. echo Exit
  201. )
  202. echo.
  203. echo ------------------------------------------
  204. choice /c wsf /n /m " Keys: W = Up , S = Down, and F = Select"
  205.  
  206. if %ERRORLEVEL% == 1 goto MainMenuScrollUp
  207. if %ERRORLEVEL% == 2 goto MainMenuScrollDown
  208. if %ERRORLEVEL% == 3 goto MainMenuSelectOption
  209.  
  210. :MainMenuScrollUp
  211. if %SelectedMainMenuOption% == 1 (
  212. Set SelectedMainMenuOption=6
  213. goto MainMenu
  214. ) else (
  215. Set /a SelectedMainMenuOption=%SelectedMainMenuOption%-1
  216. goto MainMenu
  217. )
  218.  
  219. :MainMenuScrollDown
  220. if %SelectedMainMenuOption% == 6 (
  221. Set SelectedMainMenuOption=1
  222. goto MainMenu
  223. ) else (
  224. Set /a SelectedMainMenuOption=%SelectedMainMenuOption%+1
  225. goto MainMenu
  226. )
  227.  
  228. :MainMenuSelectOption
  229. if %SelectedMainMenuOption% == 1 goto InstallTexturePackMenu
  230. if %SelectedMainMenuOption% == 2 goto LoadInstalledTexturePackMenu
  231. if %SelectedMainMenuOption% == 3 goto UninstallTexturePackMenu
  232. if %SelectedMainMenuOption% == 4 goto Help
  233. if %SelectedMainMenuOption% == 5 goto Updator
  234. if %SelectedMainMenuOption% == 6 goto Exit
  235.  
  236.  
  237.  
  238. :InstallTexturePackMenu
  239. cls
  240. mode 100,25
  241. color 0a
  242. set x=0
  243. echo ------------------------------------------
  244. FOR /f "tokens=*" %%G IN ('dir /b "%cd%\Texture Packs"') do (
  245. if not exist "%cd%\DATA\%%G" (
  246. set /a x=x+1
  247. if %SelectedInstallTexturePackMenuOption% == !x! (
  248. set Name=%%G
  249. call :SetSelectionColor 1a "[SELECTED] %%G"
  250. echo.
  251. ) else (
  252. echo %%G
  253. )
  254. )
  255. )
  256. if %x% == 0 goto ErrorNoUninstalledTexturePacks
  257. echo.
  258. echo ------------------------------------------
  259. choice /c wsf /n /m " Keys: W = Up , S = Down, and F = Select"
  260.  
  261. if %ERRORLEVEL% == 1 goto InstallTexturePackMenuScrollUp
  262. if %ERRORLEVEL% == 2 goto InstallTexturePackMenuScrollDown
  263. if %ERRORLEVEL% == 3 goto InstallTexturePack
  264.  
  265. :InstallTexturePackMenuScrollUp
  266. if %SelectedInstallTexturePackMenuOption% == 1 (
  267. Set SelectedInstallTexturePackMenuOption=%x%
  268. goto InstallTexturePackMenu
  269. ) else (
  270. Set /a SelectedInstallTexturePackMenuOption=%SelectedInstallTexturePackMenuOption%-1
  271. goto InstallTexturePackMenu
  272. )
  273.  
  274. :InstallTexturePackMenuScrollDown
  275. if %SelectedInstallTexturePackMenuOption% == %x% (
  276. Set SelectedInstallTexturePackMenuOption=1
  277. goto InstallTexturePackMenu
  278. ) else (
  279. Set /a SelectedInstallTexturePackMenuOption=%SelectedInstallTexturePackMenuOption%+1
  280. goto InstallTexturePackMenu
  281. )
  282.  
  283.  
  284.  
  285. :InstallTexturePack
  286. echo begining install
  287. if not exist "%RobloxLocation%\..\%NAME%" (
  288. mkdir "%RobloxLocation%\..\%NAME%"
  289. )
  290. xcopy /s /y "%RobloxLocation%\..\content" "%RobloxLocation%\..\%NAME%"
  291. xcopy /s /y "%cd%\Texture Packs\%NAME%\%NAME%" "%RobloxLocation%\..\%NAME%"
  292. MKDIR "%cd%\DATA\%NAME%"
  293. if exist "%cd%\Texture Packs\%NAME%\AppSettings.xml" (
  294. xcopy /s /y "%cd%\Texture Packs\%NAME%\AppSettings.xml" "%cd%\DATA\%NAME%"
  295. )
  296. if exist "%cd%\Texture Packs\%NAME%\PlatformContent" (
  297. mkdir "%cd%\DATA\%NAME%\PlatformContent"
  298. xcopy /s /y "%cd%\Texture Packs\%NAME%\PlatformContent" "%cd%\DATA\%NAME%\PlatformContent"
  299. )
  300. cls
  301. echo completed
  302. echo texture pack installed goto select texture pack to select it
  303. echo Press any key to be taken back to the main menu.
  304. pause>nul
  305. goto MainMenu
  306.  
  307.  
  308.  
  309. :LoadInstalledTexturePackMenu
  310. cls
  311. mode 100,25
  312. color 0a
  313. set x=0
  314. echo ------------------------------------------
  315. FOR /f "tokens=*" %%G IN ('dir /b "%cd%\DATA"') do (
  316. set /a x=x+1
  317. if %SelectedLoadInstalledTexturePackMenuOption% == !x! (
  318. set Name=%%G
  319. call :SetSelectionColor 1a "[SELECTED] %%G"
  320. echo.
  321. ) else (
  322. echo %%G
  323. )
  324. )
  325. echo.
  326. echo ------------------------------------------
  327. choice /c wsf /n /m " Keys: W = Up , S = Down, and F = Select"
  328.  
  329. if %ERRORLEVEL% == 1 goto LoadInstalledTexturePackMenuScrollUp
  330. if %ERRORLEVEL% == 2 goto LoadInstalledTexturePackMenuScrollDown
  331. if %ERRORLEVEL% == 3 goto LoadTexturePack
  332.  
  333. :LoadInstalledTexturePackMenuScrollUp
  334. if %SelectedLoadInstalledTexturePackMenuOption% == 1 (
  335. Set SelectedLoadInstalledTexturePackMenuOption=%x%
  336. goto LoadInstalledTexturePackMenu
  337. ) else (
  338. Set /a SelectedLoadInstalledTexturePackMenuOption=%SelectedLoadInstalledTexturePackMenuOption%-1
  339. goto LoadInstalledTexturePackMenu
  340. )
  341.  
  342. :LoadInstalledTexturePackMenuScrollDown
  343. if %SelectedLoadInstalledTexturePackMenuOption% == %x% (
  344. Set SelectedLoadInstalledTexturePackMenuOption=1
  345. goto LoadInstalledTexturePackMenu
  346. ) else (
  347. Set /a SelectedLoadInstalledTexturePackMenuOption=%SelectedLoadInstalledTexturePackMenuOption%+1
  348. goto LoadInstalledTexturePackMenu
  349. )
  350.  
  351. :LoadTexturePack
  352. if exist "%cd%\DATA\%NAME%\AppSettings.xml" (
  353. xcopy /s /y "%cd%\DATA\%NAME%\AppSettings.xml" "%RobloxLocation%\.."
  354. )
  355. if exist "%cd%\DATA\%NAME%\PlatformContent" (
  356. xcopy /s /y "%cd%\DATA\%NAME%\PlatformContent" "%RobloxLocation%\..\PlatformContent"
  357. )
  358. cls
  359. echo sucsesfully changed textures
  360. echo Press any key to be taken back to the main menu.
  361. pause>nul
  362. goto MainMenu
  363.  
  364.  
  365.  
  366. :UninstallTexturePackMenu
  367. cls
  368. mode 100,25
  369. color 0a
  370. set x=0
  371. echo ------------------------------------------
  372. FOR /f "tokens=*" %%G IN ('dir /b "%cd%\DATA"') do (
  373. if not "%%G" == "Default" (
  374. set /a x=x+1
  375. if %SelectedUninstallTexturePackMenuOption% == !x! (
  376. set Name=%%G
  377. call :SetSelectionColor 1a "[SELECTED] %%G"
  378. echo.
  379. ) else (
  380. echo %%G
  381. )
  382. )
  383. )
  384. if %x% == 0 goto ErrorNoInstalledTexturePacks
  385. echo.
  386. echo ------------------------------------------
  387. choice /c wsf /n /m " Keys: W = Up , S = Down, and F = Select"
  388.  
  389. if %ERRORLEVEL% == 1 goto UninstallTexturePackMenuScrollUp
  390. if %ERRORLEVEL% == 2 goto UninstallTexturePackMenuScrollDown
  391. if %ERRORLEVEL% == 3 goto UninstallTexturePack
  392.  
  393. :UninstallTexturePackMenuScrollUp
  394. if %SelectedUninstallTexturePackMenuOption% == 1 (
  395. Set SelectedUninstallTexturePackMenuOption=%x%
  396. goto UninstallTexturePackMenu
  397. ) else (
  398. Set /a SelectedUninstallTexturePackMenuOption=%SelectedUninstallTexturePackMenuOption%-1
  399. goto UninstallTexturePackMenu
  400. )
  401.  
  402. :UninstallTexturePackMenuScrollDown
  403. if %SelectedUninstallTexturePackMenuOption% == %x% (
  404. Set SelectedUninstallTexturePackMenuOption=1
  405. goto UninstallTexturePackMenu
  406. ) else (
  407. Set /a SelectedUninstallTexturePackMenuOption=%SelectedUninstallTexturePackMenuOption%+1
  408. goto UninstallTexturePackMenu
  409. )
  410.  
  411. :UninstallTexturePack
  412. cls
  413. if exist "%RobloxLocation%\..\%NAME%" (
  414. echo Removing the directory tree for "%RobloxLocation%\..\%NAME%"
  415. rmdir /S /Q "%RobloxLocation%\..\%NAME%"
  416. echo Completed.
  417. echo.
  418. )
  419. if exist "%cd%\DATA\%NAME%" (
  420. echo Removing the directory tree for "%cd%\DATA\%NAME%"
  421. rmdir /S /Q "%cd%\DATA\%NAME%"
  422. echo Completed.
  423. echo.
  424. )
  425. echo successfully uninstalled texture pack.
  426. echo Press any key to be taken back to the main menu.
  427. pause>nul
  428. goto MainMenu
  429.  
  430.  
  431. :Help
  432. cls
  433. mode 132, 10
  434. color 0a
  435. echo okay so if you made your own texture pack or downloded one and want to make it compatible with this then follow these instructions:
  436. echo make a folder inside of the texture folder in this tool that is called what you want it to be called
  437. echo and make one inside that with the same name
  438. echo then copy your content folder into it
  439. echo and copy AppSettings.xml from the roblox dir into it
  440. echo once you have done that right click AppSettings.xml and click edit and change content to your texture name and save
  441. echo you are done
  442. echo.
  443. call :SetSelectionColor 0d "Press any key to be taken back to the main menu."
  444. pause>nul
  445. goto MainMenu
  446.  
  447. :Exit
  448. cls
  449. mode 42,2
  450. color 0c
  451. echo Goodbye.
  452. ping -n 3 127.0.0.1>nul
  453. exit
  454.  
  455.  
  456.  
  457. :ErrorNoUninstalledTexturePacks
  458. cls
  459. color 0c
  460. echo You have no uninstalled texture packs. Please download a texture pack first. If you need help visit the how to use.
  461. call :SetSelectionColor 0d "Press any key to be taken back to the main menu."
  462. pause>nul
  463. goto MainMenu
  464.  
  465.  
  466.  
  467. :ErrorNoInstalledTexturePacks
  468. cls
  469. color 0c
  470. echo You have no installed texture packs. Please install a texture pack first.
  471. call :SetSelectionColor 0d "Press any key to be taken back to the main menu."
  472. pause>nul
  473. goto MainMenu
  474.  
  475.  
  476.  
  477. :SetSelectionColor
  478. echo off
  479. <nul set /p ".=%DEL%" > "%~2"
  480. findstr /v /a:%1 /R "^$" "%~2" nul
  481. del "%~2" > nul 2>&1
  482. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement