Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- say any bad word with no block words(#) :)))) --
- local Color = "White"
- function Chat(person,text)
- s = game:GetService("Players"):FindFirstChild(person.Name)
- if (s ~= nil) then
- if s.Character ~= nil then
- if s.Character.Head then
- game:GetService("Chat"):Chat(s.Character.Head, text, getColor())
- end
- end
- end
- end
- function getColor()
- if Color == "White" or Color == "Enum.ChatColor.White" or Color == "Enum.DialogTone.Neutral" or Color == "Neutral" then
- return Enum.ChatColor.White
- elseif Color == "White" or Color == "Enum.ChatColor.White" or Color == "Enum.DialogTone.Friendly" or Color == "Friendly" then
- return Enum.ChatColor.White
- elseif Color == "White" or Color == "Enum.ChatColor.White" or Color == "Enum.DialogTone.Enemy" or Color == "Enemy" then
- return Enum.ChatColor.White
- else return Enum.ChatColor.White
- end
- end
- function onChatted(msg, recipient, speaker)
- Chat(speaker,msg)
- end
- function onPlayerEntered(newPlayer)
- newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
- end
- game.Players.ChildAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement