Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make a game pass gui inside ur game?

Im wondering how to make a gamepass gui for inside your game :)

1 comment

0

You need to learn how to do these things and show your script. Scriptinghelpers isn't a request site.

1 answer

It is pretty simple to be honest

.Once you have a textbutton, place a local script inside with the following code:

local GamepassId = GAMEPASSIDHERE
local Player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
	game:GetService('MarketplaceService'):PromptGamePassPurchase(Player, GamepassId)
end)

Hope this helps.

1 comment

0

You should explain your code, so he understands what's happening.

This discussion is preserved as it was. New answers, comments, and votes are closed.