Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS //msvc doesn't like freopen
- #include <iostream>
- #include <Windows.h>
- #include <string>
- #include <vector>
- #include <stdio.h>
- using namespace std;
- namespace Memory {
- // snip
- }
- namespace Roblox {
- int Lighting = 0;
- int Teams;
- int Players = 0;
- int Workspace = 0;
- int Game;
- int ClearAllChildren_Address = 0x50CA50;
- typedef void(__thiscall * clearallchildren)(void*self);
- clearallchildren ClearAllChildren = (clearallchildren)ClearAllChildren_Address;
- int BreakJoints_0_Address = 0xE540B0;
- typedef void(__thiscall * KillAll)(void* self);
- KillAll BreakJoints = (KillAll)BreakJoints_0_Address;
- int SetMinuetsAfterMidnight_Address = 0x6C7E90;
- typedef void(__thiscall * SetMinuets)(void* self, double aidss);
- SetMinuets SetMid = (SetMinuets)SetMinuetsAfterMidnight_Address;
- int FogEnd_Adddress = 0x67D7D0;
- typedef void(__thiscall * SetF)(void* self, float foghax);
- SetF SetFogEnd = (SetF)FogEnd_Adddress;
- }
- int main()
- {
- AllocConsole();//create console
- freopen("CONOUT$", "w", stdout); //to use output (cout)
- freopen("CONIN$", "r", stdin); //to use input, useless because I never take input
- SetConsoleTitle(L"Project SWXL Demo v0.2 - by Nextron0");
- cout << "Scanning... Please wait\n";
- // snipped the scanners.
- cout << "done " << endl;
- cout << "Type in 'cmds' for list of commands.\n";
- string command;
- putchar('\n');
- while (1) {
- putchar('>');
- cin >> command;
- if (command == "exit") {
- return 0;
- }
- else if (command == "clrteams") {
- Roblox::ClearAllChildren((void*)Roblox::Teams);
- }
- else if (command == "clearallchildren"){
- Roblox::ClearAllChildren((void*)Roblox::Workspace);
- }
- else if (command == "killall") {
- Roblox::BreakJoints((void*)Roblox::Workspace);
- }
- else if (command == "settime") {
- double time;
- cin >> time;
- Roblox::SetMid((void*)Roblox::Lighting, time);
- }
- else if (command == "day") {
- double time = 15;
- Roblox::SetMid((void*)Roblox::Lighting, time);
- }
- else if (command == "night") {
- double nighttime = 0;
- Roblox::SetMid((void*)Roblox::Lighting, nighttime);
- }
- else if (command == "fogend") {
- float fog;
- cin >> fog;
- Roblox::SetFogEnd((void*)Roblox::Lighting, fog);
- }
- else if (command == "nofog") {
- float fog = 100000;
- Roblox::SetFogEnd((void*)Roblox::Lighting, fog);
- }
- }
- }
- BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
- {
- if (fdwReason == DLL_PROCESS_ATTACH)
- {
- DisableThreadLibraryCalls(hinstDLL);
- CreateThread(0, 0, (LPTHREAD_START_ROUTINE)main, 0, 0, 0); //lets go
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement