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

How to award people things in game if they bought paid access?

Asked by 10 years ago

I have no idea how to give people rewards in game if they bought paid access. I want the person to get 10k civilians in civilian clicker even though I haven't even scripted the scripts that are basically the whole game...

1 answer

Log in to vote
1
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago
game:GetService("Players").PlayerAdded:connect(function(p)
if game:GetService("MarketPlaceService"):PlayerOwnsAsset(0000000, p) then-- Put in product Id.
--Code here.
end
end)
Ad

Answer this question