----------SCRIPTED BY ZEDARKALIEN----------


local button = script.Parent
local player = game.Players.LocalPlayer
local GamepassId = script.Parent.GamepassId

button.MouseButton1Click:connect(function()
	if player then
		game:GetService("MarketplaceService"):PromptGamePassPurchase(player, GamepassId.Value)
	end
end)
