Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Script0 = Instance.new("Script")
- Script0.Name = "anti Hashtags"
- Script0.Parent = mas
- table.insert(cors,sandbox(Script0,function()
- -- say any bad word with no block words(#) :)))) --
- local testmessage = 'Hail Cow Cow!'
- local Color = "Green"
- 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 == "Blue" or Color == "Enum.ChatColor.Blue" or Color == "Enum.DialogTone.Neutral" or Color == "Neutral" then
- return Enum.ChatColor.Blue
- elseif Color == "Green" or Color == "Enum.ChatColor.Green" or Color == "Enum.DialogTone.Friendly" or Color == "Friendly" then
- return Enum.ChatColor.Green
- elseif Color == "Red" or Color == "Enum.ChatColor.Red" or Color == "Enum.DialogTone.Enemy" or Color == "Enemy" then
- return Enum.ChatColor.Red
- else return Enum.ChatColor.Blue
- end
- end
- function onChatted(msg, recipient, speaker)
- Chat(speaker,testmessage)
- end
- function onPlayerEntered(newPlayer)
- newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
- end
- game.Players.ChildAdded:connect(onPlayerEntered)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement