Advertisement
Roblox_Studio_Tips

How to Make roblox lua executor C# (WRD)

Mar 3rd, 2020
2,019
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MOVABLE FORM        
  2.  
  3. public const int WM_NCLBUTTONDOWN = 0xA1;
  4.         public const int HT_CAPTION = 0x2;
  5.        
  6.         [DllImport("user32.dll")]
  7.         public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
  8.  
  9.         [DllImport("user32.dll")]
  10.         public static extern bool ReleaseCapture();
  11.  
  12.         private void FormMoveable_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
  13.         {
  14.             if (e.Button == MouseButtons.Left)
  15.             {
  16.                 ReleaseCapture();
  17.                 SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0);
  18.             }
  19.         }
  20.  
  21.  
  22.  
  23.  
  24. LOAD FILE
  25.  
  26.             //wassup
  27.             OpenFileDialog opendialogfile = new OpenFileDialog();
  28.             opendialogfile.Filter = "Lua File (*.lua)|*.lua|Text File (*.txt)|*.txt";
  29.             opendialogfile.FilterIndex = 2;
  30.             opendialogfile.RestoreDirectory = true;
  31.             if (opendialogfile.ShowDialog() != DialogResult.OK)
  32.                 return;
  33.             try
  34.             {
  35.                 fastColoredTextBox1.Text = "";
  36.                 System.IO.Stream stream;
  37.                 if ((stream = opendialogfile.OpenFile()) == null)
  38.                     return;
  39.                 using (stream)
  40.                     this.fastColoredTextBox1.Text = System.IO.File.ReadAllText(opendialogfile.FileName);
  41.             }
  42.             catch (Exception)
  43.             {
  44.                 int num = (int)MessageBox.Show("An unexpected error has occured", "OOF!", MessageBoxButtons.OK, MessageBoxIcon.Information);
  45.  
  46.             }
  47.  
  48.  
  49.  
  50.  
  51.  
  52. SAVE FILE
  53.  
  54.  
  55.  
  56.             SaveFileDialog sfd = new SaveFileDialog();
  57.             sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
  58.             if (sfd.ShowDialog() == DialogResult.OK)
  59.             {
  60.                 Stream s = sfd.OpenFile();
  61.                 StreamWriter sw = new StreamWriter(s);
  62.                 sw.Write(fastColoredTextBox1.Text);
  63.                 sw.Close();
  64.             }
  65.  
  66. EXECUTE SCRIPT
  67.  
  68. string luac = fastColoredTextBox1.Text;
  69. api.SendLimitedLuaScript(luac);
  70.  
  71. INJECT
  72.  
  73. string luac = fastColoredTextBox1.Text;
  74.             api.SendLimitedLuaScript(luac);
  75.  
  76.  
  77. USE API WRD (IF U HAVE IT IN REFERENCES)
  78. using WeAreDevs_API;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement