Bank and jew notifier
Key Required

Bank and jew notifier

Emergency HamburgChrisIsTakenChrisIsTaken 6.1K views 43 executesUpdated Mar 17, 2025
Unrated
00
Lua Script•151 lines (5274 chars)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")

local jewelryUIs = {}

local function createShadow(frame)
    local shadow = Instance.new("ImageLabel")
    shadow.Size = UDim2.new(1, 10, 1, 10)
    shadow.Position = UDim2.new(0, 5, 0, 5)
    shadow.BackgroundTransparency = 1
    shadow.Image = "rbxassetid://6014261993" 
    shadow.ImageColor3 = Color3.new(0, 0, 0)
    shadow.ImageTransparency = 0.5
    shadow.ZIndex = 0
    shadow.Parent = frame
end

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local existingGui = playerGui:FindFirstChild("RobberyNotifier")
if existingGui then
    existingGui:Destroy()
end

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "RobberyNotifier"
screenGui.Parent = playerGui

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 400, 0, 60)
frame.Position = UDim2.new(0, 10, 0, 10)
frame.BackgroundColor3 = Color3.new(30/255, 30/255, 30/255)
frame.BorderSizePixel = 0
frame.Parent = screenGui

local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 8)
uiCorner.Parent = frame

local uiGradient = Instance.new("UIGradient")
uiGradient.Color = ColorSequence.new{
    ColorSequenceKeypoint.new(0, Color3.new(40/255, 40/255, 40/255)),
    ColorSequenceKeypoint.new(1, Color3.new(50/255, 50/255, 50/255))
}
uiGradient.Parent = frame

createShadow(frame) 

local bankLabel = Instance.new("TextLabel")
bankLabel.Size = UDim2.new(1, -20, 1, 0)
bankLabel.Position = UDim2.new(0, 10, 0, 0)
bankLabel.BackgroundTransparency = 1
bankLabel.TextColor3 = Color3.new(255/255, 255/255, 255/255)
bankLabel.Text = "Bank Status: Checking..."
bankLabel.Font = Enum.Font.Gotham
bankLabel.TextSize = 18
bankLabel.Parent = frame

local bankRobbery = Workspace.Robberies:WaitForChild("BankRobbery")
local lightGreen = bankRobbery:WaitForChild("LightGreen")
local lightRed = bankRobbery:WaitForChild("LightRed")
local jewelerRobbery = Workspace.Robberies:WaitForChild("JewelerRobbery")
local robbables = jewelerRobbery:WaitForChild("Robbables")

local bankWasClosed = false

local function checkBankStatus()
    local greenBrickColor = lightGreen.BrickColor
    local redColor = lightRed.Color

    if greenBrickColor == BrickColor.new("Camo") then
        bankLabel.Text = "Bank Status: Open"
        bankLabel.TextColor3 = Color3.new(0/255, 255/255, 0/255)
        if bankWasClosed then
            bankLabel.Text = "Bank Status: Open (Just Opened!)"
            spawn(function()
                wait(3)
                if bankLabel.Text == "Bank Status: Open (Just Opened!)" then
                    bankLabel.Text = "Bank Status: Open"
                end
            end)
        end
        bankWasClosed = false
    else
        bankLabel.Text = "Bank Status: Closed"
        bankLabel.TextColor3 = Color3.new(255/255, 255/255, 0/255)
        bankWasClosed = true
    end
end

local function checkJewelryStatus()
    for model, uiFrame in pairs(jewelryUIs) do
        if model:GetAttribute("Broken") then
            uiFrame:Destroy()
            jewelryUIs[model] = nil
        end
    end

    task.spawn(function() 
        for _, model in pairs(robbables:GetChildren()) do
            if model:IsA("Model") then
                local enabled = model:GetAttribute("Enabled")
                local broken = model:GetAttribute("Broken")
    
                if enabled and not broken and not jewelryUIs[model] then
                    local uiFrame = Instance.new("Frame")
                    uiFrame.Size = UDim2.new(0, 400, 0, 50)
                    uiFrame.Position = UDim2.new(0, 10, 0, 80 + (#jewelryUIs * 60))
                    uiFrame.BackgroundColor3 = Color3.new(40/255, 40/255, 40/255)
                    uiFrame.BorderSizePixel = 0
                    uiFrame.Parent = screenGui
    
                    local uiCorner = Instance.new("UICorner")
                    uiCorner.CornerRadius = UDim.new(0, 8) -- Rounded corners
                    uiCorner.Parent = uiFrame
    
                    local uiGradient = Instance.new("UIGradient")
                    uiGradient.Color = ColorSequence.new{
                        ColorSequenceKeypoint.new(0, Color3.new(50/255, 50/255, 50/255)),
                        ColorSequenceKeypoint.new(1, Color3.new(60/255, 60/255, 60/255))
                    }
                    uiGradient.Parent = uiFrame
    
                    local uiLabel = Instance.new("TextLabel")
                    uiLabel.Size = UDim2.new(1, -20, 1, 0)
                    uiLabel.Position = UDim2.new(0, 10, 0, 0)
                    uiLabel.BackgroundTransparency = 1
                    uiLabel.TextColor3 = Color3.new(0/255, 200/255, 0/255)
                    uiLabel.Text = model.Name .. " (Not Robbed)"
                    uiLabel.Font = Enum.Font.Gotham
                    uiLabel.TextSize = 16
                    uiLabel.Parent = uiFrame
    
                    createShadow(uiFrame)
    
                    jewelryUIs[model] = uiFrame
                end
            end
        end
    end)
end

RunService.Heartbeat:Connect(function()
    checkBankStatus()
    checkJewelryStatus()
end)

checkBankStatus()
checkJewelryStatus()

Features & Information

a ui that shows when the bank or jew opens

Community Comments (2)

ChrisIsTakenChrisIsTakenMar 17, 2025(edited)

🤑🤑

ReplicatedFirstReplicatedFirstMar 17, 2025(edited)

jew detection is epic

More Scripts for Emergency Hamburg