Advertisement
choosai

Script - 1% Finish - ROBLOX (Automatic win, GetTools, Screen cleaning and more)

Aug 21st, 2023 (edited)
3,087
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.91 KB | Gaming | 1 0
  1. --!strict
  2.  
  3. local Configurations = {
  4.     DestroyButtons = {
  5.         Enabled = true;
  6.         ["KillPlayer"] = true; 
  7.         ["SkipToEnd"] = false;
  8.  
  9.         ["ResetWinners"] = false; -- This button may be used as toggle for automatic phase completion.
  10.         ["KillEveryone"] = false; -- If GetTool.AsButton is set to true, this button will be used by that functionality.
  11.  
  12.         -- When eliminating any of theses buttons with optional additional functionalities, be aware that that you will also take all the same functionalities that you opt to enable on them.
  13.     };
  14.  
  15.     ["GetTools"] = {
  16.         OnDeath = true;
  17.         AsButton = true; -- This will replace the button "Kill Everyone"
  18.         -- If you mark this button to be deleted, this functionality will not be placed as an button.
  19.     };
  20.  
  21.     ["Replace reset winners button as toggle to phase automatic completion"] = true;
  22.     ["Complete phases automatically"] = true; -- Automatic wins.
  23.     ["Make skip button free"] = true;
  24.  
  25.     --> To disable any of theses, set their value to false;
  26.     -- Functionality = false;
  27.     -- Eg: GetAllTools = false;
  28.  
  29. }
  30.  
  31. local LocalPlayer = game.Players.LocalPlayer
  32. local PlayerCharacter, HumanoidRootPart
  33.  
  34. local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  35. local MainGUI = PlayerGui:WaitForChild("Main")
  36.  
  37. local WinnersArea = game.Workspace:WaitForChild("WinnersArea");
  38.  
  39. local LeaderStats = LocalPlayer:WaitForChild("leaderstats")
  40. local Values = LocalPlayer:WaitForChild("Values")
  41.  
  42. local CoreGui
  43. local LeftFrame
  44.  
  45. -- LIBS
  46. local Goto
  47. local GetAllTools
  48. local UI
  49.  
  50. -- ENSURE LIBS WERE LOADED
  51. local function ensure(n: "Goto" | "GetAllTools" | "UI")
  52.     if n == "Goto" and not Goto then
  53.         Goto = loadstring(game:HttpGet("https://pastebin.com/raw/4fWebx7d"))()
  54.     elseif n == "GetAllTools" and not GetAllTools then
  55.         GetAllTools = loadstring(game:HttpGet("https://pastebin.com/raw/HrbnLei8"))()
  56.     elseif n == "UI" and not UI then
  57.         UI = loadstring(game:HttpGet("https://pastebin.com/raw/4eDufEtx"))()
  58.     end
  59. end
  60.  
  61. if Configurations.GetTools then
  62.     warn("STARTING: GetAllTools")
  63.     ensure("GetAllTools")  
  64.  
  65.     local Settings = Configurations.GetTools
  66.     local Delaying = false
  67.  
  68.     if Settings.OnDeath then
  69.         LocalPlayer.CharacterAdded:Connect(function()
  70.             task.wait(0.1)
  71.             GetAllTools()
  72.         end)
  73.     end
  74.  
  75.     if Settings.AsButton then
  76.         ensure("UI")
  77.  
  78.         local KillPlayerFrame = UI.getFromLeftFrame("Kill")
  79.  
  80.         local KillPlayerButton = KillPlayerFrame:WaitForChild("Button")
  81.         KillPlayerFrame.Name = "Get Tools"
  82.         KillPlayerButton.Text = "Get Tools"
  83.  
  84.         do
  85.             local KillPrompt = KillPlayerButton:FindFirstChild("Prompt")
  86.             if KillPrompt then
  87.                 KillPrompt:Destroy()
  88.             end
  89.         end
  90.  
  91.         KillPlayerButton.MouseButton1Down:Connect(function()
  92.             if Delaying then
  93.                 return
  94.             end
  95.  
  96.             Delaying = true
  97.             GetAllTools()
  98.  
  99.             task.wait(1)
  100.             Delaying = false;
  101.         end)
  102.     end
  103.  
  104.     warn("ENDED LOADING: GetAllTools")
  105. end
  106.  
  107. local SkipButton
  108. if Configurations["Make skip button free"] and not Configurations.DestroyButtons.SkipToEnd then
  109.     warn("STARTING: MakeSkipToEndFree")
  110.  
  111.     ensure("Goto")
  112.     ensure("UI")
  113.  
  114.     local SkipFrame = UI.getFromLeftFrame("Skip")
  115.     SkipButton = SkipFrame:WaitForChild("Button")
  116.  
  117.     local PreviousPosition
  118.     local CurrentState
  119.  
  120.     local p = SkipButton:FindFirstChild("Prompt")
  121.     if p then
  122.         p:Destroy()
  123.     end
  124.  
  125.     SkipButton.MouseButton1Down:Connect(function()
  126.         if not CurrentState then
  127.             SkipButton.Text = "Go back"
  128.             PreviousPosition = Goto.End()
  129.             CurrentState = true
  130.         else
  131.             CurrentState = false
  132.             Goto.Position(PreviousPosition)
  133.             SkipButton.Text = "Skip To End"
  134.         end
  135.     end)
  136.  
  137.     warn("ENDED LOADING: MakeSkipToEndFree")
  138. end
  139.  
  140. local Wins
  141. local DidWin
  142.  
  143. if Configurations["Complete phases automatically"] then
  144.     warn("STARTED: CompletePhasesAutomatically")
  145.     ensure("Goto")
  146.  
  147.     CoreGui = game:GetService("StarterGui")
  148.     Wins = LeaderStats:WaitForChild("Wins")
  149.     DidWin = Values:WaitForChild("DidWin")
  150.  
  151.     local Enabled = true;
  152.  
  153.     local function Complete(Won: boolean?)
  154.         if not Enabled then
  155.             return
  156.         end
  157.  
  158.         if Won then
  159.             CoreGui:SetCore("SendNotification", {
  160.                 Title = "Match completed;" ;
  161.                 Text = "The script applied its effectiveness and won it for you :)";
  162.                 Duration = 50;
  163.             })
  164.         else
  165.             while DidWin.Value == false do
  166.                 Goto.End()
  167.                 task.wait(1)
  168.             end
  169.         end
  170.     end
  171.  
  172.     if DidWin.Value == false then
  173.         Complete(false)
  174.     else
  175.         CoreGui:SetCore("SendNotification", {
  176.             Title = "You've won already.";
  177.             Text = "The script has just started running, but you have already won this match.";
  178.             Duration = 20;
  179.         })
  180.     end
  181.  
  182.     DidWin:GetPropertyChangedSignal("Value"):Connect(Complete)
  183.  
  184.     if not Configurations.DestroyButtons.ResetWinners and Configurations["Replace reset winners button as toggle to phase automatic completion"] then
  185.         local Toggle = UI.getFromLeftFrame("Reset")
  186.         local ToggleButton = Toggle.Button
  187.  
  188.         do
  189.             local ResetPrompt = Toggle:FindFirstChild("Prompt")
  190.             if ResetPrompt then
  191.                 ResetPrompt:Destroy()
  192.             end
  193.         end
  194.  
  195.         Toggle.Name = "Toggle_AutomaticPhaseCompletion"
  196.         ToggleButton.Text = "Automatic Phase Completion"
  197.         local Colors = {
  198.             Enabled = Color3.fromRGB(111, 255, 101);
  199.             Disabled = Color3.fromRGB(255, 85, 85)
  200.         };
  201.  
  202.         ToggleButton.MouseButton1Down:Connect(function()
  203.             if not Enabled then
  204.                 Enabled = true;
  205.                 ToggleButton.BackgroundColor3 = Colors.Enabled
  206.             else
  207.                 Enabled = false;
  208.                 ToggleButton.BackgroundColor3 = Colors.Disabled
  209.             end
  210.         end)
  211.     end
  212.     warn("ENDED LOADING: CompletePhasesAutomatically")
  213. end
  214.  
  215. if Configurations.DestroyButtons then
  216.     warn("STARTED: DestroyButtons")
  217.     ensure("Goto")
  218.  
  219.     local LeftFrameButtons = UI.ValidLeftFrameButtons
  220.     for bName, i in pairs(LeftFrameButtons) do
  221.         if Configurations.DestroyButtons[i] == true then
  222.             UI.asyncDeleteFromLeftFrame(bName)
  223.         end
  224.     end
  225.     warn("ENDED LOADING: DestroyButtons")
  226. end
  227.  
  228. CoreGui:SetCore("SendNotification", {
  229.     Title = "Script";
  230.     Text = "Loading success;";
  231.     Duration = 10;
  232. })
  233.  
  234. warn("LOADED SUCCESSFULLY!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement