Advertisement
TheFlamingBlaster

ChatService

May 25th, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. -- note: this must be placed into a modulescript.
  2.  
  3. local name = 'your name'
  4.  
  5. local ChatService = require(game:GetService'ServerScriptService'.ChatServiceRunner.ChatService)
  6.  
  7. ypcall(function()ChatService:AddSpeaker(name) end)
  8.  
  9. ChatService:GetSpeaker(name):JoinChannel("All")
  10.  
  11.  
  12. function hint(m,ext)
  13.     if not ext then
  14.         ext = {}
  15.     end
  16.     ChatService:GetSpeaker(name):SayMessage(m,"All",ext)
  17. end
  18.  
  19. hint('yoho')
  20.  
  21. return {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement