Hello everyone! I hope you all understood and enjoyed this video! If you have any suggestions or questions please comment down below and I'll try my best to answer it! Have a great day/night!
Baii! 💗
Script:
----- OPEN/CLOSE BUTTON SCRIPT -----
local Button = script.Parent
Box = script.Parent.Parent.Box
function onClick()
if Box.Visible == false then
Box.Visible = true
Button.Text = "Game Passes"
elseif Box.Visible == true then
Box.Visible = false
Button.Text = "Game Passes"
end
end
Button.MouseButton1Click:connect(onClick)
-------- GAMEPASS TEXT BUTTON LOCAL SCRIPT --------
local GamepassId = 0 ----------- Put your Gamepass ID here instead of 0
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, GamepassId)
end)
#RobloxStudioTutorials