TextButton or Button
Text1.Text =(game:GetService(“MarketplaceService”):GetProductInfo(GamePassID, Enum.InfoType.GamePass).Description
give you all Description Katana
(name of gamePass)
Text1.Text =(game:GetService(“MarketplaceService”):GetProductInfo(GamePassID, Enum.InfoType.GamePass).Name
Katana
(name of gamePass)
PriceInRobux is numberValue online
Text2.Text =(game:GetService(“MarketplaceService”):GetProductInfo(GamePassID, Enum.InfoType.GamePass).PriceInRobux . .“R$”
100R$
image button or image normal
Icon.Image = “rbxassetid://”…
(game:GetService(“MarketplaceService”):GetProductInfo(GamePassID, Enum.InfoType.GamePass).IconImageAssetId
icon to gamepass into game
online use for template until repeat same thing on market game and need use module
local Config= {}
config.GamePass = {
[“Katana”] ={435343};
[“GUN”] ={453385};
}return Config
local script
local T=
Service[2]:GetProductInfo(GamePassID, Enum.InfoType.GamePass)
for i,v inpairs (config.Config)do
local Template = sript.Template:Clone()
Template.GamePassID.Value = V[1]
Template.Name.Text= T.Name
Template.Name.Text=T.Description
Template.Name.Text= T.PriceInRobux . .“R$”
Template.Name.IMage= “rbxassetid://”. .T.IconImageAssetId
Template.ButonMouseButton1Click:Connect(function()
Service[2]:PromptGamePassPurchase(Service[1].LocalPlayer,T.ProductId.Value)
end