Advertisement
Guest User

Chat Spy

a guest
Dec 4th, 2021
3,611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. local Players, SGui = game:GetService("Players"), game:GetService("StarterGui");
  2. local Client, NColor3, UD, UD2 = Players.LocalPlayer, Color3.new, UDim.new, UDim2.new
  3.  
  4. local function ChatSpy()
  5. local ChatSpyFrame = Client.PlayerGui.Chat.Frame
  6. ChatSpyFrame.ChatChannelParentFrame.Visible = true
  7. ChatSpyFrame.ChatBarParentFrame.Position = ChatSpyFrame.ChatChannelParentFrame.Position + UD2(UD(), ChatSpyFrame.ChatChannelParentFrame.Size.Y)
  8. end -- brings back chat for games that remove it
  9. ChatSpy()
  10.  
  11. getgenv().ShowHiddenMsg = function(T, C)
  12. SGui:SetCore("ChatMakeSystemMessage", {
  13. Text = T;
  14. Color = C;
  15. })
  16. end
  17. getgenv().Spy = function(Target)
  18. Target.Chatted:Connect(function(Msg)
  19. if string.find(Msg, "/e ") or string.find(Msg, "/w ") or string.find(Msg, "/whisper ") then
  20. ShowHiddenMsg("{SPY}: ".."["..tostring(Target).."]: "..Msg, NColor3(255,255,255)) -- https://www.rapidtables.com/web/color/RGB_Color.html if you want to change the color of the hidden msg's
  21. end
  22. end)
  23. end
  24.  
  25. local GP = Players:GetPlayers()
  26. for i = 1, #GP do
  27. local Plr = GP[i]
  28. if tostring(Plr) then
  29. Spy(Plr)
  30. end
  31. end
  32. Players.PlayerAdded:Connect(function(P)
  33. if tostring(P) then
  34. Spy(P)
  35. end
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement