Guest User

ooo

a guest
Oct 23rd, 2019
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Script0 = Instance.new("Script")
  20. Script0.Name = "anti Hashtags"
  21. Script0.Parent = mas
  22. table.insert(cors,sandbox(Script0,function()
  23. -- say any bad word with no block words(#) :)))) --
  24. local testmessage = 'Hail Cow Cow!'
  25. local Color = "Green"
  26.  
  27. function Chat(person,text)
  28. s = game:GetService("Players"):FindFirstChild(person.Name)
  29. if (s ~= nil) then
  30. if s.Character ~= nil then
  31. if s.Character.Head then
  32. game:GetService("Chat"):Chat(s.Character.Head, text, getColor())
  33. end
  34. end
  35. end
  36. end
  37.  
  38. function getColor()
  39. if Color == "Blue" or Color == "Enum.ChatColor.Blue" or Color == "Enum.DialogTone.Neutral" or Color == "Neutral" then
  40. return Enum.ChatColor.Blue
  41. elseif Color == "Green" or Color == "Enum.ChatColor.Green" or Color == "Enum.DialogTone.Friendly" or Color == "Friendly" then
  42. return Enum.ChatColor.Green
  43. elseif Color == "Red" or Color == "Enum.ChatColor.Red" or Color == "Enum.DialogTone.Enemy" or Color == "Enemy" then
  44. return Enum.ChatColor.Red
  45. else return Enum.ChatColor.Blue
  46. end
  47. end
  48.  
  49. function onChatted(msg, recipient, speaker)
  50. Chat(speaker,testmessage)
  51. end
  52.  
  53. function onPlayerEntered(newPlayer)
  54. newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
  55. end
  56.  
  57. game.Players.ChildAdded:connect(onPlayerEntered)
  58. end))
  59. for i,v in pairs(mas:GetChildren()) do
  60. v.Parent = workspace
  61. pcall(function() v:MakeJoints() end)
  62. end
  63. mas:Destroy()
  64. for i,v in pairs(cors) do
  65. spawn(function()
  66. pcall(v)
  67. end)
  68. end
RAW Paste Data