Advertisement
Rufus14

Global Bubble Chat

Jun 19th, 2019
2,371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.98 KB | None | 0 0
  1. --Bubble chat for full server by Rufus14 (with roblox's ass filter)
  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. while wait(1) do
  12.     for i,v in pairs(plrs:GetChildren()) do
  13.         if v.ClassName == "Player" then
  14.             local chatalready = v:findFirstChild("HasChat")
  15.             if not chatalready then
  16.                 local chatyes = Instance.new("BoolValue", v)
  17.                 chatyes.Name = "HasChat"
  18.                 local function dochat(message)
  19.                     if v.Character then
  20.                         if v.Character:findFirstChild("Head") then
  21.                             if string.sub(message,1,2) == "/e" or string.sub(message,1,2) == "/w" then
  22.                             else
  23.                                 local assfilter = game:GetService("Chat"):FilterStringForBroadcast(message, v)
  24.                                 game.Chat:Chat(v.Character.Head,assfilter,"White")
  25.                             end
  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