Advertisement
davidxcgdr

Untitled

Feb 18th, 2021
1,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local all = true;
  2.  
  3. if all then
  4. game.Players.PlayerAdded:Connect(function(i)
  5. i.Chatted:Connect(function(msg,whisper)
  6. if whisper == nil then
  7. local obj = Instance.new('Message', workspace)
  8. game:GetService('Debris'):AddItem(obj,math.random(3,5))
  9. obj.Text = msg
  10. end
  11. end)
  12. end)
  13.  
  14. for i,v in pairs(game.Players:GetPlayers()) do
  15. v.Chatted:Connect(function(msg,whisper)
  16. if whisper == nil then
  17. local obj = Instance.new('Message', workspace)
  18. game:GetService('Debris'):AddItem(obj,math.random(3,5))
  19. obj.Text = msg
  20. end
  21. end)
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement