Advertisement
2AreYouMental110

Break In 2 (GET EVIL ENDING)

Sep 16th, 2023 (edited)
6,267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.64 KB | None | 0 0
  1. --https://www.roblox.com/games/13864661000/Break-In-2-Story
  2.  
  3. local localplr = game.Players.LocalPlayer
  4. local localname = localplr.Name
  5. local killbadguys = false
  6. local energynochange = false
  7. local addspaces = false
  8. local rainbow = false
  9. local antitp = false
  10. local color
  11. local t = 10
  12. local toc = {}
  13. local dialoguebox = game:GetService("Players").LocalPlayer.PlayerGui.DialogueHolder.Dialogue.Dialogue.Dialogue
  14. local boxes = {}
  15. boxes["Red"] = "http://www.roblox.com/asset/?id=4614567084"
  16. boxes["Blue"] = "rbxassetid://3174861400"
  17. boxes["Yellow"] = "http://www.roblox.com/asset/?id=4691689807"
  18. local textanimmodule = require(game:GetService("Players").LocalPlayer.PlayerScripts.RichText)
  19. local dialogueopen = game:GetService("TweenService"):Create(dialoguebox, TweenInfo.new(0.4), {
  20.     Size = dialoguebox.Size, ImageTransparency = 0
  21. })
  22. local dialogueclose = game:GetService("TweenService"):Create(dialoguebox, TweenInfo.new(0.4), {
  23.     ImageTransparency = 1
  24. })
  25. function openframe(box)
  26.     if box then
  27.         dialoguebox.Image = box
  28.     end
  29.     dialoguebox.Size = UDim2.new(0.4, 0, 0.1, 0)
  30.     dialoguebox.ImageTransparency = 1
  31.     dialoguebox.Visible = true
  32.     dialogueopen:Play()
  33.     wait(dialogueopen.TweenInfo.Time)
  34. end
  35. function closeframe()
  36.     dialogueclose:Play()
  37.     for i,v in pairs(dialoguebox.TextFrame:GetDescendants()) do
  38.         if v:IsA("TextLabel") then
  39.             v.Visible = false
  40.         end
  41.     end
  42.     wait(dialogueclose.TweenInfo.Time)
  43. end
  44. function dodialogue(dialoguesettings)
  45.     local text = dialoguesettings.text
  46.     local font = dialoguesettings.font
  47.     local timebeforeclose = dialoguesettings.timebeforeclose
  48.     local box = dialoguesettings.box
  49.     if not font then
  50.         font = "GothamBold"
  51.     end
  52.     if not timebeforeclose then
  53.         timebeforeclose = 1
  54.     end
  55.     if not box then
  56.         box = boxes["Blue"]
  57.     end
  58.     openframe(box)
  59.     local textanim = textanimmodule:New(game:GetService("Players").LocalPlayer.PlayerGui.DialogueHolder.Dialogue.Dialogue.Dialogue.TextFrame,text,{
  60.         Font = font
  61.     })
  62.     textanim:Animate(true)
  63.     wait(timebeforeclose)
  64.     closeframe()
  65. end
  66. local dialoguesettings = {}
  67. local rainbowify2 = Instance.new("ColorCorrectionEffect",game.Lighting)
  68. rainbowify2.Enabled = false
  69. rainbowify2.Name = "rainbowlol"
  70.  
  71. local tpservice = game:GetService("TeleportService")
  72. local tphook,tphook2
  73. tphook = hookfunction(tpservice.TeleportToPlaceInstance,newcclosure(function(placeid)
  74.     print("hookfunction detected tpplace")
  75.     if antitp then
  76.         if localplr.Character then
  77.             localplr.Character:PivotTo(game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())].Character:GetPivot())
  78.         end
  79.         print("lol tried to tp get trolled (tpplace)")
  80.         return nil
  81.     else
  82.         print("uhm its tping you might leave")
  83.         print(placeid)
  84.         tphook(service,placeid)
  85.     end
  86. end))
  87. tphook2 = hookfunction(tpservice.Teleport,newcclosure(function(service,placeid)
  88.     print("hookfunction detected tp")
  89.     if antitp then
  90.         if localplr.Character then
  91.             localplr.Character:PivotTo(game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())].Character:GetPivot())
  92.         end
  93.         print("lol tried to tp get trolled (tp)")
  94.         return nil
  95.     else
  96.         print("uhm its tping you might leave")
  97.         print(placeid)
  98.         tphook2(service,placeid)
  99.     end
  100. end))
  101.  
  102. local lib = loadstring(game:HttpGet("https://pastebin.com/raw/A2Wf3WVh"))()
  103. lib.makelib("Break In 2 (BY 2AREYOUMENTAL110)")
  104. local maintab = lib.maketab("Main")
  105. local lobbytab = lib.maketab("Lobby")
  106. local dialoguetab = lib.maketab("Dialogue (only you can see)")
  107. local cutscenetab = lib.maketab("Cutscene (only you can see)")
  108.  
  109. lib.ondestroyedfunc = function()
  110.     killbadguys = false
  111.     energynochange = false
  112.     antitp = false
  113.     rainbowify2:Destroy()
  114.     rainbow = false
  115.     for i,v in pairs(toc) do
  116.         v:Disconnect()
  117.     end
  118. end
  119.  
  120. --------------https://v3rmillion.net/showthread.php?tid=1090447---------
  121. local BlockedRemotes = {
  122.     "IceSlip",
  123.     "Energy"
  124. }
  125. local Events = {
  126.     Fire = true,
  127.     Invoke = true,
  128.     FireServer = true,
  129.     InvokeServer = true,
  130. }
  131.  
  132. local gameMeta = getrawmetatable(game)
  133. local psuedoEnv = {
  134.     ["__index"] = gameMeta.__index,
  135.     ["__namecall"] = gameMeta.__namecall;
  136. }
  137. setreadonly(gameMeta, false)
  138. gameMeta.__index, gameMeta.__namecall = newcclosure(function(self, index, ...)
  139.     if Events[index] then
  140.         for i,v in pairs(BlockedRemotes) do
  141.             if v == self.Name and not checkcaller() and energynochange then return nil end
  142.         end
  143.     end
  144.     return psuedoEnv.__index(self, index, ...)
  145. end)
  146. --------------https://v3rmillion.net/showthread.php?tid=1090447---------
  147. function dobadguy(badguy)
  148.     task.spawn(function()
  149.         if not badguy then return nil end
  150.         repeat
  151.             wait()
  152.             if killbadguys then
  153.                 game.ReplicatedStorage.Events.HitBadguy:FireServer(badguy,64.8,4)
  154.             end
  155.         until not badguy or not badguy.Parent
  156.     end)
  157. end
  158.  
  159. lib.maketextbox("Rainbowness (more lower = faster)",maintab,function(txt)
  160.     local num = tonumber(txt)
  161.     if num then
  162.         t = num
  163.     end
  164. end)
  165. local rainbowtoggle = lib.maketoggle("Rainbowify",maintab,function(bool)
  166.     rainbow = bool
  167.     if not bool then
  168.         lib.updateallcolors_secret(lib.bgcolor)
  169.     end
  170. end)
  171. rainbowtoggle.TextStrokeTransparency = 0
  172. local rainbowtoggle2 = lib.maketoggle("Rainbowify (2)",maintab,function(bool)
  173.     rainbowify2.Enabled = bool
  174. end)
  175. rainbowtoggle2.TextStrokeTransparency = 0
  176.  
  177. lib.makebutton("Unlock Evil Ending (CLICK WHEN BRUTE HAS CROWBAR OUT, YOU NEED DREAM TEAM AND MAXED STATS)",maintab,function()
  178.     fireclickdetector(workspace.CrowbarBrute.ClickDetector)
  179.     for i=1,3 do
  180.         for i,v in pairs(localplr.Character:GetChildren()) do
  181.             if v:IsA("Tool") then
  182.                 v.Parent = localplr.Backpack
  183.             end
  184.         end
  185.         game.ReplicatedStorage.Events.GiveTool:FireServer("GoldPizza")
  186.         local pizza = localplr.Backpack:WaitForChild("GoldPizza",math.huge)
  187.         pizza.Parent = localplr.Character
  188.         game.ReplicatedStorage.Events.CurePlayer:FireServer(localplr,localplr)
  189.         wait(.1)
  190.     end
  191.     fireclickdetector(workspace.CrowbarBrute.ClickDetector)
  192. end)
  193.  
  194. lib.makebutton("Unlock Secret Ending",maintab,function()
  195.     game.ReplicatedStorage.Events.LarryEndingEvent:FireServer("CrowbarCollected")
  196.     game.ReplicatedStorage.Events.LarryEndingEvent:FireServer("HatCollected",true)
  197.     game.ReplicatedStorage.Events.LarryEndingEvent:FireServer("MaskCollected")
  198. end)
  199.  
  200. lib.makebutton("Heal All (don't spam or it'll break)",maintab,function()
  201.     for i,v in pairs(localplr.Character:GetChildren()) do
  202.         if v:IsA("Tool") then
  203.             v.Parent = localplr.Backpack
  204.         end
  205.     end
  206.     game.ReplicatedStorage.Events.GiveTool:FireServer("GoldenApple")
  207.     local apple = localplr.Backpack:WaitForChild("GoldenApple",math.huge)
  208.     apple.Parent = localplr.Character
  209.     game.ReplicatedStorage.Events.HealTheNoobs:FireServer()
  210. end)
  211.  
  212. lib.makebutton("Get Dream Team",maintab,function()
  213.     -- uncle pete
  214.     if workspace.TheHouse.Jail:FindFirstChild("Import6") then
  215.         for i,v in pairs(localplr.Character:GetChildren()) do
  216.             if v:IsA("Tool") then
  217.                 v.Parent = localplr.Backpack
  218.             end
  219.         end
  220.         game.ReplicatedStorage.Events.GiveTool:FireServer("Key")
  221.         local key = localplr.Backpack:WaitForChild("Key",math.huge)
  222.         key.Parent = localplr.Character
  223.         game.ReplicatedStorage.Events.KeyEvent:FireServer()
  224.     end
  225.     -- twado
  226.     if workspace.TheHouse.SmallCat.Head.BillboardGui.Enabled == false then
  227.         game.ReplicatedStorage.Events.CatFed:FireServer(game:GetService("Players").LocalPlayer.PlayerGui.Phone.Phone.Phone.Background.InfoScreen.DogInfo.TwadoWants.Text)
  228.         game.ReplicatedStorage.Events.CatUpdate:FireServer(CFrame.new(-196.73828125, 26.994741439819336, -790.2998657226562, 0.05909018963575363, 0, 0.9982526302337646, 0, 1, 0, -0.9982526302337646, 0, 0.05909018963575363))
  229.         game.ReplicatedStorage.Events.GoingInside:FireServer()
  230.     end
  231.     -- detective bradley
  232.     if workspace.AgentBeans.Head:FindFirstChild("sleepingParticle") then
  233.         game.ReplicatedStorage.Events.GiveTool:FireServer("Louise")
  234.         local rat = localplr.Backpack:WaitForChild("Louise",math.huge)
  235.         rat.Parent = localplr.Character
  236.         game.ReplicatedStorage.Events.LouiseGive:FireServer(2)
  237.     end
  238. end)
  239.  
  240. lib.makebutton("Avoid Humiliation Badge",maintab,function()
  241.     game.ReplicatedStorage.Events.AvoidHumiliation:FireServer()
  242. end)
  243.  
  244. lib.makebutton("Reformed Badge",maintab,function()
  245.     game.ReplicatedStorage.Events.PunchableQuest:FireServer("Quest","GoldPizza")
  246.     game.ReplicatedStorage.Events.LarryEndingEvent:FireServer("HatCollected",true)
  247. end)
  248.  
  249. lib.maketoggle("Anti-Teleport To Lobby",maintab,function(bool)
  250.     antitp = bool
  251. end)
  252.  
  253. lib.makebutton("join a game?? idek",maintab,function()
  254.     game:GetService("TeleportService"):Teleport(13864667823)
  255. end)
  256.  
  257. lib.makelabel("Food",maintab)
  258. local food = {"Apple","Cookie","Chips","Pizza","Lollipop","GoldenApple","GoldPizza","RainbowPizza","RainbowPizzaBox"}
  259.  
  260. for i,v in pairs(food) do
  261.     lib.makebutton("Get "..v,maintab,function()
  262.         if v ~= "GoldenApple" and v ~= "RainbowPizzaBox" then
  263.             game.ReplicatedStorage.Events.GiveTool:FireServer(v)
  264.         else
  265.             game.ReplicatedStorage.Events.Vending:FireServer(3,v,"Food",localname,1)
  266.         end
  267.     end)
  268. end
  269.  
  270. lib.makelabel("Drinks",maintab)
  271. local drinks = {"BloxyCola","ExpiredBloxyCola","Bottle","Battery"}
  272.  
  273. for i,v in pairs(drinks) do
  274.     lib.makebutton("Get "..v,maintab,function()
  275.         game.ReplicatedStorage.Events.GiveTool:FireServer(v)
  276.     end)
  277. end
  278.  
  279. lib.makelabel("Weapons",maintab)
  280. local weapons = {"Crowbar1","Crowbar2","Crowbar3","Bat","Pitchfork","Hammer","Wrench","Broom"}
  281.  
  282. for i,v in pairs(weapons) do
  283.     lib.makebutton("Get "..v,maintab,function()
  284.         game.ReplicatedStorage.Events.Vending:FireServer(3,v,"Weapons",localname,1)
  285.     end)
  286. end
  287.  
  288. lib.makelabel("Other",maintab)
  289.  
  290. lib.maketoggle("Energy Doesn't Change",maintab,function(bool)
  291.     energynochange = bool
  292. end)
  293.  
  294. lib.maketoggle("Phone Gui",maintab,function(bool)
  295.     localplr.PlayerGui.Phone.Phone.Phone.Background.Visible = bool
  296. end)
  297.  
  298. lib.makebutton("Get Golden Armor (only 1)",maintab,function()
  299.     game.ReplicatedStorage.Events.Vending:FireServer(1,"Armor",localname,150)
  300.     game.ReplicatedStorage.Events.Vending:FireServer(3,"Armor2","Armor",localname,1)
  301. end)
  302.  
  303. lib.makebutton("Get Medkit",maintab,function()
  304.     game.ReplicatedStorage.Events.GiveTool:FireServer("MedKit")
  305. end)
  306.  
  307. lib.makebutton("Get Louise",maintab,function()
  308.     game.ReplicatedStorage.Events.GiveTool:FireServer("Louise")
  309. end)
  310.  
  311. lib.makebutton("Get Phone",maintab,function()
  312.     game.ReplicatedStorage.Events.GiveTool:FireServer("Phone")
  313. end)
  314.  
  315. lib.makebutton("Get Book",maintab,function()
  316.     game.ReplicatedStorage.Events.GiveTool:FireServer("Book")
  317. end)
  318.  
  319. lib.makebutton("Get Ladder",maintab,function()
  320.     game.ReplicatedStorage.Events.GiveTool:FireServer("Ladder")
  321. end)
  322.  
  323. lib.makebutton("Get Key For Uncle Pete",maintab,function()
  324.     game.ReplicatedStorage.Events.GiveTool:FireServer("Key")
  325. end)
  326.  
  327. lib.makebutton("Get Gold Key For Rainbow Pizza",maintab,function()
  328.     game.ReplicatedStorage.Events.GiveTool:FireServer("GoldKey")
  329. end)
  330.  
  331. lib.maketoggle("Auto Kill Bad Guys",maintab,function(bool)
  332.     killbadguys = bool
  333. end)
  334.  
  335. for i,v in pairs(workspace:GetChildren()) do
  336.     if v.Name == "BadGuys" or v.Name == "BadGuysFront" or v.Name == "BadGuysBoss" then
  337.         table.insert(toc,v.ChildAdded:Connect(function(badguy)
  338.             dobadguy(badguy)
  339.         end))
  340.     end
  341. end
  342.  
  343. if workspace:FindFirstChild("PizzaBossAlec") then
  344.     dobadguy(workspace.PizzaBossAlec:FindFirstChild("BadGuyPizza"))
  345. end
  346.  
  347. table.insert(toc,workspace.ChildAdded:Connect(function(badguy)
  348.     if badguy.Name == "BadGuyBrute" then
  349.         dobadguy(badguy)
  350.     end
  351. end))
  352.  
  353. lib.makebutton("Get Hacker Role",lobbytab,function()
  354.     game:GetService("ReplicatedStorage").RemoteEvents.OutsideRole:FireServer("Phone",true,false)
  355. end)
  356.  
  357. lib.makebutton("Get Nerd Role",lobbytab,function()
  358.     game:GetService("ReplicatedStorage").RemoteEvents.OutsideRole:FireServer("Book",true,false)
  359. end)
  360.  
  361. function docolor(color)
  362.     local dialoguetoggle
  363.     dialoguetoggle = lib.maketoggle(color.." Color",dialoguetab,function(bool)
  364.         if bool then
  365.             dialoguetoggle.BackgroundColor3 = Color3.fromRGB(0,255,0)
  366.             if dialoguesettings.text then
  367.                 dialoguesettings.text = dialoguesettings.text.."<Color="..color..">"
  368.             else
  369.                 dialoguesettings.text = "<Color="..color..">"
  370.             end
  371.         else
  372.             dialoguetoggle.BackgroundColor3 = Color3.fromRGB(255,0,0)
  373.             if dialoguesettings.text then
  374.                 dialoguesettings.text = dialoguesettings.text.."<Color=/>"
  375.             else
  376.                 dialoguesettings.text = "<Color=/>"
  377.             end
  378.         end
  379.     end,true)
  380.     dialoguetoggle.BackgroundTransparency = 0.5
  381.     dialoguetoggle.BackgroundColor3 = Color3.fromRGB(255,0,0)
  382. end
  383.  
  384. function doanimstyle(animstyle)
  385.     local dialoguetoggle
  386.     dialoguetoggle = lib.maketoggle(animstyle.." Animate Style",dialoguetab,function(bool)
  387.         if bool then
  388.             dialoguetoggle.BackgroundColor3 = Color3.fromRGB(0,255,0)
  389.             if dialoguesettings.text then
  390.                 dialoguesettings.text = dialoguesettings.text.."<AnimateStyle="..animstyle..">"
  391.             else
  392.                 dialoguesettings.text = "<AnimateStyle="..animstyle..">"
  393.             end
  394.         else
  395.             dialoguetoggle.BackgroundColor3 = Color3.fromRGB(255,0,0)
  396.             if dialoguesettings.text then
  397.                 dialoguesettings.text = dialoguesettings.text.."<AnimateStyle=/>"
  398.             else
  399.                 dialoguesettings.text = "<AnimateStyle=/>"
  400.             end
  401.         end
  402.     end,true)
  403.     dialoguetoggle.BackgroundTransparency = 0.5
  404.     dialoguetoggle.BackgroundColor3 = Color3.fromRGB(255,0,0)
  405. end
  406.  
  407. lib.makelabel("Colors",dialoguetab)
  408.  
  409. docolor("Red")
  410. docolor("Green")
  411. docolor("Yellow")
  412. docolor("Blue")
  413. docolor("Blue2")
  414.  
  415. lib.makelabel("Animate Styles",dialoguetab)
  416.  
  417. doanimstyle("Rainbow")
  418. doanimstyle("Wiggle")
  419. doanimstyle("Swing")
  420. doanimstyle("Spin")
  421.  
  422. lib.makelabel("Dialogue And Text",dialoguetab)
  423.  
  424. lib.maketextbox("Dialogue Text",dialoguetab,function(text)
  425.     if addspaces then
  426.         text = text.." "
  427.     end
  428.     if dialoguesettings.text then
  429.         dialoguesettings.text = dialoguesettings.text..text
  430.     else
  431.         dialoguesettings.text = text
  432.     end
  433. end)
  434.  
  435. lib.maketextbox("How Much To Wait Until Text Continues",dialoguetab,function(txt)
  436.     local num = tonumber(txt)
  437.     if num then
  438.         if dialoguesettings.text then
  439.             dialoguesettings.text = dialoguesettings.text.."<AnimateYield="..txt..">"
  440.         else
  441.             dialoguesettings.text = "<AnimateYield="..txt..">"
  442.         end
  443.     end
  444. end)
  445.  
  446. lib.maketoggle("Add Spaces After Text",dialoguetab,function(bool)
  447.     addspaces = bool
  448. end)
  449.  
  450. lib.makedropdown("Box Color",dialoguetab,{"Red","Blue","Yellow"},function(color)
  451.     local box = boxes[color]
  452.     dialoguesettings.box = box
  453. end)
  454.  
  455. lib.makedropdown("Font",dialoguetab,{"GothamBold","Garamond"},function(font)
  456.     dialoguesettings.font = font
  457. end)
  458.  
  459. local dialoguefontbox = lib.maketextbox("Font (but you type it)",dialoguetab,function(txt)
  460.     for i,v in pairs(Enum.Font:GetEnumItems()) do
  461.         if v.Name == txt then
  462.             dialoguesettings.font = v.Name
  463.         end
  464.     end
  465. end)
  466. table.insert(toc,dialoguefontbox.Changed:Connect(function()
  467.     local txt = dialoguefontbox.Text
  468.     local found = false
  469.     for i,v in pairs(Enum.Font:GetEnumItems()) do
  470.         if v.Name == txt then
  471.             dialoguefontbox.Font = v
  472.             found = true
  473.         end
  474.     end
  475.     if not found then
  476.         dialoguefontbox.Font = Enum.Font.Arial
  477.     end
  478. end))
  479.  
  480. lib.maketextbox("How Much To Wait Until Text Disappears",dialoguetab,function(txt)
  481.     num = tonumber(txt)
  482.     if num then
  483.         dialoguesettings.timebeforeclose = num
  484.     end
  485. end)
  486.  
  487. lib.makebutton("Copy Dialogue",dialoguetab,function()
  488.     if dialoguesettings.text then
  489.         setclipboard(dialoguesettings.text)
  490.     end
  491. end)
  492.  
  493. lib.makebutton("Clear Text",dialoguetab,function()
  494.     dialoguesettings.text = ""
  495. end)
  496.  
  497. lib.makebutton("Do Dialogue",dialoguetab,function()
  498.     dodialogue(dialoguesettings)
  499. end)
  500. table.insert(toc,game:GetService("RunService").RenderStepped:Connect(function()
  501.     color = Color3.fromHSV(tick() % t/t,1,1)
  502.     rainbowtoggle.TextColor3 = color
  503.     rainbowtoggle2.TextColor3 = color
  504.     rainbowify2.TintColor = color
  505.     if rainbow then
  506.         rainbowtoggle.TextColor3 = Color3.fromHSV(1-tick() % t/t,1,1)
  507.         rainbowtoggle2.TextColor3 = Color3.fromHSV(1-tick() % t/t,1,1)
  508.         lib.updateallcolors_secret(color)
  509.     end
  510.     if antitp and localplr.PlayerGui:FindFirstChild("Respawn") then
  511.         if localplr.PlayerGui.Respawn:FindFirstChild("Background") then
  512.             localplr.PlayerGui.Respawn.Background.Visible = false
  513.         end
  514.         if localplr.PlayerGui.Respawn:FindFirstChild("Respawn") and localplr.PlayerGui.Respawn.Respawn:FindFirstChild("Respawn") then
  515.             localplr.PlayerGui.Respawn.Respawn.Respawn.Visible = false
  516.         end
  517.     end
  518. end))
  519. while wait(1) do
  520.     for i,v in pairs(workspace.BadGuyBounds:GetChildren()) do
  521.         v.CanCollide = false
  522.     end
  523. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement