How to make a Gamepass Shop GUI
HTML-код
- Опубликовано: 11 сен 2024
- Thank you so much for watching!!!
I hope this video helps you in your roblox studio journey!!!
Full File in my discord server: / discord
Here are the full scripts for everything!!!
Open/Close button script:
local openCloseButton = script.Parent
local shopFrame = openCloseButton.Parent:WaitForChild("ShopFrame")
openCloseButton.MouseButton1Click:Connect(function()
shopFrame.Visible = not shopFrame.Visible
end)
Buy Button Script:
local player = game.Players.LocalPlayer
local marketPlaceService = game:GetService("MarketplaceService")
local gamePassID = 13600173502 -- Replace with your actual Game Pass ID
script.Parent.MouseButton1Click:Connect(function()
marketPlaceService:PromptGamePassPurchase(player, gamePassID)
end)