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

HELP: Sell All Script [UNSOLVED!!]?

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

#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)

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