function createBlackout()
    local player = game.Players.LocalPlayer
    if not player then return end

    local playerGui = player:WaitForChild("PlayerGui")
    if playerGui:FindFirstChild("BlackoutGui") then return end

    local screenGui = Instance.new("ScreenGui")
    screenGui.Name = "BlackoutGui"
    screenGui.IgnoreGuiInset = true
    screenGui.ResetOnSpawn = false
    screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
    screenGui.Parent = playerGui

    local frame = Instance.new("Frame")
    frame.Size = UDim2.new(1, 0, 1, 0)
    frame.Position = UDim2.new(0, 0, 0, 0)
    frame.BackgroundColor3 = Color3.new(0, 0, 0)
    frame.BackgroundTransparency = 0
    frame.BorderSizePixel = 0
    frame.ZIndex = 1
    frame.Parent = screenGui

    local textLabel = Instance.new("TextLabel")
    textLabel.Size = UDim2.new(0.6, 0, 0.1, 0)
    textLabel.Position = UDim2.new(0.2, 0, 0.45, 0)
    textLabel.BackgroundTransparency = 1
    textLabel.Text = "#1 Undetected DKHub"
    textLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
    textLabel.Font = Enum.Font.GothamBold
    textLabel.TextScaled = true
    textLabel.ZIndex = 2
    textLabel.Parent = frame
end

function destroyBlackout()
    local gui = game.Players.LocalPlayer:FindFirstChild("PlayerGui")
    if gui and gui:FindFirstChild("BlackoutGui") then
        gui.BlackoutGui:Destroy()
    end
end


function teleportBypass(x, y, z)
    createBlackout()
    local player = game.Players.LocalPlayer
    local char = player.Character or player.CharacterAdded:Wait()
    local root = char:FindFirstChild("HumanoidRootPart")
    local humanoid = char:FindFirstChild("Humanoid")
    if not root or not humanoid then return end

    local seat
    local targetPosition = Vector3.new(-1487.578369140625, 251.75901794433594, -408.8100891113281)

    for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
        if obj:IsA("Seat") and (obj.Position - targetPosition).Magnitude < 1 then
            seat = obj
            break
        end
    end
    if not seat then
        for _, obj in pairs(workspace["1# Map"].RandomStuff:GetDescendants()) do
            if obj:IsA("Seat") then
                seat = obj
                break
            end
        end
    end

    if seat then
        local originalCFrame = seat.CFrame
        seat.CFrame = root.CFrame
        task.wait(0.6)
        seat:Sit(humanoid)
        task.wait(0.6)
        seat.CFrame = CFrame.new(x, y - 1, z)
        task.wait(0.6)
        humanoid.Sit = false
        humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
        task.wait(1e-27)
        seat.CFrame = CFrame.new(originalCFrame.X, originalCFrame.Y - 100, originalCFrame.Z)
    end
    wait(0.5)
    destroyBlackout()
end


function placeToolInSafe()
    local player = game.Players.LocalPlayer
    local tool = player.Character and player.Character:FindFirstChildOfClass("Tool")
    if not tool then
        Rayfield:Notify({
            Title = "Error",
            Content = "No tool equipped!",
            Duration = 5,
            Image = 4483345998,
        })
        return
    end

    local backpackRemote = game.ReplicatedStorage:FindFirstChild("BackpackRemote")
    local inventory = game.ReplicatedStorage:FindFirstChild("Inventory")
    local safe = workspace["1# Map"]["2 Crosswalks"].Safes:FindFirstChild("Safe")
    if not backpackRemote or not inventory or not safe then return end

    local originalCFrame = player.Character:FindFirstChild("HumanoidRootPart").CFrame
    local safePart = safe:FindFirstChildWhichIsA("BasePart")
    if not safePart then return end

    
    player.Character:FindFirstChildOfClass("Humanoid"):UnequipTools()

    teleportBypass(safePart.Position.X, safePart.Position.Y, safePart.Position.Z)
    task.wait(1)

    
    task.spawn(function()
        backpackRemote:InvokeServer("Store", tool.Name)
    end)
    task.spawn(function()
        inventory:FireServer("Change", tool.Name, "Backpack", safe)
    end)

    wait(2)

    teleportBypass(originalCFrame.X, originalCFrame.Y, originalCFrame.Z)

    Rayfield:Notify({
        Title = "Success",
        Content = "Tool successfully stored in safe!",
        Duration = 5,
        Image = 4483345998,
    })
end


MainTab:CreateButton({
    Name = "Store Equipped Gun in Safe",
    Callback = function()
        placeToolInSafe()
    end,
})

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: