Advertisement
_______homie_______

Untitled

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