robloxboblox

Chat spy

Mar 29th, 2022 (edited)
980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.08 KB | None | 0 0
  1. --https://v3rmillion.net/showthread.php?tid=812995
  2. game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatChannelParentFrame.Visible = true
  3. game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatBarParentFrame.Position = UDim2.new(0, 0, 0, 203)
  4. function showMessage(text, clr)
  5. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  6. Text = text;
  7. Color = clr;
  8. })
  9. end
  10.  
  11. function loadStalk(plr)
  12. plr.Chatted:Connect(function(msg)
  13. warn("--------------------------------")
  14. print("[" .. plr.Name .. "]: " .. msg)
  15. if string.find(msg, "/w ") then
  16. for i=4,1000 do
  17. if string.sub(msg,i,i) == " " then
  18. showMessage("[" .. plr.Name .. " to " .. string.sub(msg,4,i-1) .. "]:" .. string.sub(msg,i), Color3.fromRGB(175, 175, 175))
  19. wait()
  20. break
  21. end
  22. end
  23. end
  24. if string.find(msg, "/whisper ") then
  25. for i=4,1000 do
  26. if string.sub(msg,i,i) == " " then
  27. showMessage("[" .. plr.Name .. " to " .. string.sub(msg,10,i-1) .. "]:" .. string.sub(msg,i), Color3.fromRGB(175, 175, 175))
  28. wait()
  29. break
  30. end
  31. end
  32. end
  33. if string.find(msg, "/e ") then
  34. showMessage("[" .. plr.Name .. "]: " .. msg, Color3.fromRGB(175, 175, 175))
  35. wait()
  36. end
  37. if string.find(msg, "/t ") then
  38. if plr.Team ~= game.Players.LocalPlayer.Team then
  39. for i=4,1000 do
  40. if string.sub(msg,i,i) == " " then
  41. showMessage("[" .. plr.Name .. " to team " .. tostring(plr.Team) .. "]:" .. string.sub(msg,i), Color3.fromRGB(175*plr.Team.TeamColor.r, 175*plr.Team.TeamColor.g, 175*plr.Team.TeamColor.b))
  42. wait()
  43. break
  44. end
  45. end
  46. end
  47. end
  48. if string.find(msg, "/team ") then
  49. if plr.Team ~= game.Players.LocalPlayer.Team then
  50. for i=7,1000 do
  51. if string.sub(msg,i,i) == " " then
  52. showMessage("[" .. plr.Name .. " to team " .. tostring(plr.Team) .. "]:" .. string.sub(msg,i), Color3.fromRGB(175*plr.Team.TeamColor.r, 175*plr.Team.TeamColor.g, 175*plr.Team.TeamColor.b))
  53. wait()
  54. break
  55. end
  56. end
  57. end
  58. end
  59. end)
  60. end
  61.  
  62. local players = game.Players:GetPlayers()
  63. for i=1,#players do
  64. if players[i].Name ~= game.Players.LocalPlayer.Name then
  65. loadStalk(players[i])
  66. end
  67. end
  68.  
  69. game:GetService("Players").PlayerAdded:Connect(function(plr)
  70. loadStalk(plr)
  71. end)
  72.  
  73.  
Add Comment
Please, Sign In to add comment