✓ Accepted answer
First of all, your gamepass Id can't possibly be 0 so you have to change the second argument to your actual gamepass' id.
game:GetService("MarketplaceService"):PromptGamePassPurchase(player, 6832709)
Also, you would need to use the MouseButton1Click Event. So overall your script should look like this:
local SegwayButton = game.Workspace.UpdateBoard.Sign1.SurfaceGui:FindFirstChild("SegwayButton")
SegwayButton.MouseButton1Click:connect(function()
local player = game.Players.LocalPlayer
game:GetService("MarketplaceService"):PromptGamePassPurchase(player,6832709)
end)
Make sure it's a local script that is parented to starter pack since
"LocalScripts can use surface UI's too, its just they won't replicate." - TheeDeathCaster
So there ya go, glad I could be of any help :)
2 comments
After you left, I re edited my answer, it should work now, just re read all of it