Advertisement
Upscalefanatic3

[FE] (Roblox) Player Chat Cloner Script

Apr 14th, 2020
842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. -- Press "Delete" to stop cloning peoples messages.
  2.  
  3. local target = "(part of) target name"
  4.  
  5. -- Put someones Username above this between " "
  6.  
  7. local enabled=true
  8. for i,v in pairs(game.Players:GetPlayers()) do
  9. v.Chatted:Connect(function(message)
  10. if string.find(v.Name, target) then
  11. if enabled then
  12. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
  13. end
  14. end
  15. end)
  16. end
  17. game.Players.PlayerAdded:Connect(function(player)
  18. player.Chatted:Connect(function(message)
  19. if string.find(player.Name, target) then
  20. if enabled then
  21. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
  22. end
  23. end
  24. end)
  25. end)
  26. game.UserInputService.InputBegan:Connect(function(k)
  27. if k.KeyCode==Enum.KeyCode.Delete then enabled=false end
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement