Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
- filteredMessages [objText] = filtered;
- filteredMessages [filtered] = filtered;
- obj.Text = filtered;
- end;
- end;
- end;
- end;
- local newInstance = Instance.new;
- Instance = {
- new = function (class, parent)
- local obj = newInstance (class, parent);
- if (pcall (function()return obj.Text;end)) then
- obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
- obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
- end;
- return obj;
- end;
- };
- end;
- local filteredMessages = { ['___'] = '___' };
- local onPropertyChanged = function (obj)
- if (obj:isDescendantOf (workspace)) then
- local objText = obj.Text;
- if (objText ~= '___' and objText:find '(%S)') then
- if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
- obj.Text = filteredMessages [objText];
- elseif (not filteredMessages [objText]) then
- obj.Text = '___';
- local filtered =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement