Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Hi guys, im not good at scripting, still learning, I was wondering if this script contains a virus?

Asked by
zqqru 1
1 year ago

local MPS = game:GetService("MarketplaceService") local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Products = { [0] = function(receipt,player) ReplicatedStorage.GrappleHook:Clone().Parent = player.Backpack ReplicatedStorage.GrappleHook:Clone().Parent = player.StarterGear end; }

function MPS.ProcessReceipt(receiptinfo) local playerProductKey = receiptinfo.PlayerId..":"..receiptinfo.PurchaseId local plr = game:GetService("Players"):GetPlayerByUserId(receiptinfo.PlayerId)

local handler
for ProductId,func in pairs(Products) do
    if ProductId == receiptinfo.ProductId then
        handler = func break
    end
end

local suc = pcall(handler,receiptinfo,plr)
return Enum.ProductPurchaseDecision.PurchaseGranted

end

1 answer

Log in to vote
0
Answered by 1 year ago

I do not believe so. It just looks like a dev product handler. Or part of one at least. It seems to be a custom receipt handler, so that when someone purchases the dev product from the table, it runs the function provided which looks to just be giving the player the tool they purchased.

1
yeah thought so, it wasnt made by me, i took it from somewhere, it did have a lot of spaces in line 25, like a lot, and at the end of the script it had some weird numbers, so it probably had a virus, but can i use it now? zqqru 1 — 1y
0
In that case, it may be hiding something that you didn't paste in your post. I would avoid using it for now. You can most likely find a usable script on the Roblox devfroum that is virus-free if you do not want to risk it. namespace25 594 — 1y
0
theres no viruses from what you've sent here so if there was anything else inside the script, you could just delete it and paste in whatever was posted here. BulletproofVast 1033 — 1y
0
Same, it doesn't seem harmful. fiddyfiddler 18 — 1y
View all comments (3 more)
0
Hi, sorry for late reply i was sleeping, i double checked and I deleted everything that seemed suspicious, this is all the script has left. local MPS = game:GetService("MarketplaceService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Products = { [1276125695] = function(receipt,player) ReplicatedStorage.GrappleHook:Clone().Parent = player.Backpack ReplicatedStorage.G zqqru 1 — 1y
0
ReplicatedStorage.GrappleHook:Clone().Parent = player.StarterGear end; } function MPS.ProcessReceipt(receiptinfo) local playerProductKey = receiptinfo.PlayerId..":"..receiptinfo.PurchaseId local plr = game:GetService("Players"):GetPlayerByUserId(receiptinfo.PlayerId) local handler for ProductId,func in pairs(Products) do if ProductId == receiptinfo.ProductId then handler = func break zqqru 1 — 1y
0
end end local suc = pcall(handler,receiptinfo,plr) return Enum.ProductPurchaseDecision.PurchaseGranted end zqqru 1 — 1y
Ad

Answer this question