Advertisement
InTesting

Chat log concept

Mar 25th, 2019
1,178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. if game.PlaceId == 843468296 or game.PlaceId == 843495510 or game.PlaceId == 897312463 then
  2.     local pl = game:GetService'Players'
  3.     local plgc = pl:GetChildren()
  4.    
  5.     function newmessage(plyr)
  6.         plyr.Chatted:Connect(function(msg)
  7.             print("[ Message ] "..plyr.Name..": "..msg)
  8.         end)
  9.     end
  10.  
  11.     for _,v in pairs(plgc)do
  12.         newmessage(v)
  13.     end
  14.     pl.PlayerAdded:Connect(newmessage)
  15.  
  16. else
  17.     print'Um no. Not work here sorry bud.'
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement