Advertisement
Lee_everitt

Pobv

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