wamandnj

Untitled

Jun 22nd, 2019
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Bubble chat for full server by Rufus14 (warning it bypasses bad words so dont say anything bad thanks)
  2. plrs = game:GetService("Players")
  3. for i,v in pairs(plrs:GetChildren()) do
  4.         if v.ClassName == "Players" 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 == "Players" 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.                             game.Chat:Chat(v.Character.Head,message,"White")
  22.                         end
  23.                     end
  24.                 end
  25.                 v.Chatted:connect(dochat)
  26.             end
  27.         end
  28.     end
  29. end
Add Comment
Please, Sign In to add comment