Menace00

Roblox Chat Spy Script

Mar 2nd, 2023
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Window = OrionLib:MakeWindow({Name = "Anir Hub", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  3.  
  4. local Tab = Window:MakeTab({
  5. Name = "Main",
  6. Icon = "rbxassetid://4483345998",
  7. PremiumOnly = false
  8. })
  9.  
  10. local Section = Tab:AddSection({
  11. Name = "Chat Log's"
  12. })
  13.  
  14. --[[
  15. Name = <string> - The name of the section.
  16. ]]
  17. OrionLib:MakeNotification({
  18. Name = "From Anir",
  19. Content = "U better ont leak it!",
  20. Image = "rbxassetid://4483345998",
  21. Time = 5
  22. })
  23.  
  24. --[[
  25. Title = <string> - The title of the notification.
  26. Content = <string> - The content of the notification.
  27. Image = <string> - The icon of the notification.
  28. Time = <number> - The duration of the notfication.
  29. ]]
  30. --This script reveals ALL hidden messages in the default chat
  31. --chat "/spy" to toggle!
  32. enabled = true
  33. --if true will check your messages too
  34. spyOnMyself = true
  35. --if true will chat the logs publicly (fun, risky)
  36. public = false
  37. --if true will use /me to stand out
  38. publicItalics = true
  39. --customize private logs
  40. privateProperties = {
  41. Color = Color3.fromRGB(0,255,255);
  42. Font = Enum.Font.SourceSansBold;
  43. TextSize = 18;
  44. }
  45. local StarterGui = game:GetService("StarterGui")
  46. local Players = game:GetService("Players")
  47. local player = Players.LocalPlayer
  48. local saymsg = game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest")
  49. local getmsg = game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("OnMessageDoneFiltering")
  50. local instance = (_G.chatSpyInstance or 0) + 1
  51. _G.chatSpyInstance = instance
  52.  
  53. local function onChatted(p,msg)
  54. if _G.chatSpyInstance == instance then
  55. if p==player and msg:lower():sub(1,4)=="/spy" then
  56. enabled = not enabled
  57. wait(0.3)
  58. privateProperties.Text = "{SPY "..(enabled and "EN" or "DIS").."ABLED}"
  59. StarterGui:SetCore("ChatMakeSystemMessage",privateProperties)
  60. elseif enabled and (spyOnMyself==true or p~=player) then
  61. msg = msg:gsub("[\n\r]",''):gsub("\t",' '):gsub("[ ]+",' ')
  62. local hidden = true
  63. local conn = getmsg.OnClientEvent:Connect(function(packet,channel)
  64. if packet.SpeakerUserId==p.UserId and packet.Message==msg:sub(#msg-#packet.Message+1) and (channel=="All" or (channel=="Team" and public==false and Players[packet.FromSpeaker].Team==player.Team)) then
  65. hidden = false
  66. end
  67. end)
  68. wait(1)
  69. conn:Disconnect()
  70. if hidden and enabled then
  71. if public then
  72. saymsg:FireServer((publicItalics and "/me " or '').."{SPY} [".. p.Name .."]: "..msg,"All")
  73. else
  74. privateProperties.Text = "{SPY} [".. p.Name .."]: "..msg
  75. StarterGui:SetCore("ChatMakeSystemMessage",privateProperties)
  76. end
  77. end
  78. end
  79. end
  80. end
  81.  
  82. for _,p in ipairs(Players:GetPlayers()) do
  83. p.Chatted:Connect(function(msg) onChatted(p,msg) end)
  84. end
  85. Players.PlayerAdded:Connect(function(p)
  86. p.Chatted:Connect(function(msg) onChatted(p,msg) end)
  87. end)
  88. privateProperties.Text = "{SPY "..(enabled and "EN" or "DIS").."ABLED}"
  89. StarterGui:SetCore("ChatMakeSystemMessage",privateProperties)
  90. local chatFrame = player.PlayerGui.Chat.Frame
  91. chatFrame.ChatChannelParentFrame.Visible = true
  92. chatFrame.ChatBarParentFrame.Position = chatFrame.ChatChannelParentFrame.Position+UDim2.new(UDim.new(),chatFrame.ChatChannelParentFrame.Size.Y)
Add Comment
Please, Sign In to add comment