I'm working on a shop GUI and I dont know how to call a function when a GUI has been pressed how would I do so? (IDK why the script is cut off)
function gravcoilpass()
game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, 10022825)
end
--somehow calls the function when GUI is clicked--

1 comment
thanks