local marketplaceservice, startergui = game:GetService("MarketplaceService"), game:GetService("StarterGui")
if identifyexecutor and identifyexecutor():find("Delta") then
task.spawn(pcall, startergui.SetCore, startergui, "SendNotification", {
Title = "Built-In Feature Detected",
Text = "Please Enable 'Disable Robux' In Delta Settings",
Duration = 15
})
if script then script:Destroy() end
return
end
task.spawn(pcall, startergui.SetCore, startergui, "SendNotification", {
Title = "How To Disable The Script",
Text = "Rejoin If You Didnt Add The Script In Auto-Execute Folder",
Duration = 10,
Button1 = "Understood."
})
local blockedmethods = {
["PromptPurchase"] = true,
["PromptProductPurchase"] = true,
["PromptGamePassPurchase"] = true,
["PromptBundlePurchase"] = true,
["PromptNativePurchase"] = true,
["PromptThirdPartyPurchase"] = true,
["PromptSubscriptionPurchase"] = true,
["PromptPremiumPurchase"] = true
}
local function notify(method)
task.spawn(pcall, startergui.SetCore, startergui, "SendNotification", {
Title = "Purchase Detected",
Text = method .. " Blocked",
Duration = 5
})
end
local oldnamecall
oldnamecall = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
local method = getnamecallmethod()
if rawequal(self, marketplaceservice) and blockedmethods[method] then
notify(method)
return
end
return oldnamecall(self, ...)
end))
local oldindex
oldindex = hookmetamethod(game, "__index", newcclosure(function(self, key)
if rawequal(self, marketplaceservice) and blockedmethods[key] then
notify(key)
return newcclosure(function() return end)
end
return oldindex(self, key)
end))
Comments
No comments yet
Be the first to share your thoughts!