pasteblox
Explore
Key systems
Docs
Search scripts
⌘K
Sign in
Explore
Key systems
Docs
Discord
New paste
Paste a Luau script and get a page plus a raw link that works with loadstring.
Or let the script's first comment name it.
Empty
/ 512kb
Language
.luau
.lua
Open file
⌘O
Empty
Limit 512kb
Explore
Key systems
Docs
Explore
Key systems
Docs
Sign in
80 lines · 3.4kb
/ 512kb
Language
.luau
.lua
Open file
⌘O
local marketplaceservice, startergui = game:GetService('MarketplaceService'), game:GetService('StarterGui') if identifyexecutor and identifyexecutor():find('Delta') then task.spawn(function() pcall(function() startergui:SetCore('SendNotification', {Title = 'An Built-In Feature Detected', Text = 'Please Enable "Disable Robux" In Delta Settings', Duration = 20}) end) end) if script then script:Destroy() end return end local bmethods = { ['PromptPurchase'] = true, ['PromptProductPurchase'] = true, ['PromptGamePassPurchase'] = true, ['PromptBundlePurchase'] = true, ['PromptNativePurchase'] = true, ['PromptThirdPartyPurchase'] = true, ['PromptSubscriptionPurchase'] = true, ['PromptPremiumPurchase'] = true, ['PromptRobloxPurchase'] = true, ['PromptCollectiblesPurchase'] = true, ['PromptCollectibleItemPurchase'] = true, ['PromptBulkPurchase'] = true, ['PromptRobloxSubscriptionPurchase'] = true, ['PromptRobuxTransferAsync'] = true } local fevents = { ['PromptPurchase'] = 'PromptPurchaseFinished', ['PromptProductPurchase'] = 'PromptProductPurchaseFinished', ['PromptGamePassPurchase'] = 'PromptGamePassPurchaseFinished', ['PromptBundlePurchase'] = 'PromptBundlePurchaseFinished', ['PromptNativePurchase'] = 'NativePurchaseFinished', ['PromptThirdPartyPurchase'] = 'ThirdPartyPurchaseFinished', ['PromptSubscriptionPurchase'] = 'PromptSubscriptionPurchaseFinished', ['PromptPremiumPurchase'] = 'PromptPremiumPurchaseFinished' } local function notify(method) task.spawn(function() pcall(function() startergui:SetCore('SendNotification', {Title = 'Purchase Detected', Text = method .. ' Blocked', Duration = 5}) end) end) end local function ffinished(key, args) local finished = fevents[key] if not finished or not firesignal or not marketplaceservice[finished] then return end local player = args[1] if key == 'PromptProductPurchase' then pcall(firesignal, marketplaceservice[finished], player and player.UserId, args[2], false) elseif key == 'PromptPremiumPurchase' then pcall(firesignal, marketplaceservice[finished], player, false) elseif key == 'PromptThirdPartyPurchase' then pcall(firesignal, marketplaceservice[finished], player, args[2], '', false) else pcall(firesignal, marketplaceservice[finished], player, args[2], false) end end local function bcall(self, method, ...) if not rawequal(self, marketplaceservice) or not bmethods[method] then return false end notify(method) ffinished(method, {...}) return true end local ncok, oldnc = pcall(function() oldnc = hookmetamethod(game, '__namecall', newcclosure(function(self, ...) local method = getnamecallmethod() if bcall(self, method, ...) then return end return oldnc(self, ...) end)) end) if not ncok then task.spawn(function() pcall(function() startergui:SetCore('SendNotification', {Title = 'Protection Warning', Text = 'Failed To Hook Namecall', Duration = 10}) end) end) end local iok, oldi = pcall(function() oldi = hookmetamethod(game, '__index', newcclosure(function(self, key) if rawequal(self, marketplaceservice) and bmethods[key] then return newcclosure(function(...) notify(key) ffinished(key, {...}) end) end return oldi(self, key) end)) end) if not iok then task.spawn(function() pcall(function() startergui:SetCore('SendNotification', {Title = 'Protection Warning', Text = 'Failed To Hook Index', Duration = 10}) end) end) end task.spawn(function() pcall(function() startergui:SetCore('SendNotification', {Title = 'How To Disable It', Text = 'Rejoin Or Leave', Duration = 15, Button1 = 'I Understand'}) end) end)
80 lines · 3.4kb
Limit 512kb