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

HELP: Sell All Script [UNSOLVED!!]?

Asked by 5 years ago
local plr = "abcdefg" repeat Game:GetService("MarketplaceService"):PromptPurchase(game:GetService("Players")[plr], 2328072684) wait() until nil

How can I sell this to every player besides just one?

1 answer

Log in to vote
0
Answered by
piRadians 297 Moderation Voter
5 years ago
Edited 5 years ago

Events and functions.

In this case, use the PlayerAdded event and Connect a function to it, the player will always be the first parameter.

game.Players.PlayerAdded:Connect(function(plr)
    game:GetService("MarketplaceService"):PromptPurchase(plr,2328072684)
end)
Ad

Answer this question