View difference between Paste ID: xSeYkez8 and DhNQduWM
SHOW: | | - or go back to the newest paste.
1-
--Bubble chat for full server by Rufus14 (with roblox's ass filter)
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 == "Player" then
4+
5-
		local chatalready = v:findFirstChild("HasChat")
5+
6-
		if chatalready then
6+
			if chatalready then
7-
			chatalready:destroy()
7+
				chatalready:destroy()
8
			end
9
		end
10-
end
10+
11
while wait(1) do
12
	for i,v in pairs(plrs:GetChildren()) do
13
		if v.ClassName == "TameDoNotClick" 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
21+
							game.Chat:Chat(v.Character.Head,message,"White")
22-
							else
22+
23-
								local assfilter = game:GetService("Chat"):FilterStringForBroadcast(message, v)
23+
24-
								game.Chat:Chat(v.Character.Head,assfilter,"White")
24+
25-
							end
25+
26
			end
27
		end
28
	end
29
end