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

How do you... With gamepass scripts?

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

1 answer

game:GetService("Players").PlayerAdded:connect(function(p)
if game:GetService("MarketPlaceService"):PlayerOwnsAsset(0000000, p) -- put in product ID
then
-- code here
end
end)

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