0% found this document useful (0 votes)
4 views2 pages

CODES

Uploaded by

infinitycodexs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

CODES

Uploaded by

infinitycodexs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Inject:

CoreFunctions.Inject(false);

Execute:
CoreFunctions.ExecuteScript(fastColoredTextBox1.Text);

Button to go into settings, script hubs etc:


Form2 f2 = new Form2();
f2.Show();
this.Hide();

Exit:
application.Exit();

Injection:
Timer time = new Timer();
-

time.Tick += timertick;
time.Start();

robloxopen.Text = "Roblox Open: ✅";


robloxopen.ForeColor = Color.LightGreen; // Change text color to
green
}
else
{
robloxopen.Text = "Roblox Open: ❌";
robloxopen.ForeColor = Color.Red; // Change text color to red
}

if (CoreFunctions.IsInjected())
{
status.Text = "Status: Injected!";
status.ForeColor = Color.LightGreen; // Change text color to green
}
else
{
status.Text = "Status: Not Injected!";
status.ForeColor = Color.Red; // Change text color to red

Clear (monaco):
Editor.Navigate(new Uri(string.Format("file:///{0}/Monaco/index.html",
Directory.GetCurrentDirectory())));

Open (Monaco):
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter = "Text Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|
*.*\"";

if (dialog.ShowDialog() == DialogResult.OK)
{
string script = System.IO.File.ReadAllText(dialog.FileName);
Editor.Document.InvokeScript("setValue", new object[] { script });

Save (Monaco);
SaveFileDialog saveFileDialog = new SaveFileDialog();

saveFileDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*";


saveFileDialog.Title = "Save Your File";

saveFileDialog.FileName = ".txt";

if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
string filePath = saveFileDialog.FileName;

try
{
System.IO.File.WriteAllText(filePath, "Your content goes here.");

MessageBox.Show("File saved successfully!", "Success",


MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception ex)
{
MessageBox.Show("Error saving file: " + ex.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}

SaveFileDialog saveFileDialog1 = new SaveFileDialog


{
Filter = "Lua Files (.lua)|.lua|Text Files (.txt)|.txt",
DefaultExt = "lua",
Title = "Save Lua or Text File"

Execute: Monaco:

string script = Editor.Document.InvokeScript("getValue").ToString();


CoreFunctions.ExecuteScript(script);

You might also like