``local mps = game:GetService("MarketplaceService")
local gamepass = 3008906
game.Players.PlayersAdded:connect(function(player)
while true do
if mps:UserOwnsGamePassAsync(player.UserId, gamepass)then
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.CarEvents.DMC:FireServer()
COMMUNITY QUESTION
How do I make it so you have to buy a gamepass to buy a car? How do I add a promptpurchase also?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Please properly put your code in a code block