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

How do you... With gamepass scripts?

Asked by 9 years ago

How do I give a person a weapon(AK-47) if they buy the gamepass?

1 answer

Log in to vote
0
Answered by 9 years ago
game:GetService("Players").PlayerAdded:connect(function(p)
if game:GetService("MarketPlaceService"):PlayerOwnsAsset(0000000, p) -- put in product ID
then
-- code here
end
end)
Ad

Answer this question