Advertisement
The_Samuelson_Studio

Announcement System Command!

Nov 15th, 2023
745
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. --[CHECK THE NEW VIDEO!]--
  2. -- https://www.youtube.com/shorts/NzdVlax6dZk --
  3.  
  4.  
  5. local cmd = "!openannouncement"
  6. local frame = script.Parent.AnnouncementGui:WaitForChild("MainFrame")
  7. local button = script.Parent.AnnouncementGui:WaitForChild("OpenButton")
  8.  
  9. game.Players.LocalPlayer.Chatted:Connect(function(msg)
  10.     if string.find(msg, cmd) then
  11.         frame.Visible = true
  12.     else
  13.         return
  14.     end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement