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

how do i make clicking a part bring up a gamepass prompt?

Asked by 3 years ago

i want to use that for a shop in my game but i cant figur out how to do that. can someone help?

1 answer

Log in to vote
0
Answered by
174gb 290 Moderation Voter
3 years ago
Edited 3 years ago

If you are using a click detector then

ClickDetector.MouseClick:Connect(function(player)
    game:GetService("MarketplaceService"):PromptGamePassPurchase(player, ID)
end)
0
i cant get it to wrok (i have 3 things 1. do i put my id where player is 2. where do i put the stuff 3.is there anything other then the click detector needed?) steel_apples 58 — 3y
Ad

Answer this question