rrixh

fe bypass xhat

Oct 17th, 2023
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.84 KB | None | 0 0
  1. local function bypass()
  2. if not game:IsLoaded() then
  3.     game.Loaded:wait()
  4. end
  5.  
  6. local ACL_LoadTime = tick()
  7. local NotificationTitle = "lollypop5ever"
  8.  
  9. local OldCoreTypeSettings = {}
  10. local WhitelistedCoreTypes = {
  11.     "Chat",
  12.     "All",
  13.     Enum.CoreGuiType.Chat,
  14.     Enum.CoreGuiType.All
  15. }
  16.  
  17. local OldCoreSetting = nil
  18.  
  19. local CoreGui = game:GetService("CoreGui")
  20. local StarterGui = game:GetService("StarterGui")
  21. local TweenService = game:GetService("TweenService")
  22. local TextChatService = game:GetService("TextChatService")
  23. local Players = game:GetService("Players")
  24.  
  25. local Player = Players.LocalPlayer
  26.  
  27. local Notify = function(_Title, _Text , Time)
  28.     StarterGui:SetCore("SendNotification", {Title = _Title, Text = _Text, Icon = "rbxassetid://2541869220", Duration = Time})
  29. end
  30.  
  31. local Tween = function(Object, Time, Style, Direction, Property)
  32.     return TweenService:Create(Object, TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction]), Property)
  33. end
  34.  
  35. local PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") do
  36.     if not PlayerGui then
  37.         local Timer = tick() + 5
  38.         repeat task.wait() until Player:FindFirstChildWhichIsA("PlayerGui") or (tick() > Timer)
  39.         PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") or false
  40.         if not PlayerGui then
  41.             return Notify(NotificationTitle, "where the fuck is the playergui", 10)
  42.         end
  43.     end
  44. end
  45.  
  46. if getgenv().AntiChatLogger then
  47.     return Notify(NotificationTitle, "already loaded dumbass", 15)
  48. else
  49.     getgenv().AntiChatLogger = true
  50. end
  51.  
  52. local Metatable = getrawmetatable(StarterGui)
  53. setreadonly(Metatable, false)
  54.  
  55. local MessageEvent = Instance.new("BindableEvent")
  56.  
  57. if hookmetamethod then
  58.     local CoreHook do
  59.         CoreHook = hookmetamethod(StarterGui, "__namecall", newcclosure(function(self, ...)
  60.             local Method = getnamecallmethod()
  61.             local Arguments = {...}
  62.            
  63.             if self == StarterGui and not checkcaller() then
  64.                 if Method == "SetCoreGuiEnabled" then
  65.                     local CoreType = Arguments[1]
  66.                     local Enabled = Arguments[2]
  67.                    
  68.                     if table.find(WhitelistedCoreTypes, CoreType) and Enabled == false then -- Thanks Harun for correcting me on the second argument
  69.                         OldCoreTypeSettings[CoreType] = Enabled
  70.                         return
  71.                     end
  72.                 elseif Method == "SetCore" then
  73.                     local Core = Arguments[1]
  74.                     local Connection = Arguments[2]
  75.                    
  76.                     if Core == "CoreGuiChatConnections" then
  77.                         OldCoreSetting = Connection
  78.                         return
  79.                     end
  80.                 end
  81.             end
  82.            
  83.             return CoreHook(self, ...)
  84.         end))
  85.     end
  86.  
  87.     if not getgenv().ChattedFix then
  88.         getgenv().ChattedFix = true
  89.  
  90.         local ChattedFix do
  91.             ChattedFix = hookmetamethod(Player, "__index", newcclosure(function(self, index)
  92.                 if self == Player and index == "Chatted" then
  93.                     return MessageEvent.Event
  94.                 end
  95.  
  96.                 return ChattedFix(self, index)
  97.             end))
  98.         end
  99.  
  100.         task.spawn(function()
  101.             local ChattedSignal = false
  102.  
  103.             for _, x in next, getgc() do
  104.                 if type(x) == "function" and tostring(getfenv(x).script) == "Animate" then
  105.                     if islclosure(x) then
  106.                         local Constants = getconstants(x)
  107.  
  108.                         for _, v in next, Constants do
  109.                             if v == "Chatted" then
  110.                                 ChattedSignal = x
  111.                             end
  112.                         end
  113.                     end
  114.                 end
  115.             end
  116.  
  117.             if ChattedSignal then
  118.                 ChattedSignal() -- to prevent emote xhat kommands from breaking on join
  119.             end
  120.         end)
  121.     end
  122. end
  123.  
  124. local EnabledChat = task.spawn(function()
  125.     repeat
  126.         StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
  127.         task.wait()
  128.     until StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat)
  129. end)
  130.  
  131. local WarningGuiThread = print("lmao")
  132.  
  133. if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
  134.     WarningUI.Enabled = true
  135.     Reason_1.Visible = true
  136.     return
  137. end
  138.  
  139. local PlayerScripts = Player:WaitForChild("PlayerScripts")
  140. local ChatMain = PlayerScripts:FindFirstChild("ChatMain", true) or false
  141.  
  142. if not ChatMain then
  143.     local Timer = tick()
  144.    
  145.     repeat task.wait() until PlayerScripts:FindFirstChild("ChatMain", true) or tick() > (Timer + 3)
  146.     ChatMain = PlayerScripts:FindFirstChild("ChatMain", true)
  147.    
  148.     if not ChatMain then
  149.         WarningUI.Enabled = true
  150.         Reason_2.Visible = true
  151.         return
  152.     end
  153. end
  154.  
  155. local PostMessage = require(ChatMain).MessagePosted
  156.  
  157. if not PostMessage then
  158.     WarningUI.Enabled = true
  159.     Reason_3.Visible = true
  160.     return
  161. end
  162.  
  163. local OldFunctionHook; OldFunctionHook = hookfunction(PostMessage.fire, function(self, Message)
  164.     if self == PostMessage then
  165.         MessageEvent:Fire(Message)
  166.         return
  167.     end
  168.     return OldFunctionHook(self, Message)
  169. end)
  170.  
  171. if setfflag then
  172.     pcall(function()
  173.         setfflag("AbuseReportScreenshot", "False")
  174.         setfflag("AbuseReportScreenshotPercentage", "0")
  175.     end)
  176. end -- to prevent roblox from taking skreenshots of your klient.
  177.  
  178. task.delay(1, function() WarningUI:Destroy() end)
  179.  
  180. for _, x in next, OldCoreTypeSettings do
  181.     if not x then
  182.         StarterGui:SetCore("ChatActive", false)
  183.     end
  184.     StarterGui:SetCoreGuiEnabled(_, x)
  185. end
  186.  
  187. if OldCoreSetting then
  188.     StarterGui:SetCore("CoreGuiChatConnections", OldCoreSetting)
  189. end
  190.  
  191. if StarterGui:GetCore("ChatActive") then
  192.     StarterGui:SetCore("ChatActive", false)
  193.     StarterGui:SetCore("ChatActive", true)
  194. end
  195.  
  196. --Metatable.__namecall = CoreHook
  197. if CoreHook then
  198.     setmetatable(Metatable, {__namecall = CoreHook})
  199. end
  200. setreadonly(Metatable, true)
  201.  
  202. Notify(NotificationTitle, "suxxessfully loaded", 15)
  203. print(string.format("suxxessfully loaded in %s sekonds.", string.format("%.2f", tostring(tick() - ACL_LoadTime))))
  204.  
  205. local chatService, players = game:GetService("Chat"), game:GetService("Players")
  206.  
  207. local custom_chars = {
  208.     [" "] = "￰",
  209.     ["i"] = "і",
  210.     ["e"] = "е",
  211.     ["g"] = "ḡ",
  212.     ["c"] = "с",
  213.     ["o"] = "о",
  214.     ["p"] = "р",
  215.     ["s"] = "ѕ",
  216.     ["u"] = "υ"
  217. }
  218.  
  219. local default = " ိ"
  220.  
  221. local player = players.LocalPlayer
  222. local playerGui = player:WaitForChild("PlayerGui")
  223. local chatGui, chatBar = playerGui:WaitForChild("Chat")
  224.  
  225. repeat task.wait() until chatGui:FindFirstChild("ChatBar", true)
  226. chatBar = chatGui:FindFirstChild("ChatBar", true)
  227.  
  228. do
  229.     local randomstr = function()
  230.         local characters = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
  231.         local str = ""
  232.         local length = math.random(12, 32)
  233.    
  234.         for i = 1, length do
  235.             str = str .. characters[math.random(#characters)]
  236.         end
  237.         return str
  238.     end
  239.     task.spawn(function()
  240.         while wait(.1) do
  241.             if chatBar:IsFocused() then
  242.                 chatService:FilterStringForBroadcast(randomstr(), player)
  243.             end
  244.         end
  245.     end)
  246. end
  247.  
  248. local c = function()
  249.     for i = 1, 2 do
  250.         game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("/e Hey how are you doing?", "All")
  251.         game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("/e How are you doing?", "All")
  252.     end
  253. end
  254.  
  255. local old
  256. old = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
  257.     local method = getnamecallmethod()
  258.     local args = {...}
  259.  
  260.     if method == "FireServer" and self.Name == "SayMessageRequest" and #args == 2 and not checkcaller() then
  261.         local newMessage = args[1]
  262.         for i,v in pairs(custom_chars) do
  263.             local rep = string.gsub(newMessage, i, v .. "⁥")
  264.             newMessage = rep
  265.         end
  266.         newMessage = "RAPE￰" .. newMessage .. default
  267.  
  268.         args[1] = newMessage
  269.         coroutine.wrap(c)
  270.         return old(self, unpack(args))
  271.     end
  272.     return old(self, ...)
  273. end))
  274. end
  275.  
  276. local function note()
  277. wait(0.1)
  278. game.StarterGui:SetCore("SendNotification", {
  279. Title = "lulaslollipop🍭";
  280. Text = "the game has new roblox xhat or isnt supported";
  281. Duration = 100000;
  282. })
  283. end
  284.  
  285. if not game.Chat:FindFirstChild('ChatModules')or game.Players.LocalPlayer.PlayerGui.Chat.Enabled==false then note() else bypass() end
Add Comment
Please, Sign In to add comment