Advertisement
AgentVK

UNFILTER SHIT

Dec 19th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  2.  
  3. filteredMessages [objText] = filtered;
  4. filteredMessages [filtered] = filtered;
  5.  
  6. obj.Text = filtered;
  7. end;
  8. end;
  9. end;
  10. end;
  11.  
  12. local newInstance = Instance.new;
  13. Instance = {
  14. new = function (class, parent)
  15. local obj = newInstance (class, parent);
  16.  
  17. if (pcall (function()return obj.Text;end)) then
  18. obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  19. obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  20. end;
  21.  
  22. return obj;
  23. end;
  24. };
  25. end;
  26. local filteredMessages = { ['___'] = '___' };
  27. local onPropertyChanged = function (obj)
  28. if (obj:isDescendantOf (workspace)) then
  29. local objText = obj.Text;
  30.  
  31. if (objText ~= '___' and objText:find '(%S)') then
  32. if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  33. obj.Text = filteredMessages [objText];
  34. elseif (not filteredMessages [objText]) then
  35. obj.Text = '___';
  36.  
  37. local filtered =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement