Advertisement
DARKMODZ

no log

Aug 23rd, 2023
966
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. print("2")
  2. if not game:IsLoaded() then
  3. game.Loaded:Wait()
  4. end
  5.  
  6. local LP = game:GetService('Players').LocalPlayer
  7. local PlayerScripts = LP ~= nil and LP:FindFirstChild('PlayerScripts') or nil
  8. local ChatScript = PlayerScripts ~= nil and PlayerScripts:FindFirstChild('ChatScript') or nil
  9. local ChatMain = ChatScript ~= nil and ChatScript:FindFirstChild('ChatMain') or nil
  10.  
  11. if LP and ChatMain ~= nil then
  12. local Old, Chatted, OldChatted = nil, Instance.new('BindableEvent'), LP.Chatted; Chatted.Name = LP.Name..'_Chatted_Event'
  13. Old = hookmetamethod(game, '__index', newcclosure(function(self, Index)
  14. if checkcaller() and self == LP and Index == 'Chatted' then
  15. return Chatted.Event
  16. elseif not checkcaller() and self == LP and Index == 'Chatted' then
  17. return OldChatted
  18. end
  19.  
  20. return Old(self, Index)
  21. end))
  22.  
  23. local Old2, MessagePosted = nil, require(ChatMain).MessagePosted
  24. if MessagePosted then
  25. Old2 = hookfunction(MessagePosted.fire, function(self, ...)
  26. if not checkcaller() then
  27. return Chatted:Fire(...)
  28. end
  29. end)
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement