public void ExecuteScript(string script, bool external = false) { if (!CheckRobloxRunning()) { MessageBox.Show("Roblox is not running!", "Bloxxer", MessageBoxButtons.OK); return; } if (GlobalVars.InjectOnExecution && !Api.isAPIAttached()) { Api.LaunchExploit(); } if (!Api.isAPIAttached()) { MessageBox.Show("Exploit is not injected!", "Bloxxer", MessageBoxButtons.OK); return; } if (GlobalVars.ExecutionMessage && !execAsLuaC.Checked) { if (GlobalVars.ExecutionMessageMethod == 0) { script += "\n\ngame:GetService('StarterGui'):SetCore('SendNotification',{Title='Bloxxer',Text='Script executed',Duration=5,Button1='Ok'})"; } else if (GlobalVars.ExecutionMessageMethod == 1) { script += "\n\nprint('Bloxxer - Executed script')"; } else if (GlobalVars.ExecutionMessageMethod == 2) { script += "\n\ngame:GetService('StarterGui'):SetCore('SendNotification',{Title='Bloxxer',Text='Script executed',Duration=5,Button1='Ok'})"; script += "\n\nprint('Bloxxer - Executed script')"; } } if (execAsLuaC.Checked && !external) { Api.SendLuaCScript(script); return; } Api.SendLuaScript(script); }
private void button2_Click(object sender, EventArgs e) { Writel(); string[] words = command.Split(':'); if (words[0] == "log") { api.SendLuaCScript($"WRDAPI.log({words[2]})"); } else if (words[0] == "error") { api.SendLuaCScript($"WRDAPI.error({words[2]})"); } else if (words[0] == "error") { api.SendLuaCScript($"WRDAPI.error({words[2]})"); } else if (words[0] == "infomsg") { api.SendLuaCScript($"WRDAPI.InfoMsg({words[2]})"); } else if (words[0] == "errormsg") { api.SendLuaCScript($"WRDAPI.ErrorMsg({words[2]})"); } else { api.SendCommand(command); } }
private void flatButton8_Click(object sender, EventArgs e) { exec.SendLuaCScript(txtScript.Text); }
private void button10_Click(object sender, EventArgs e) { string exploit = fastColoredTextBox1.Text; api.SendLuaCScript(exploit); }