Advertisement
RblxVoidScriptBuild

chat bubble (WIP)

Aug 2nd, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. --Bubble chat for full server by Rufus14 (warning swear filter is very basic)
  2. plrs = game:GetService("Players")
  3. for i,v in pairs(plrs:GetChildren()) do
  4. if v.ClassName == "Player" then
  5. local chatalready = v:findFirstChild("HasChat")
  6. if chatalready then
  7. chatalready:destroy()
  8. end
  9. end
  10. end
  11. local illegaltable = {"gulay"}
  12. while wait(1) do
  13. for i,v in pairs(plrs:GetChildren()) do
  14. if v.ClassName == "Player" then
  15. local chatalready = v:findFirstChild("HasChat")
  16. if not chatalready then
  17. local chatyes = Instance.new("BoolValue", v)
  18. chatyes.Name = "HasChat"
  19. local function dochat(message)
  20. if v.Character then
  21. if v.Character:findFirstChild("Head") then
  22. for i,v in pairs(illegaltable) do
  23. message = string.gsub(string.lower(message), v, "[REDACTED]")
  24. end
  25. game.Chat:Chat(v.Character.Head,message,"White")
  26. end
  27. end
  28. end
  29. v.Chatted:connect(dochat)
  30. end
  31. end
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement