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 10 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 10 years ago
1game:GetService("Players").PlayerAdded:connect(function(p)
2if game:GetService("MarketPlaceService"):PlayerOwnsAsset(0000000, p) -- put in product ID
3then
4-- code here
5end
6end)
Ad

Answer this question