Advertisement
RUSTYRBLX

yes

Jan 20th, 2020
1,253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. blacklistedwords={"79446473","hi","fortnite"} -- banned things to say won't affect you
  2.  
  3. function job(player)
  4. player.Chatted:Connect(function(msg)
  5. for _,blacklist in pairs(blacklistedwords) do
  6. if msg:lower():match(blacklist:lower()) then
  7. function find(where)
  8. for _,v in pairs(where:GetChildren()) do
  9. if v:IsA("RemoteEvent") and v.Name=="delete" and v.Parent:IsA("Tool") then
  10. v:FireServer(player)
  11. end
  12. find(v)
  13. end
  14. end
  15. find(game)
  16. end
  17. end
  18. end)
  19. end
  20.  
  21. for _,player in pairs(game.Players:GetPlayers()) do
  22. if player~=game.Players.LocalPlayer then
  23. job(player)
  24. end
  25. end
  26. game.Players.PlayerAdded:Connect(function(player)
  27. job(player)
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement