spidey_v6

Yaz noice video

Nov 19th, 2019
1,408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.31 KB | None | 0 0
  1. --Kill Roblox Code
  2. foreach (var process in Process.GetProcessesByName("RobloxPlayerBeta"))
  3.             {
  4.                 process.Kill();
  5.             }
  6.  
  7. --Add this to Your Functions to Finish Open File
  8. public static OpenFileDialog openfiledialog = new OpenFileDialog
  9.         {
  10.             Filter = "Lua Script Txt (*.txt)|*.txt|All files (*.*)|*.*",//add txt and all files filter
  11.             FilterIndex = 1,//choose what filter will be the default
  12.             RestoreDirectory = true,//restore the last used directory
  13.             Title = "Aspect Open "//OpenFileDialog Tittle
  14.         };//Initialize OpenFileDialog
  15.  
  16. --Add to Functions To make ScriptBox Work
  17.  
  18. public static void PopulateListBox(ListBox lsb, string Folder, string FileType)
  19.         {
  20.             DirectoryInfo dinfo = new DirectoryInfo(Folder);
  21.             FileInfo[] Files = dinfo.GetFiles(FileType);
  22.             foreach (FileInfo file in Files)
  23.             {
  24.                 lsb.Items.Add(file.Name);
  25.             }
  26.  
  27. --Inject Code
  28.  
  29. LaunchExploit();
  30.  
  31. --Refresh Code
  32. --Put this into Main.load and ur Refresh button
  33.  
  34. listBox1.Items.Clear();//Clear Items in the LuaScriptList
  35.                         Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
  36.                         Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
Add Comment
Please, Sign In to add comment