Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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.

7 comments

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?

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.

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.

0

Same, it doesn't seem harmful.

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

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

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.