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

7 comments
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?
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.
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.
Same, it doesn't seem harmful.
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
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