The_Samuelson_Studio

Announcement System Button!

Nov 12th, 2023
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. --[CHECK THE NEW VIDEO!]--
  2. -- https://www.youtube.com/shorts/5i4rim9rM5U --
  3.  
  4. -- TextLabel Text --
  5.  
  6. <font color="rgb(90,161,127)"> Open </font> Announcement Panel
  7.  
  8.  
  9.  
  10. -- Local Script --
  11.  
  12. local button = script.Parent
  13. local frame = script.Parent.Parent:WaitForChild("MainFrame")
  14.  
  15. button.MouseButton1Click:Connect(function()
  16.     if frame.Visible == true then
  17.         frame.Visible = false
  18.         button.Text = [[<font color="rgb(90,161,127)"> Open </font> Announcement Panel]]
  19.     else
  20.         frame.Visible = true
  21.         button.Text = [[<font color="rgb(234,67,67)"> Close </font> Announcement Panel]]
  22.     end
  23. end)
  24.  
Advertisement
Add Comment
Please, Sign In to add comment