Suteishia

Roblox Chat Spy Script

Mar 4th, 2021 (edited)
1,420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.85 KB | None | 0 0
  1. --Brought to you by Noa#4479
  2.  
  3. function showMessage(text, clr)
  4. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  5. Text = text;
  6. Color = clr;
  7. })
  8. end
  9.  
  10. function loadStalk(plr)
  11. plr.Chatted:Connect(function(msg)
  12. warn("--------------------------------")
  13. print("[" .. plr.Name .. "]: " .. msg)
  14. if string.find(msg, "/w ") then
  15. for i=4,1000 do
  16. if string.sub(msg,i,i) == " " then
  17. showMessage("[" .. plr.Name .. " to " .. string.sub(msg,4,i-1) .. "]:" .. string.sub(msg,i), Color3.fromRGB(175, 175, 175))
  18. wait()
  19. break
  20. end
  21. end
  22. end
  23. if string.find(msg, "/whisper ") then
  24. for i=4,1000 do
  25. if string.sub(msg,i,i) == " " then
  26. showMessage("[" .. plr.Name .. " to " .. string.sub(msg,10,i-1) .. "]:" .. string.sub(msg,i), Color3.fromRGB(175, 175, 175))
  27. wait()
  28. break
  29. end
  30. end
  31. end
  32. if string.find(msg, "/e ") then
  33. showMessage("[" .. plr.Name .. "]: " .. msg, Color3.fromRGB(175, 175, 175))
  34. wait()
  35. end
  36. if string.find(msg, "/t ") then
  37. if plr.Team ~= game.Players.LocalPlayer.Team then
  38. for i=4,1000 do
  39. if string.sub(msg,i,i) == " " then
  40. 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))
  41. wait()
  42. break
  43. end
  44. end
  45. end
  46. end
  47. if string.find(msg, "/team ") then
  48. if plr.Team ~= game.Players.LocalPlayer.Team then
  49. for i=7,1000 do
  50. if string.sub(msg,i,i) == " " then
  51. 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))
  52. wait()
  53. break
  54. end
  55. end
  56. end
  57. end
  58. end)
  59. end
  60.  
  61. local players = game.Players:GetPlayers()
  62. for i=1,#players do
  63. if players[i].Name ~= game.Players.LocalPlayer.Name then
  64. loadStalk(players[i])
  65. end
  66. end
  67.  
  68. game:GetService("Players").PlayerAdded:Connect(function(plr)
  69. loadStalk(plr)
  70. end)
Add Comment
Please, Sign In to add comment