Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 12

--[[

,,╓╓╖╥╗╗@@@@╢╢╣▒╢@
,,╓╓╖╥╗╗@@@Ñ╢╢╢╢▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒╢
,,,,╓╖╓╥╗╗@@ÑÑ╢╢╣▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╢╢╝╨╜╜╜╜╙╙``
▒▒▒▒▒▒▒
╓╗╗@@@╣╢╢╢╣▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╢╢╝╝╝╜╜╜╜╙"`╙▒▒▒▒
▒▒▒▒▒▒▒
╢▒▒▒▒▒▒▒▒▒▒▒╢╢Ñ╝╝╨╜╜╜╜╨╝╢▒▒▒▒▒▒▒ ▒▒▒╣
▒▒▒▒▒▒▒L
║▒▒▒▒▒▒ ╙▒▒▒▒╣ ▒▒▒▒
║Ñ╣╢╢╢╢▒▒▒▒▒▒▒▒▒▒▒[
]▒▒▒▒▒▒ ╙▒▒▒▒
╔@@@@╣╢╢║╢╣▒▒▒▒ ]▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒[ @╣╣╢╢╢@, ║▒▒▒ ]▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ╙╙"``
║▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒╢ ▒▒▒▒▒▒▒╢ ║▒▒▒U ╜╜╜╙"``
║▒▒▒▒▒[ ]▒▒▒▒▒▒▒▒▒U
║▒▒▒▒▒▒ ║╢╢Ñ╝╝╜
╥▒▒▒▒[ ]▒▒▒▒▒╣ ,,,╓▒▒▒▒▒▒▒▒▒[
║▒▒▒▒▒▒ *╣▒▒▒▒▒║ ,▒▒▒▒▒▒
║▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╢
]▒▒▒▒▒▒U ╙╢▒▒▒
║╢╢▒▒▒▒▒▒▒▒▒▒▒▒ ]▒▒▒▒▒▒╢║╢╝╨▒▒▒▒▒▒▒
▒▒▒▒▒▒[ @@╣╢╢╢╢@ ▒▒▒ ]▒▒▒▒▒▒▒▒▒╢Ñ▒▒▒
║▒▒▒▒▒▒
╢▒▒▒▒▒▒ ║▒▒▒▒▒▒▒[ ║▒▒U `` ║▒▒[
║▒▒▒▒▒▒[
║▒▒▒▒▒▒ ║▒▒╢╢Ñ╝╜
╢▒▒[ ║▒▒╣ ,,,╓╓╖╥╗╣▒▒▒▒▒▒╢
]▒▒▒▒▒▒U
╢▒▒▒╣ ,,,╓╖╖╢▒▒▒@@╢╢╢▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╢

▒▒▒▒▒▒[ ,╓@▒▒▒▒▒▒╗@@╣╣╢╢▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╢╢Ñ╝╝╝╜╙
╢▒▒▒▒▒╢╓╖╥╥╗╗H@@Ñ╣╢╢▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╢╢Ñ╝╝╨╜╜╙╙"``
║▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒╢╢Ñ╝╝╝╨╜╙╙"`` ,,╓╓╥╥╗╗@@
╓╣╣▒▒▒▒▒╣H
╣▒▒▒▒╢ÑÑ╝╝╜╜╙╙"``` ╓╖╥╗╗ ╢╢▒▒║ ║▒▒╢╝╝╝╜╜╙ ]▒▒╣

,╓╖╖╖, ]╢▒▒▒, ║▒▒▒▒@ ▒▒╢▒▒
║▒▒[ ╙▒▒▒╣@@H╗╖
,@▒▒╢Ñ╣▒▒╢╖ ╢▒╢║▒▒ ]▒▒Ü╢▒╗ ║▒[║▒▒ ]▒▒▒╢╣▒▒▒
`╙╨╝╝╣▒▒▒┐
╢▒▒` ╜ ]▒▒[ ║▒▒ ▒▒[ ╣▒╖ ▒▒ ]▒▒[ ▒▒▒ ╓╖,
║▒▒[
]▒▒▒ ╥╗╗H@ ╢▒▒,,,▒▒╢ ▒▒▒ ╙▒▒╗▒╢ ▒▒╣ ╢▒▒╥╥╗╗H@@
╨╢▒▒▒▒▒▒Ñ╜
▒▒▒ ╜╜╙▒▒[ ▒▒╣╢Ñ╝╝╢▒╢ ║▒▒ ╙▒▒▒∩ ╢▒▒ ║╢╢Ñ╝╝╨╜╜╙
╙▒▒╣╖,,╓╣▒▒╢ ║▒▒` ▒▒╢ ╙╝╝ ╙""
╨╣▒▒▒Ñ╜ ╝

Bee Games rbx.lua Framework [2022] - [2023]


Written by OneX - OneX#0989
Developed with a keyboard and pixie dust.
--]]
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------

--------| Library |--------


local _L =
require(game.ReplicatedStorage:WaitForChild('Framework'):WaitForChild('Library'))

--------| Debug |--------


while not _L.Loaded do game:GetService('RunService').Heartbeat:Wait() end

--------| Variables |--------


local BankGui = _L.GUI.Bank
local SettingsGui = BankGui.Container.Settings
local BottomGui = BankGui.Container.Bank.Bottom
local DepositBottomGui = BankGui.Deposit.Bottom
local DebouceThing = false
local BankFunctionAllow = true -- false -- set to true for debuging
local deposit = false
local pets = {}
local diamonds = {}
local buttondebug = 0
local p = Random.new()

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
--------------------------------

-- Main Update Bank Function


local pwease = nil
local owo = 0
function UpdateBank(e)
print('updating bank')
local Save = _L.Save.Get()
if not Save then
return
end
local Bank = BankGui.Container.Bank
local Balance = Bank.Bottom.Balance
local Top = Bank.Top
local Pets = Bank.Pets
local function Process(thing)
local Process = BankGui.Container.Bank.Processing
if thing then
if not pwease then

else
if pwease then
pwease()
pwease = nil
Process.Visible = false
Pets.Visible = true
end
return
end
else
if pwease then
pwease()
pwease = nil
Process.Visible = false
Pets.Visible = true
end
return
end
pwease = _L.GIF.Create(Process.GIF, { 100, 100 }, { 5, 6 }, 28, 0.65,
true)
Process.Visible = true
Bank.NoPets.Visible = false
Pets.Visible = false
end
if e ~= owo then
--Process(true)
owo = e
--Top.PetsAm.Text = ''
--Balance.Amount.Text = ''
Bank.Pets.CanvasPosition = Vector2.new()
end
if e then

end
if not BankFunctionAllow then
for o, x in ipairs(Pets:GetChildren()) do
if x:GetAttribute('PetId') then
x:Destroy()
end
end
return
end
SwitchWindow('Bank')
UpdateSide()
local Search = Bank.Top.Search
local Text = false
if Search.Query.Text ~= '' then
Text = tostring(Search.Query.Text) or nil
end
local thing = 0
local PetStorage = _L.Shared.SortPets(Save.Storage.Pets)
local bruh = #Save.Storage.Pets
for b, a in ipairs(PetStorage) do
local uid = a.uid
local id = _L.Directory.Pets[a.id]
local parent = Pets:FindFirstChild(uid)
if not parent then
thing = thing + 1
if thing % 250 == 0 then
_L.Heatbeat()
end
parent = _L.Assets.UI.Inventory.Pet:Clone()
parent.Name = uid
parent:SetAttribute('PetId', uid)
_L.PetUI.Create(parent, uid, a)
_L.GUIFX.ButtonFX(parent)
parent.Parent = Pets
parent.Activated:Connect(function()
print('withdraw soon')
end)
parent.LayoutOrder = b

Bank.NoPets.Text = 'Bank is empty. Deposit some pets! \


240\159\153\130'
Bank.NoPets.Visible = bruh <= 0
Balance.Amount.Text =
_L.Functions.NumberShorten(Save.Storage.Currency.Diamonds, false)
Top.PetsAm.Text = bruh .. ' Pets'
BankScrolling()
--Process(false)
end
end
end

-- Bank Assets
local BankAssets = _L.Assets.UI.Bank

-- Update side
function UpdateSide()
-- this will only add 'My Bank' atm
local Holder = BankGui.Side.Holder
local owns = true -- for the moment
local p
if buttondebug == 0 then
buttondebug = buttondebug + 1
if owns then
p = BankAssets.Side.MyBank:Clone()
p.LayoutOrder = 2
end
p.Name = 'MyBank'
p.Parent = Holder
_L.GUIFX.ButtonFX(p)
p.Activated:Connect(function()
if not DebouceThing then
DebouceThing = true
_L.Audio.Play({'rbxassetid://8168486176'})
UpdateBank(1)
DebouceThing = false
end
end)
end
end

-- Main Deposit Funtion


function Deposit()
local diamonds_ = 0 < diamonds
local pets_ = 0 < #pets
if deposit then
if BankFunctionAllow then
if not pets_ then
if not diamonds_ then
return
end
end
else
return
end
else
return
end
local text = ''
local s = ''
local s2 = ''
if pets_ then
if diamonds_ then
if 1 < #pets then
s = 's'
else
s = ''
end
text = 'Are you sure you want to deposit ' ..
_L.Functions.Commas(#pets) .. ' Pet' .. s .. ' and' ..
_L.Functions.Commas(diamonds) .. ' Diamonds?'
elseif pets_ then
if 1 < #pets then
s2 = 's'
else
s2 = ''
end
text = 'Are you sure you want to deposit ' ..
_L.Functions.Commas(#pets) .. ' Pet' .. s2 .. '?'
elseif diamonds_ then
text = 'Are you sure you want to deposit ' ..
_L.Functions.Commas(diamonds_) .. ' Diamonds?'
end
elseif pets_ then
if 1 < #pets then
s2 = 's'
else
s2 = ''
end
text = 'Are you sure you want to deposit ' ..
_L.Functions.Commas(#pets) .. ' Pet' .. s2 .. '?'
elseif diamonds_ then
text = 'Are you sure you want to deposit ' ..
_L.Functions.Commas(diamonds_) .. ' Diamonds?'
end
if _L.Message.New(text, true) then
local x, y = _L.Network.Invoke('Bank Deposit', pets, diamonds)
if x then

else
_L.Message.New(y or 'Something went wrong. Try again!')
return
end
else
return
end
_L.Audio.Play('rbxassetid://8168485698', script)
_L.Message.New('\226\156\133 Success!')
deposit = false
UpdateDeposit()
UpdateBank(1)
end

-- Scrolling Of Bank Change Thing


function BankScrolling()
local Pets = BankGui.Container.Bank.Pets
local GridLayout = Pets:FindFirstChildOfClass('UIGridLayout')
local Padding = Pets:FindFirstChildOfClass('UIPadding')
local ResolutionScale = _L.Functions.ResolutionScale()
local Scale = 0
if ResolutionScale <= 0.5 then
Scale = 3
elseif ResolutionScale <= 1 then
Scale = 4
elseif ResolutionScale <= 1.3 then
Scale = 5
else
Scale = 6
end
--[[if grid then
GridLayout.CellPadding = UDim2.new(0, 10, 0, 10)
else
GridLayout.CellPadding = UDim2.new(0, 20, 0, 20)
end
if grid then
Scale = Scale * 2
end]]
local Thing = (Pets.AbsoluteSize.X - Pets.ScrollBarThickness -
Padding.PaddingLeft.Offset - Padding.PaddingRight.Offset) / Scale -
GridLayout.CellPadding.X.Offset
GridLayout.CellSize = UDim2.new(0, Thing, 0, Thing)
GridLayout:ApplyLayout()
--[[if grid then
thing = 55
else
thing = 65
end]]
Pets.CanvasSize = UDim2.new(1, 0, 0, GridLayout.AbsoluteContentSize.Y + 65)
end

-- Main Switch Windows


function SwitchWindow(Window)
if Window == 'Settings' then
SwitchSettingsWindow('Info')
end
for a, b in ipairs(BankGui.Container:GetChildren()) do
if b.ClassName == 'Frame' then
b.Visible = b.Name == Window
end
end
if Window ~= 'Empty' then

else
BankGui.BankTitle.Visible = false
BankGui.Title.Visible = true
return
end
BankGui.BankTitle.Tier.Text = 'Tier ' .. '1' .. ' Bank'
coroutine.wrap(function()
BankGui.BankTitle.Owner.Text = '@' ..
game:GetService('Players').LocalPlayer.Name --
_L.Functions.UserIdToUsername(game:GetService('Players').LocalPlayer.UserId) or
'???'
end)()
BankGui.BankTitle.Visible = true
BankGui.Title.Visible = false
end

-- Function Settings Switch Windows


function SwitchSettingsWindow(Window)
for c, d in ipairs(SettingsGui:GetChildren()) do
if d.ClassName ~= 'Frame' then
if d.ClassName == 'ScrollingFrame' then
d.Visible = Window == d.Name
end
else
d.Visible = Window == d.Name
end
end
end

-- Update Setting Upgrades


function UpdateUpgrades()
local UpgradesGui = SettingsGui.Upgrades
local PlayerTierData = _L.Directory.Banks[1]
local NextTierData = _L.Directory.Banks[1 + 1]
local MaxTier = not NextTierData
UpgradesGui.CostFrame.isMax.Visible = MaxTier
UpgradesGui.CostFrame.Cost.Visible = not MaxTier
UpgradesGui.CostFrame.Currency.Visible = not MaxTier
UpgradesGui.Buttons.Visible = not MaxTier
UpgradesGui.Info.Current.Tier.Text = 'Tier ' .. PlayerTierData.Tier
UpgradesGui.Info.Current.Title.Text = PlayerTierData.Title
if not MaxTier then
UpgradesGui.Info.New.Tier.Text = 'Tier ' .. NextTierData.Tier
UpgradesGui.Info.New.Title.Text = NextTierData.Title
UpgradesGui.CostFrame.Cost.Text =
_L.Functions.NumberShorten(NextTierData.Cost, false)
if NextTierData.ProductId ~= 0 then
UpgradesGui.Buttons.BuyRobux.Robux.Text =
_L.Functions.Commas(_L.Functions.GetPrice(NextTierData.ProductId, true))
UpgradesGui.Buttons.BuyRobux.Visible = true
else
UpgradesGui.Buttons.BuyRobux.Visible = false
end
else
UpgradesGui.Info.New.Tier.Text = 'Max'
UpgradesGui.Info.New.Title.Text = 'You have the best bank!'
end
for e, f in ipairs(UpgradesGui.Stats:GetChildren()) do
if f.ClassName == 'Frame' then
if f.Name == 'MaxDiamonds' then
f.Old.Amount.Text =
_L.Functions.NumberShorten(PlayerTierData.MaxDiamonds, false) .. ' Cap'
local text1
if MaxTier then
text1 = 'Max'
else
text1 =
_L.Functions.NumberShorten(NextTierData.MaxDiamonds, false) .. ' Cap'
end
f.New.Amount.Text = text1
elseif f.Name == 'Interest' then
local text2
if PlayerTierData.Interest == 0 then
text2 = 'None'
else
text2 = PlayerTierData.Interest .. '%'
end
f.Old.Amount.Text = text2
local text3
if MaxTier then
text3 = 'Max'
else
text3 = NextTierData.Interest .. '%'
end
f.New.Amount.Text = text3
elseif f.Name == 'MaxPlayers' then
f.Old.Amount.Text = PlayerTierData.MaxPlayers .. ' Players'
local text4
if MaxTier then
text4 = 'Max'
else
text4 = NextTierData.MaxPlayers .. ' Players'
end
f.New.Amount.Text = text4
elseif f.Name == 'PetSlots' then
f.Old.Amount.Text = PlayerTierData.PetSlots .. ' Pets'
local text5
if MaxTier then
text5 = 'Max'
else
text5 = NextTierData.PetSlots .. ' Pets'
end
f.New.Amount.Text = text5
end
end
end
end

-- select pet
function SelectPet(tablee, insert)
for b, e in ipairs(tablee) do
if e == insert then
_L.Audio.Play('rbxassetid://7139317909', script,
p:NextNumber(0.95, 1.05), 0.75)
table.remove(tablee, b)
return
end
end
if #tablee < 50 then
_L.Audio.Play('rbxassetid://7139317934', script, p:NextNumber(0.95,
1.05), 0.75)
table.insert(tablee, insert)
end
end

-- Update Bank Deposit


function UpdateDeposit()
BankGui.Container.Visible = not deposit
BankGui.Side.Visible = not deposit
BankGui.Deposit.Visible = deposit
local Save = _L.Save.Get()
if not Save then
return
end
local thingy = 0
local Pets = BankGui.Deposit.Pets
local Diamonds = BankGui.Deposit.Bottom.Diamonds
if not deposit then
pets = {}
Diamonds.Display.Input.Text = ''
for p, x in ipairs(Pets:GetChildren()) do
if x.ClassName == 'Frame' then
x:Destroy()
end
end
return
end
local Search = BankGui.Deposit.Top.Search
local Text = false
thingy = thingy + 1
for b, c in ipairs(_L.Shared.SortPets(Save.Pets)) do
local uid = c.uid
local id = _L.Directory.Pets[c.id]
local parent = Pets:FindFirstChild(uid)
if not c.ntfData then
if not parent then
parent = _L.Assets.UI.Inventory.Pet:Clone()
parent.Name = uid
_L.PetUI.Create(parent, uid)
_L.GUIFX.ButtonFX(parent)
parent.Activated:Connect(function()
if not DebouceThing then
DebouceThing = true
SelectPet(pets, uid)
UpdateDeposit()
DebouceThing = false
end
end)
parent.Visible = true
local bleh = deposit and _L.Functions.SearchArray(pets,
uid)
parent.Equipped.Visible = bleh
parent.LayoutOrder = thingy
parent:SetAttribute('Tick', 1)
parent.Parent = Pets
end
end
end
end
-- Bank Interest
function CollectInterest()
_L.Message.New('This is temporarily disabled!')
end

-- Update Settings
function UpdateSettings()
UpdateUpgrades()
SwitchWindow('Settings')
end

-- Reset Everything
function Reset()
diamonds = 0
pets = {}
BankGui.Deposit.Visible = false
SwitchWindow('Empty')
UpdateBank(1)
end

-- Button Commands
_L.GUIFX.ButtonFX(BankGui.Close)
BankGui.Close.Activated:Connect(function()
BankGui.Gui.Enabled = false
end)

_L.GUIFX.ButtonFX(BottomGui.Settings)
_L.GUIFX.Tooltip(BottomGui.Settings, 'Settings')
BottomGui.Settings.Activated:Connect(function()
if not DebouceThing then
DebouceThing = true
UpdateSettings()
DebouceThing = false
end
end)

_L.GUIFX.ButtonFX(BottomGui.Deposit)
_L.GUIFX.Tooltip(BottomGui.Deposit, 'Deposit')
BottomGui.Deposit.Activated:Connect(function()
if not DebouceThing then
DebouceThing = true
deposit = not deposit
UpdateDeposit()
DebouceThing = false
end
end)

_L.GUIFX.ButtonFX(SettingsGui.Back)
SettingsGui.Back.Activated:Connect(function()
if not DebouceThing then
DebouceThing = true
if not SettingsGui.Info.Visible then
SwitchSettingsWindow('Info')
else
SwitchWindow('Bank')
end
DebouceThing = false
end
end)

_L.GUIFX.ButtonFX(DepositBottomGui.Cancel)
DepositBottomGui.Cancel.Activated:Connect(function()
if not DebouceThing then
DebouceThing = true
local penis = true
--if ioewu >= irfuweioew > 0 then
--rh4weui4h23
--end
if penis then
deposit = false
UpdateDeposit()
end
DebouceThing = false
end
end)

_L.GUIFX.ContentScale(SettingsGui.Info)
_L.GUIFX.ContentScale(SettingsGui.Upgrades)
_L.GUIFX.ContentScale(SettingsGui.Members)
_L.GUIFX.ContentScale(SettingsGui.History)
for g, h in ipairs(SettingsGui.Info:GetChildren()) do
local Button = h:FindFirstChild('Button')
if h.ClassName == 'Frame' and Button then
_L.GUIFX.ButtonFX(Button)
Button.Activated:Connect(function()
if not DebouceThing then
DebouceThing = true
if h.Name == 'Interest' then
CollectInterest()
else
SwitchSettingsWindow(h.Name)
end
DebouceThing = false
end
end)
end
end

-- Pad Gui Setting Things


local function PadGui()
local WorldCmds = _L.WorldCmds.GetMap()
if workspace:FindFirstChild('Interactive') then
if not WorldCmds.Interactive:FindFirstChild('Bank') then
return
end
else
return
end
local Audio = _L.Audio.Play('rbxassetid://8168486040',
WorldCmds.Interactive:FindFirstChild('Bank').PrimaryPart, 1, 0.15, nil, nil, true)
Audio.RollOffMaxDistance = 90
Audio.RollOffMinDistance = 35
end

-- IMPORTANT THINGYS
_L.Signal.Fired('World Changed'):Connect(function()
PadGui()
end)

_L.Signal.Fired('Window Closed'):Connect(function(Window)
if Window == BankGui.Gui then
_L.Variables.BankOpen = false
Reset()
end
end)

_L.Signal.Fired('Stat Changed'):Connect(function(stat)
if stat == "Pets" then
UpdateDeposit()
UpdateBank()
end
end)

_L.Signal.Fired('Window Opened'):Connect(function(Window)
if Window == BankGui.Gui then
_L.Variables.BankOpen = true
UpdateBank()
UpdateDeposit()
UpdateSide()
--SwitchWindow('Empty')
_L.Audio.Play('rbxassetid://8167469855', script, 1, 0.4)
end
end)

You might also like