Advertisement
GabryelHere9

spy chats script

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