The_Samuelson_Studio

Announcement System

Jun 4th, 2022 (edited)
1,547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. --[CHECK THE NEW VIDEO TO SEE HOW THIS SYSTEM WORKS!!]--
  2. -- https://www.youtube.com/watch?v=ujPwRowrOQo --
  3.  
  4. -- Local Script:
  5. script.Parent.MouseButton1Click:Connect(function()
  6. local text = script.Parent.Parent.Text
  7. game.ReplicatedStorage.AnnouncementEvent:FireServer(text)
  8. end)
  9.  
  10. -- Script:
  11. game.ReplicatedStorage.AnnouncementEvent.OnServerEvent:Connect(function(player, text)
  12. script.Parent.Parent.Visible = true
  13. script.Parent.Text = text
  14. wait(2.5)
  15. script.Parent.Parent.Visible = false
  16. end)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment