RoScripter

Donate GUI Open/Close Script

Jun 29th, 2020
15,776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local DonateButton = script.Parent
  2. local DonateFrame = script.Parent.Parent.DonateFrame
  3.  
  4. DonateFrame.Visible = false
  5.  
  6. DonateButton.MouseButton1Click:Connect(function()
  7.     if DonateFrame.Visible == false then
  8.         DonateFrame.Visible = true
  9.         DonateButton.Text = "Close"
  10.     else
  11.         DonateFrame.Visible = false
  12.         DonateButton.Text = "Donate"
  13.     end
  14. end)
Add Comment
Please, Sign In to add comment