The_Samuelson_Studio

Donation Gui

Jun 4th, 2022 (edited)
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. --Local Script on the Donation Buttons --
  2.  
  3. local productId = 0 -- Put the Developer Product or Gamepass ID
  4. local player = game.Players.LocalPlayer
  5.  
  6. script.Parent.MouseButton1Click:connect(function()
  7.     Game:GetService("MarketplaceService"):PromptPurchase(player, productId)
  8. end)
  9.  
  10.  
  11. -- Open Button Script--
  12.  
  13. script.Parent.MouseButton1Click:Connecct(function()
  14. script.Parent.Parent.Parent.Frame.Visible = true
  15. end)
  16.  
  17.  
  18. -- Close Button Script--
  19.  
  20. script.Parent.MouseButton1Click:Connecct(function()
  21. script.Parent.Parent.Parent.Frame.Visible = false
  22. end)
  23.  
  24.  
  25.  
  26. --YouTube Video https://youtu.be/ftZvRwXuJPM --
Add Comment
Please, Sign In to add comment