source code for DITB V2 OP Script
Key Required

source code for DITB V2 OP Script

[⛱️] Death in the Boxhampter2444hampter2444 930 views 1.7K executesUpdated Mar 6, 2026
5.0/ 5(2 votes)
20100% Positive
Lua Script•100 lines (3135 chars)
local GroupService = game:GetService("GroupService")

-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
--          Show group join prompt FIRST (client-side friendly)
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
local GROUP_ID = 982908848

local success, result = pcall(function()
    return GroupService:PromptJoinAsync(GROUP_ID)
end)

if success then
    if result == Enum.GroupMembershipStatus.Joined then
        print("Player just joined the group!")
    elseif result == Enum.GroupMembershipStatus.JoinRequestPending then
        print("Join request sent")
    elseif result == Enum.GroupMembershipStatus.AlreadyMember then
        print("Already a member")
    else
        print("Did not join or not eligible")
    end
else
    warn("Group prompt failed: ", result)
end

-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
--                     Original script starts here
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

--// Configuration
local GROUP_ID = 982908848          -- ← Your group ID
local KICK_MESSAGE = "You must be in our group to execute this sorry twin!"
local CHECK_INTERVAL = 30            -- Seconds between re-checks (fresh, uncached)

--// Services
local Players = game:GetService("Players")
local GroupService = game:GetService("GroupService")

--// Fresh (uncached) group check - detects leaves INSTANTLY
local function checkGroup(player)
    local success, groups = pcall(function()
        return GroupService:GetGroupsAsync(player.UserId)
    end)
    
    if not success then
        warn("Fresh group check failed for " .. player.Name .. " - API error")
        return false  -- Kick on API fail (safe default)
    end
    
    for _, groupInfo in ipairs(groups) do
        if groupInfo.Id == GROUP_ID then
            return true
        end
    end
    
    return false
end

--// Verify player ONCE: check + load hub if good
local function verifyPlayer(player)
    if checkGroup(player) then
        print("Hello world - " .. player.Name .. " is in the group!")
        loadstring(game:HttpGet("https://raw.githubusercontent.com/losermancracker-byte/scripts/refs/heads/main/DITB%20V2"))()
        return true
    else
        player:Kick(KICK_MESSAGE)
        return false
    end
end

--// Monitor loop: re-check every X seconds, kick if left group
local function monitorPlayer(player)
    while player.Parent do
        task.wait(CHECK_INTERVAL)
        if player.Parent and not checkGroup(player) then
            warn(player.Name .. " was kicked - left group " .. GROUP_ID)
            player:Kick(KICK_MESSAGE)
            break
        end
    end
end

--// New players
Players.PlayerAdded:Connect(function(player)
    task.wait(1.5)  -- Wait for reliable initial check
    
    if verifyPlayer(player) then
        task.spawn(monitorPlayer, player)
    end
end)

--// Existing players (when script loads)
for _, player in Players:GetPlayers() do
    task.spawn(function()
        task.wait(2)  -- Slightly longer for existing
        if verifyPlayer(player) then
            task.spawn(monitorPlayer, player)
        end
    end)
end

Features & Information

"xenlover" stole and skidded this script and when you execute it, it shows a popup saying you have to join his shitty group to use the script so i cracked it this is the ORIGINAL script i have not modified it or changed it at all!

Community Comments (7)

thewiiufanthewiiufanMar 6, 2026

rat

Replying to @thewiiufan
hampter2444hampter2444Mar 6, 2026

@thewiiufan its not even my script some guy was using it to promote his group even when he skidded it and it was obfuscated so i cracked it dummy

Replying to @thewiiufan
hampter2444hampter2444Mar 6, 2026

also you can literally check all the code yourself its not a rat anyway i checked it all myself to be sure before posting it

Replying to @hampter2444
thewiiufanthewiiufanMar 6, 2026

@hampter2444 it was a joke I was talking about the rat in the image lol

Replying to @thewiiufan
hampter2444hampter2444Mar 6, 2026

@thewiiufan oh mb

Replying to @thewiiufan
hampter2444hampter2444Mar 6, 2026

also im gonna post the script without the *ty group thing he did

Replying to @thewiiufan
hampter2444hampter2444Mar 6, 2026

@thewiiufan the full source code is up and i put a little message in the script to say dont use xenlovers scripts

More Scripts for [⛱️] Death in the Box