local script:
local button = script.Parent
local player = game.Players.LocalPlayer
local gamepassId = 123456789 -- PUT YOUR GAMEPASS ID HERE
button.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(player, gamepassId)
end)
IMPORTANT:Make sure to put your gamepass ID on the 123456789
Download
0 formats
No download links available.
how to make a gamepass button in roblox studio tutorial | NatokHD