Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Bruh chat for full server by Rufus14 (haha yes)
  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("HasBruh")
  6.         if chatalready then
  7.             chatalready:destroy()
  8.         end
  9.     end
  10. end
  11. while wait(0.5) do
  12.     if not script:findFirstChild("BruhSoundEffect#2") then
  13.         local bruhsound = Instance.new("Sound", script)
  14.         bruhsound.SoundId = "rbxassetid://3154962208"
  15.         bruhsound.Volume = 20
  16.         bruhsound.Name = "BruhSoundEffect#2"
  17.         bruhsound.PlayOnRemove = true
  18.     end
  19.     for i,v in pairs(plrs:GetChildren()) do
  20.         if v.ClassName == "Player" then
  21.             local chatalready = v:findFirstChild("HasBruh")
  22.             if not chatalready then
  23.                 local chatyes = Instance.new("BoolValue", v)
  24.                 chatyes.Name = "HasBruh"
  25.                 local function dochat(message)
  26.                     if script:FindFirstChild("BruhSoundEffect#2") then
  27.                         if string.sub(message, 1,3) == "bru" then
  28.                             script:FindFirstChild("BruhSoundEffect#2").Volume = 4.5
  29.                             script:FindFirstChild("BruhSoundEffect#2").TimePosition = 0.4
  30.                             script:FindFirstChild("BruhSoundEffect#2"):Play()
  31.                         elseif string.sub(message, 1,3) == "BRU" then
  32.                             script:FindFirstChild("BruhSoundEffect#2").Volume = 10
  33.                             script:FindFirstChild("BruhSoundEffect#2").TimePosition = 0.4
  34.                             script:FindFirstChild("BruhSoundEffect#2"):Play()
  35.                         end
  36.                     end
  37.                 end
  38.                 v.Chatted:connect(dochat)
  39.             end
  40.         end
  41.     end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement