Advertisement
ilovecheeseroblox

Untitled

Jul 20th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. 1st Method:
  2.  
  3. Y = hookmetamethod(game,"__namecall",function(self,...)
  4. local args = {...};
  5. local checkargs = {};
  6. local method = getnamecallmethod()
  7. local last
  8. if method == "Fire" or method == "FireServer" then
  9. if self.Name == "MessagePosted" or self.Name == "SayMessageRequest" then
  10. last = args[1]
  11. --print(args[1].. last)
  12. if last == args[1] then
  13. return Y(self,...)
  14. else
  15. return
  16. end
  17. if method == "ReportAbuse" and self == game.Players.LocalPlayer then
  18. return
  19. end
  20. end
  21. end
  22. return Y(self,...)
  23. end)
  24.  
  25.  
  26. Second method:
  27.  
  28.  
  29. if not game:IsLoaded() then
  30. game.Loaded:Wait()
  31. end
  32.  
  33. if game.PlaceId ~= 7056922815 then
  34. if game.PlaceId ~= 4991214437 then
  35. if game.PlaceId ~= 7298553006 then
  36. if game.PlaceId ~= 8934886191 then
  37. if game.PlaceId ~= 6494527314 then
  38. local LP = game:GetService('Players').LocalPlayer
  39. local PlayerScripts = LP ~= nil and LP:FindFirstChild('PlayerScripts') or nil
  40. local ChatScript = PlayerScripts ~= nil and PlayerScripts:FindFirstChild('ChatScript') or nil
  41. local ChatMain = ChatScript ~= nil and ChatScript:FindFirstChild('ChatMain') or nil
  42.  
  43. if LP and ChatMain ~= nil then
  44. local Old, Chatted, OldChatted = nil, Instance.new('BindableEvent'), LP.Chatted; Chatted.Name = LP.Name..'_Chatted_Event'
  45. Old = hookmetamethod(game, '__index', newcclosure(function(self, Index)
  46. if checkcaller() and self == LP and Index == 'Chatted' then
  47. return Chatted.Event
  48. elseif not checkcaller() and self == LP and Index == 'Chatted' then
  49. return OldChatted
  50. end
  51.  
  52. return Old(self, Index)
  53. end))
  54.  
  55. local Old2, MessagePosted = nil, require(ChatMain).MessagePosted
  56. if MessagePosted ~= "sakanade" then
  57. Old2 = hookfunction(MessagePosted.fire, function(self, ...)
  58. if not checkcaller() then
  59. print(self, ...)
  60. return Chatted:Fire(...)
  61. end
  62. end)
  63. end
  64. end
  65. end
  66. end
  67. end
  68. end
  69. end
  70.  
  71.  
  72. 3rd Method (Removes Chat)
  73.  
  74. local StarterGui = game:GetService('StarterGui')
  75.  
  76. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement