Facebook
From Roblox_game03, 3 Years ago, written in Lua.
This paste is a reply to Local Script from Roblox_game03 - go back
Embed
Viewing differences between Local Script and Re: Local Script
--close--
local plr = game.Players.LocalPlayer
local button = script.Parent
local MarketPlaceService = game:GetService("MarketplaceService")

script.Parent.MouseButton1Click:Connect(function()
        script.Parent.Parent.Visible = false
end)

--open--
script.Parent.MouseButton1Down:Connect(function()
        script.Parent.Parent.Frame.Visible = true
end)
        
        MarketPlaceService:PromptGamePassPurchase(plr,17338923)
        
end)