0% found this document useful (0 votes)
1K views10 pages

OP Script

The document contains a Lua script for a Roblox game called 'Break In 2', featuring various functionalities such as dialogue management, teleportation hooks, and player interaction with game elements. It includes options for customizing gameplay, like toggling features, unlocking endings, and managing inventory items. The script also integrates a user interface for players to interact with these features seamlessly.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views10 pages

OP Script

The document contains a Lua script for a Roblox game called 'Break In 2', featuring various functionalities such as dialogue management, teleportation hooks, and player interaction with game elements. It includes options for customizing gameplay, like toggling features, unlocking endings, and managing inventory items. The script also integrates a user interface for players to interact with these features seamlessly.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--[Link]

com/games/13864661000/Break-In-2-Story

local localplr = [Link]


local localname = [Link]
local killbadguys = false
local energynochange = false
local addspaces = false
local rainbow = false
local antitp = false
local color
local t = 10
local toc = {}
local dialoguebox =
game:GetService("Players").[Link].D
ialogue
local boxes = {}
boxes["Red"] = "[Link]
boxes["Blue"] = "rbxassetid://3174861400"
boxes["Yellow"] = "[Link]
local textanimmodule =
require(game:GetService("Players").[Link])
local dialogueopen = game:GetService("TweenService"):Create(dialoguebox,
[Link](0.4), {
Size = [Link], ImageTransparency = 0
})
local dialogueclose = game:GetService("TweenService"):Create(dialoguebox,
[Link](0.4), {
ImageTransparency = 1
})
function openframe(box)
if box then
[Link] = box
end
[Link] = [Link](0.4, 0, 0.1, 0)
[Link] = 1
[Link] = true
dialogueopen:Play()
wait([Link])
end
function closeframe()
dialogueclose:Play()
for i,v in pairs([Link]:GetDescendants()) do
if v:IsA("TextLabel") then
[Link] = false
end
end
wait([Link])
end
function dodialogue(dialoguesettings)
local text = [Link]
local font = [Link]
local timebeforeclose = [Link]
local box = [Link]
if not font then
font = "GothamBold"
end
if not timebeforeclose then
timebeforeclose = 1
end
if not box then
box = boxes["Blue"]
end
openframe(box)
local textanim =
textanimmodule:New(game:GetService("Players").[Link].
[Link],text,{
Font = font
})
textanim:Animate(true)
wait(timebeforeclose)
closeframe()
end
local dialoguesettings = {}
local rainbowify2 = [Link]("ColorCorrectionEffect",[Link])
[Link] = false
[Link] = "rainbowlol"

local tpservice = game:GetService("TeleportService")


local tphook,tphook2
tphook =
hookfunction([Link],newcclosure(function(placeid)
print("hookfunction detected tpplace")
if antitp then
if [Link] then
[Link]:PivotTo([Link]:GetPlayers()
[[Link](1,#[Link]:GetPlayers())].Character:GetPivot())
end
print("lol tried to tp get trolled (tpplace)")
return nil
else
print("uhm its tping you might leave")
print(placeid)
tphook(service,placeid)
end
end))
tphook2 = hookfunction([Link],newcclosure(function(service,placeid)
print("hookfunction detected tp")
if antitp then
if [Link] then
[Link]:PivotTo([Link]:GetPlayers()
[[Link](1,#[Link]:GetPlayers())].Character:GetPivot())
end
print("lol tried to tp get trolled (tp)")
return nil
else
print("uhm its tping you might leave")
print(placeid)
tphook2(service,placeid)
end
end))

local lib = loadstring(game:HttpGet("[Link]


Lib-18698"))()
[Link]("Break In 2 (BY 2AREYOUMENTAL110)")
local maintab = [Link]("Main")
local lobbytab = [Link]("Lobby")
local dialoguetab = [Link]("Dialogue (only you can see)")
local cutscenetab = [Link]("Cutscene (only you can see)")
[Link] = function()
killbadguys = false
energynochange = false
antitp = false
rainbowify2:Destroy()
rainbow = false
for i,v in pairs(toc) do
v:Disconnect()
end
end

--------------[Link]
local BlockedRemotes = {
"IceSlip",
"Energy"
}
local Events = {
Fire = true,
Invoke = true,
FireServer = true,
InvokeServer = true,
}

local gameMeta = getrawmetatable(game)


local psuedoEnv = {
["__index"] = gameMeta.__index,
["__namecall"] = gameMeta.__namecall;
}
setreadonly(gameMeta, false)
gameMeta.__index, gameMeta.__namecall = newcclosure(function(self, index, ...)
if Events[index] then
for i,v in pairs(BlockedRemotes) do
if v == [Link] and not checkcaller() and energynochange then return
nil end
end
end
return psuedoEnv.__index(self, index, ...)
end)
--------------[Link]
function dobadguy(badguy)
[Link](function()
if not badguy then return nil end
repeat
wait()
if killbadguys then
[Link]:FireServer(badguy,64.8,4)
end
until not badguy or not [Link]
end)
end

[Link]("Rainbowness (more lower = faster)",maintab,function(txt)


local num = tonumber(txt)
if num then
t = num
end
end)
local rainbowtoggle = [Link]("Rainbowify",maintab,function(bool)
rainbow = bool
if not bool then
lib.updateallcolors_secret([Link])
end
end)
[Link] = 0
local rainbowtoggle2 = [Link]("Rainbowify (2)",maintab,function(bool)
[Link] = bool
end)
[Link] = 0

[Link]("Unlock Evil Ending (CLICK WHEN BRUTE HAS CROWBAR OUT, YOU NEED
DREAM TEAM AND MAXED STATS)",maintab,function()
fireclickdetector([Link])
for i=1,3 do
for i,v in pairs([Link]:GetChildren()) do
if v:IsA("Tool") then
[Link] = [Link]
end
end
[Link]:FireServer("GoldPizza")
local pizza = [Link]:WaitForChild("GoldPizza",[Link])
[Link] = [Link]
[Link]:FireServer(localplr,localplr)
wait(.1)
end
fireclickdetector([Link])
end)

[Link]("Unlock Secret Ending",maintab,function()


[Link]:FireServer("CrowbarCollected")
[Link]:FireServer("HatCollected",true)
[Link]:FireServer("MaskCollected")
end)

[Link]("Heal All (don't spam or it'll break)",maintab,function()


for i,v in pairs([Link]:GetChildren()) do
if v:IsA("Tool") then
[Link] = [Link]
end
end
[Link]:FireServer("GoldenApple")
local apple = [Link]:WaitForChild("GoldenApple",[Link])
[Link] = [Link]
[Link]:FireServer()
end)

[Link]("Get Dream Team",maintab,function()


-- uncle pete
if [Link]:FindFirstChild("Import6") then
for i,v in pairs([Link]:GetChildren()) do
if v:IsA("Tool") then
[Link] = [Link]
end
end
[Link]:FireServer("Key")
local key = [Link]:WaitForChild("Key",[Link])
[Link] = [Link]
[Link]:FireServer()
end
-- twado
if [Link] == false then

[Link]:FireServer(game:GetService("Players").LocalPla
[Link])
[Link]:FireServer([Link](-
196.73828125, 26.994741439819336, -790.2998657226562, 0.05909018963575363, 0,
0.9982526302337646, 0, 1, 0, -0.9982526302337646, 0, 0.05909018963575363))
[Link]:FireServer()
end
-- detective bradley
if [Link]:FindFirstChild("sleepingParticle") then
[Link]:FireServer("Louise")
local rat = [Link]:WaitForChild("Louise",[Link])
[Link] = [Link]
[Link]:FireServer(2)
end
end)

[Link]("Avoid Humiliation Badge",maintab,function()


[Link]:FireServer()
end)

[Link]("Reformed Badge",maintab,function()
[Link]:FireServer("Quest","GoldPizza")
[Link]:FireServer("HatCollected",true)
end)

[Link]("Anti-Teleport To Lobby",maintab,function(bool)
antitp = bool
end)

[Link]("join a game?? idek",maintab,function()


game:GetService("TeleportService"):Teleport(13864667823)
end)

[Link]("Food",maintab)
local food =
{"Apple","Cookie","Chips","Pizza","Lollipop","GoldenApple","GoldPizza","RainbowPizz
a","RainbowPizzaBox"}

for i,v in pairs(food) do


[Link]("Get "..v,maintab,function()
if v ~= "GoldenApple" and v ~= "RainbowPizzaBox" then
[Link]:FireServer(v)
else

[Link]:FireServer(3,v,"Food",localname,1)
end
end)
end

[Link]("Drinks",maintab)
local drinks = {"BloxyCola","ExpiredBloxyCola","Bottle","Battery"}

for i,v in pairs(drinks) do


[Link]("Get "..v,maintab,function()
[Link]:FireServer(v)
end)
end

[Link]("Weapons",maintab)
local weapons =
{"Crowbar1","Crowbar2","Crowbar3","Bat","Pitchfork","Hammer","Wrench","Broom"}

for i,v in pairs(weapons) do


[Link]("Get "..v,maintab,function()
[Link]:FireServer(3,v,"Weapons",localname,1)
end)
end

[Link]("Other",maintab)

[Link]("Energy Doesn't Change",maintab,function(bool)


energynochange = bool
end)

[Link]("Phone Gui",maintab,function(bool)
[Link] = bool
end)

[Link]("Get Golden Armor (only 1)",maintab,function()


[Link]:FireServer(1,"Armor",localname,150)

[Link]:FireServer(3,"Armor2","Armor",localname,1)
end)

[Link]("Get Medkit",maintab,function()
[Link]:FireServer("MedKit")
end)

[Link]("Get Louise",maintab,function()
[Link]:FireServer("Louise")
end)

[Link]("Get Phone",maintab,function()
[Link]:FireServer("Phone")
end)

[Link]("Get Book",maintab,function()
[Link]:FireServer("Book")
end)

[Link]("Get Ladder",maintab,function()
[Link]:FireServer("Ladder")
end)

[Link]("Get Key For Uncle Pete",maintab,function()


[Link]:FireServer("Key")
end)

[Link]("Get Gold Key For Rainbow Pizza",maintab,function()


[Link]:FireServer("GoldKey")
end)

[Link]("Auto Kill Bad Guys",maintab,function(bool)


killbadguys = bool
end)

for i,v in pairs(workspace:GetChildren()) do


if [Link] == "BadGuys" or [Link] == "BadGuysFront" or [Link] == "BadGuysBoss"
then
[Link](toc,[Link]:Connect(function(badguy)
dobadguy(badguy)
end))
end
end

if workspace:FindFirstChild("PizzaBossAlec") then
dobadguy([Link]:FindFirstChild("BadGuyPizza"))
end

[Link](toc,[Link]:Connect(function(badguy)
if [Link] == "BadGuyBrute" then
dobadguy(badguy)
end
end))

[Link]("Get Hacker Role",lobbytab,function()

game:GetService("ReplicatedStorage").[Link]:FireServer("Phone",tr
ue,false)
end)

[Link]("Get Nerd Role",lobbytab,function()

game:GetService("ReplicatedStorage").[Link]:FireServer("Book",tru
e,false)
end)

function docolor(color)
local dialoguetoggle
dialoguetoggle = [Link](color.." Color",dialoguetab,function(bool)
if bool then
dialoguetoggle.BackgroundColor3 = [Link](0,255,0)
if [Link] then
[Link] =
[Link].."<Color="..color..">"
else
[Link] = "<Color="..color..">"
end
else
dialoguetoggle.BackgroundColor3 = [Link](255,0,0)
if [Link] then
[Link] = [Link].."<Color=/>"
else
[Link] = "<Color=/>"
end
end
end,true)
[Link] = 0.5
dialoguetoggle.BackgroundColor3 = [Link](255,0,0)
end

function doanimstyle(animstyle)
local dialoguetoggle
dialoguetoggle = [Link](animstyle.." Animate
Style",dialoguetab,function(bool)
if bool then
dialoguetoggle.BackgroundColor3 = [Link](0,255,0)
if [Link] then
[Link] =
[Link].."<AnimateStyle="..animstyle..">"
else
[Link] = "<AnimateStyle="..animstyle..">"
end
else
dialoguetoggle.BackgroundColor3 = [Link](255,0,0)
if [Link] then
[Link] = [Link].."<AnimateStyle=/>"
else
[Link] = "<AnimateStyle=/>"
end
end
end,true)
[Link] = 0.5
dialoguetoggle.BackgroundColor3 = [Link](255,0,0)
end

[Link]("Colors",dialoguetab)

docolor("Red")
docolor("Green")
docolor("Yellow")
docolor("Blue")
docolor("Blue2")

[Link]("Animate Styles",dialoguetab)

doanimstyle("Rainbow")
doanimstyle("Wiggle")
doanimstyle("Swing")
doanimstyle("Spin")

[Link]("Dialogue And Text",dialoguetab)

[Link]("Dialogue Text",dialoguetab,function(text)
if addspaces then
text = text.." "
end
if [Link] then
[Link] = [Link]..text
else
[Link] = text
end
end)

[Link]("How Much To Wait Until Text Continues",dialoguetab,function(txt)


local num = tonumber(txt)
if num then
if [Link] then
[Link] =
[Link].."<AnimateYield="..txt..">"
else
[Link] = "<AnimateYield="..txt..">"
end
end
end)

[Link]("Add Spaces After Text",dialoguetab,function(bool)


addspaces = bool
end)

[Link]("Box Color",dialoguetab,{"Red","Blue","Yellow"},function(color)
local box = boxes[color]
[Link] = box
end)

[Link]("Font",dialoguetab,{"GothamBold","Garamond"},function(font)
[Link] = font
end)

local dialoguefontbox = [Link]("Font (but you type


it)",dialoguetab,function(txt)
for i,v in pairs([Link]:GetEnumItems()) do
if [Link] == txt then
[Link] = [Link]
end
end
end)
[Link](toc,[Link]:Connect(function()
local txt = [Link]
local found = false
for i,v in pairs([Link]:GetEnumItems()) do
if [Link] == txt then
[Link] = v
found = true
end
end
if not found then
[Link] = [Link]
end
end))

[Link]("How Much To Wait Until Text Disappears",dialoguetab,function(txt)


num = tonumber(txt)
if num then
[Link] = num
end
end)

[Link]("Copy Dialogue",dialoguetab,function()
if [Link] then
setclipboard([Link])
end
end)

[Link]("Clear Text",dialoguetab,function()
[Link] = ""
end)

[Link]("Do Dialogue",dialoguetab,function()
dodialogue(dialoguesettings)
end)
[Link](toc,game:GetService("RunService").RenderStepped:Connect(function()
color = [Link](tick() % t/t,1,1)
rainbowtoggle.TextColor3 = color
rainbowtoggle2.TextColor3 = color
[Link] = color
if rainbow then
rainbowtoggle.TextColor3 = [Link](1-tick() % t/t,1,1)
rainbowtoggle2.TextColor3 = [Link](1-tick() % t/t,1,1)
lib.updateallcolors_secret(color)
end
if antitp and [Link]:FindFirstChild("Respawn") then
if [Link]:FindFirstChild("Background") then
[Link] = false
end
if [Link]:FindFirstChild("Respawn") and
[Link]:FindFirstChild("Respawn") then
[Link] = false
end
end
end))
while wait(1) do
for i,v in pairs([Link]:GetChildren()) do
[Link] = false
end
end

You might also like