rrixh

dont log xhats

Sep 26th, 2023
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local CloneFunction = clonefunction
  2. local CheckCaller = CloneFunction(checkcaller)
  3. local HookFunction = CloneFunction(hookfunction)
  4. local LocalPlayer = game.Players.PlayerAdded:wait()
  5.  
  6. local PostMessage = require(LocalPlayer:WaitForChild("PlayerScripts", 1/0):WaitForChild("ChatScript", 1/0):WaitForChild("ChatMain", 1/0)).MessagePosted
  7. getgenv().MessageEvent = Instance.new("BindableEvent")
  8.  
  9. local OldFunctionHook
  10. local PostMessageHook = function(self, msg)
  11.    if not CheckCaller() and self == PostMessage then
  12.        MessageEvent:Fire(msg)
  13.        return
  14.    end
  15.    return OldFunctionHook(self, msg)
  16. end
  17. OldFunctionHook = HookFunction(PostMessage.fire, PostMessageHook)
Add Comment
Please, Sign In to add comment