plr = game.Players. -- Missing
local button = script.Parent
local marketplaceService = game:GetService("MarketplaceService")
script.Parent.MouseButton1Click:Connect(function()
MarketplaceService:PromptGamePassPurchase(plr, 6255391)
end)
So this is the script I used to create a ScreenGui TextButton that offers a gamepass, but I'm a noob, so I need the member of "Players" that represents all of the players in the server. If someone could please tell me what that would be, I would greatly appreciate it, thanks!
