Advertisement
rrixh

anti xhatlog srx

Sep 30th, 2023 (edited)
19,730
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.58 KB | None | 0 0
  1.  -- Gui to Lua
  2.  -- Version: 3.2
  3.  
  4.  -- Instanxes:
  5.  
  6.  local ScreenGui = Instance.new("ScreenGui")
  7.  local Frame = Instance.new("Frame")
  8.  local UICorner = Instance.new("UICorner")
  9.  local UIGradient = Instance.new("UIGradient")
  10.  local TextLabel = Instance.new("TextLabel")
  11.  local UICorner_2 = Instance.new("UICorner")
  12.  local TextLabel_2 = Instance.new("TextLabel")
  13.  local UICorner_3 = Instance.new("UICorner")
  14.  local TextButton = Instance.new("TextButton")
  15.  local UICorner_4 = Instance.new("UICorner")
  16.  local TextButton_2 = Instance.new("TextButton")
  17.  local UICorner_5 = Instance.new("UICorner")
  18.  
  19.  --Properties:
  20.  
  21.  ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  22.  ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  23.  
  24.  Frame.Parent = ScreenGui
  25.  Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  26.  Frame.BackgroundTransparency = 0.120
  27.  Frame.Position = UDim2.new(0.354000002, 0, 0.316000015, 0)
  28.  Frame.Size = UDim2.new(0, 445, 0, 252)
  29.  
  30.  UICorner.Parent = Frame
  31.  
  32.  UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(4, 4, 4)), ColorSequenceKeypoint.new(0.49, Color3.fromRGB(12, 4, 20)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(12, 4, 20))}
  33.  UIGradient.Parent = Frame
  34.  
  35.  TextLabel.Parent = Frame
  36.  TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  37.  TextLabel.BackgroundTransparency = 0.600
  38.  TextLabel.Position = UDim2.new(0.00224719103, 0, 0, 0)
  39.  TextLabel.Size = UDim2.new(0, 443, 0, 27)
  40.  TextLabel.Font = Enum.Font.SourceSans
  41.  TextLabel.Text = "Welkome to Anti-Ban & Anti-xhatlogger"
  42.  TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  43.  TextLabel.TextScaled = true
  44.  TextLabel.TextSize = 14.000
  45.  TextLabel.TextWrapped = true
  46.  
  47.  UICorner_2.Parent = TextLabel
  48.  
  49.  TextLabel_2.Parent = Frame
  50.  TextLabel_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  51.  TextLabel_2.BackgroundTransparency = 0.600
  52.  TextLabel_2.Position = UDim2.new(0.0269662924, 0, 0.162698418, 0)
  53.  TextLabel_2.Size = UDim2.new(0, 421, 0, 115)
  54.  TextLabel_2.Font = Enum.Font.SourceSans
  55.  TextLabel_2.Text = "this skript is an anti-ban/anti-logger. it will disable your messages from being logged so u kant be banned for anything u say even if u get reported"
  56.  TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  57.  TextLabel_2.TextScaled = true
  58.  TextLabel_2.TextSize = 14.000
  59.  TextLabel_2.TextWrapped = true
  60.  
  61.  UICorner_3.Parent = TextLabel_2
  62.  
  63.  TextButton.Parent = Frame
  64.  TextButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  65.  TextButton.BackgroundTransparency = 0.600
  66.  TextButton.BorderColor3 = Color3.fromRGB(27, 42, 53)
  67.  TextButton.Position = UDim2.new(0.287640452, 0, 0.658730209, 0)
  68.  TextButton.Size = UDim2.new(0, 189, 0, 34)
  69.  TextButton.Font = Enum.Font.SourceSans
  70.  TextButton.Text = "Enable Anti-Ban"
  71.  TextButton.TextColor3 = Color3.fromRGB(0, 194, 45)
  72.  TextButton.TextSize = 14.000
  73.  
  74.  UICorner_4.Parent = TextButton
  75.  
  76.  TextButton_2.Parent = Frame
  77.  TextButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  78.  TextButton_2.BackgroundTransparency = 0.600
  79.  TextButton_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
  80.  TextButton_2.Position = UDim2.new(0.280898869, 0, 0.821428478, 0)
  81.  TextButton_2.Size = UDim2.new(0, 194, 0, 32)
  82.  TextButton_2.Font = Enum.Font.SourceSans
  83.  TextButton_2.Text = "Klose"
  84.  TextButton_2.TextColor3 = Color3.fromRGB(203, 0, 0)
  85.  TextButton_2.TextSize = 14.000
  86.  
  87.  UICorner_5.Parent = TextButton_2
  88.  
  89.  -- Scripts:
  90.  
  91.  local function CPNQ_fake_script() -- TextButton.LocalScript
  92.      local script = Instance.new('LocalScript', TextButton)
  93.  
  94.      script.Parent.MouseButton1Click:Connect(function()
  95.          -- this basikally makes roblox unable to log your xhat messages sent in game meaning if u get reported for saying something bad you wont get banned!
  96.          -- store in autoexek folder
  97.          -- Kredits: AnthonyIsntHere and ArianBlaack
  98.      
  99.          local ACL_LoadTime = tick()
  100.      
  101.          local ChatChanged = false
  102.          local OldSetting = nil
  103.          local WhitelistedCoreTypes = {
  104.              "Chat",
  105.              "All",
  106.              Enum.CoreGuiType.Chat,
  107.              Enum.CoreGuiType.All
  108.          }
  109.      
  110.          local StarterGui = game:GetService("StarterGui")
  111.      
  112.          local FixCore = function(x)
  113.              local CoreHook; CoreHook = hookmetamethod(x, "__namecall", function(self, ...)
  114.                  local Method = getnamecallmethod()
  115.                  local Arguments = {...}
  116.      
  117.                  if self == x and Method == "SetCoreGuiEnabled" and not checkcaller() then
  118.                      local CoreType = Arguments[1]
  119.                      local Enabled = Arguments[2]
  120.      
  121.                      if table.find(WhitelistedCoreTypes, CoreType) and not Enabled then
  122.                          if CoreType == ("Chat" or Enum.CoreGuiType.Chat) then
  123.                              OldSetting = Enabled
  124.                          end
  125.                          ChatChanged = true
  126.                      end
  127.                  end
  128.      
  129.                  return CoreHook(self, ...)
  130.              end)
  131.      
  132.              x.CoreGuiChangedSignal:Connect(function(Type)
  133.                  if table.find(WhitelistedCoreTypes, Type) and ChatChanged then
  134.                      task.wait()
  135.                      if not StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat) then
  136.                          x:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
  137.                      end
  138.                      wait(1)
  139.                      if StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat) then
  140.                          x:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, OldSetting) -- probably defaults to false i am too tired for the making of this lol
  141.                      end
  142.                      ChatChanged = false
  143.                  end
  144.              end)
  145.          end
  146.      
  147.          if StarterGui then
  148.              FixCore(StarterGui)
  149.              if not StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat) then
  150.                  StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
  151.              end
  152.          else
  153.              local Connection; Connection = game.ChildAdded:Connect(function(x)
  154.                  if x:IsA("StarterGui") then
  155.                      FixCore(x)
  156.                      Connection:Disconnect()
  157.                  end
  158.              end)
  159.          end
  160.      
  161.          if not game:IsLoaded() then
  162.              game.Loaded:wait()
  163.          end
  164.      
  165.          local CoreGui = game:GetService("CoreGui")
  166.          local TweenService = game:GetService("TweenService")
  167.          local Players = game:GetService("Players")
  168.      
  169.          local Player = Players.LocalPlayer
  170.      
  171.          local PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") do
  172.              if not PlayerGui then
  173.                  repeat task.wait() until Player:FindFirstChildWhichIsA("PlayerGui")
  174.                  PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui")
  175.              end
  176.          end
  177.      
  178.          local Notify = function(_Title, _Text , Time)
  179. print(_Title)
  180. print(_Text)
  181. print(Time)
  182.          end
  183.      
  184.          local Tween = function(Object, Time, Style, Direction, Property)
  185.              return TweenService:Create(Object, TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction]), Property)
  186.          end
  187.      
  188.          local ACLWarning = Instance.new("ScreenGui")
  189.          local Background = Instance.new("Frame")
  190.          local Top = Instance.new("Frame")
  191.          local Exit = Instance.new("TextButton")
  192.          local UICorner = Instance.new("UICorner")
  193.          local WarningLbl = Instance.new("TextLabel")
  194.          local Loading = Instance.new("Frame")
  195.          local Bar = Instance.new("Frame")
  196.          local WarningBackground = Instance.new("Frame")
  197.          local WarningFrame = Instance.new("Frame")
  198.          local Despair = Instance.new("TextLabel")
  199.          local UIListLayout = Instance.new("UIListLayout")
  200.          local Reason_1 = Instance.new("TextLabel")
  201.          local Reason_2 = Instance.new("TextLabel")
  202.          local Trollge = Instance.new("ImageLabel")
  203.          local UIPadding = Instance.new("UIPadding")
  204.      
  205.          local MakeGuiThread = coroutine.wrap(function()
  206.              if syn then
  207.                  if gethui then
  208.                      gethui(ACLwarning)
  209.                  else
  210.                      syn.protect_gui(ACLWarning)
  211.                  end
  212.              end
  213.      
  214.              ACLWarning.Name = "ACL Warning"
  215.              ACLWarning.Parent = CoreGui
  216.              ACLWarning.Enabled = false
  217.              ACLWarning.DisplayOrder = -2147483648
  218.      
  219.              Background.Name = "Background"
  220.              Background.Parent = ACLWarning
  221.              Background.AnchorPoint = Vector2.new(0.5, 0.5)
  222.              Background.BackgroundColor3 = Color3.fromRGB(21, 0, 0)
  223.              Background.BorderSizePixel = 0
  224.              Background.Position = UDim2.new(0.5, 0, 0.5, 0)
  225.              Background.Size = UDim2.new(0.300000012, 0, 0.5, 0)
  226.      
  227.              Top.Name = "Top"
  228.              Top.Parent = Background
  229.              Top.AnchorPoint = Vector2.new(0.5, 0.5)
  230.              Top.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  231.              Top.BorderSizePixel = 0
  232.              Top.Position = UDim2.new(0.5, 0, 0.100000001, 0)
  233.              Top.Size = UDim2.new(0.899999976, 0, 0.100000001, 0)
  234.      
  235.              Exit.Name = "Exit"
  236.              Exit.Parent = Top
  237.              Exit.AnchorPoint = Vector2.new(0.5, 0.5)
  238.              Exit.BackgroundColor3 = Color3.fromRGB(38, 0, 0)
  239.              Exit.Position = UDim2.new(0.949999988, 0, 0.5, 0)
  240.              Exit.Size = UDim2.new(0.100000001, -6, 1, -9)
  241.              Exit.Visible = false
  242.              Exit.Font = Enum.Font.Arcade
  243.              Exit.Text = "X"
  244.              Exit.TextColor3 = Color3.fromRGB(255, 255, 255)
  245.              Exit.TextScaled = true
  246.              Exit.TextSize = 14.000
  247.              Exit.TextWrapped = true
  248.      
  249.              UICorner.CornerRadius = UDim.new(0.200000003, 0)
  250.              UICorner.Parent = Exit
  251.      
  252.              WarningLbl.Name = "WarningLbl"
  253.              WarningLbl.Parent = Top
  254.              WarningLbl.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  255.              WarningLbl.BackgroundTransparency = 1.000
  256.              WarningLbl.Position = UDim2.new(0, 17, 0, 0)
  257.              WarningLbl.Size = UDim2.new(0.5, 0, 1, 0)
  258.              WarningLbl.Font = Enum.Font.Arcade
  259.              WarningLbl.Text = "Welkome to Anti-Ban & Anti-xhatlogger"
  260.              WarningLbl.TextColor3 = Color3.fromRGB(255, 255, 255)
  261.              WarningLbl.TextScaled = true
  262.              WarningLbl.TextSize = 14.000
  263.              WarningLbl.TextWrapped = true
  264.              WarningLbl.TextXAlignment = Enum.TextXAlignment.Left
  265.      
  266.              Loading.Name = "Loading"
  267.              Loading.Parent = Top
  268.              Loading.AnchorPoint = Vector2.new(0.5, 0.5)
  269.              Loading.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  270.              Loading.BorderSizePixel = 0
  271.              Loading.Position = UDim2.new(0.699999988, 0, 0.5, 0)
  272.              Loading.Size = UDim2.new(0.349999994, 0, 0.0199999996, 0)
  273.      
  274.              Bar.Name = "Bar"
  275.              Bar.Parent = Loading
  276.              Bar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  277.              Bar.BorderSizePixel = 0
  278.              Bar.Size = UDim2.new(0, 0, 1, 0)
  279.      
  280.              WarningBackground.Name = "WarningBackground"
  281.              WarningBackground.Parent = Background
  282.              WarningBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  283.              WarningBackground.BackgroundColor3 = Color3.fromRGB(9, 9, 9)
  284.              WarningBackground.BorderSizePixel = 0
  285.              WarningBackground.Position = UDim2.new(0.5, 0, 0.550000012, 0)
  286.              WarningBackground.Size = UDim2.new(0.899999976, 0, 0.800000012, 0)
  287.      
  288.              WarningFrame.Name = "WarningFrame"
  289.              WarningFrame.Parent = WarningBackground
  290.              WarningFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  291.              WarningFrame.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  292.              WarningFrame.BorderSizePixel = 0
  293.              WarningFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  294.              WarningFrame.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  295.      
  296.              Despair.Name = "Despair"
  297.              Despair.Parent = WarningFrame
  298.              Despair.AnchorPoint = Vector2.new(0.5, 0.5)
  299.              Despair.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  300.              Despair.BackgroundTransparency = 1.000
  301.              Despair.BorderColor3 = Color3.fromRGB(27, 42, 53)
  302.              Despair.BorderSizePixel = 0
  303.              Despair.Position = UDim2.new(0.5, 0, 0.100000001, 0)
  304.              Despair.Size = UDim2.new(0.949999988, 0, 0.119999997, 0)
  305.              Despair.Font = Enum.Font.Oswald
  306.              Despair.Text = "Anti Xhat Logger will not work here!"
  307.              Despair.TextColor3 = Color3.fromRGB(255, 255, 255)
  308.              Despair.TextScaled = true
  309.              Despair.TextSize = 50.000
  310.              Despair.TextWrapped = true
  311.              Despair.TextYAlignment = Enum.TextYAlignment.Top
  312.      
  313.              UIListLayout.Parent = WarningFrame
  314.              UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  315.              UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  316.              UIListLayout.Padding = UDim.new(0, 15)
  317.      
  318.              Reason_1.Name = "Reason_1"
  319.              Reason_1.Parent = WarningFrame
  320.              Reason_1.AnchorPoint = Vector2.new(0.5, 0.5)
  321.              Reason_1.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  322.              Reason_1.BackgroundTransparency = 1.000
  323.              Reason_1.BorderColor3 = Color3.fromRGB(27, 42, 53)
  324.              Reason_1.BorderSizePixel = 0
  325.              Reason_1.Position = UDim2.new(0.5, 0, 0.100000001, 0)
  326.              Reason_1.Size = UDim2.new(0.949999988, 0, 0.100000001, 0)
  327.              Reason_1.Visible = false
  328.              Reason_1.Font = Enum.Font.Oswald
  329.              Reason_1.Text = "-Xhat Module was not found."
  330.              Reason_1.TextColor3 = Color3.fromRGB(255, 0, 0)
  331.              Reason_1.TextScaled = true
  332.              Reason_1.TextSize = 50.000
  333.              Reason_1.TextWrapped = true
  334.              Reason_1.TextYAlignment = Enum.TextYAlignment.Top
  335.      
  336.              Reason_2.Name = "Reason_2"
  337.              Reason_2.Parent = WarningFrame
  338.              Reason_2.AnchorPoint = Vector2.new(0.5, 0.5)
  339.              Reason_2.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  340.              Reason_2.BackgroundTransparency = 1.000
  341.              Reason_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
  342.              Reason_2.BorderSizePixel = 0
  343.              Reason_2.Position = UDim2.new(0.5, 0, 0.100000001, 0)
  344.              Reason_2.Size = UDim2.new(0.949999988, 0, 0.100000001, 0)
  345.              Reason_2.Visible = false
  346.              Reason_2.Font = Enum.Font.Oswald
  347.              Reason_2.Text = "-MessagePosted funktion is invalid."
  348.              Reason_2.TextColor3 = Color3.fromRGB(255, 0, 0)
  349.              Reason_2.TextScaled = true
  350.              Reason_2.TextSize = 50.000
  351.              Reason_2.TextWrapped = true
  352.              Reason_2.TextYAlignment = Enum.TextYAlignment.Top
  353.      
  354.              Trollge.Name = "Trollge"
  355.              Trollge.Parent = WarningFrame
  356.              Trollge.AnchorPoint = Vector2.new(0.5, 0.5)
  357.              Trollge.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  358.              Trollge.BackgroundTransparency = 1.000
  359.              Trollge.Position = UDim2.new(0.5, 0, 0.670000017, 0)
  360.              Trollge.Size = UDim2.new(0.449999988, 0, 0.5, 0)
  361.              Trollge.Image = "rbxassetid://10104834800"
  362.      
  363.              UIPadding.Parent = WarningFrame
  364.              UIPadding.PaddingTop = UDim.new(0, 10)
  365.      
  366.              Exit.MouseButton1Click:Connect(function()
  367.                  local UpTween = Tween(Background, .2, "Quint", "Out", {Position = UDim2.new(0.5, 0, 0.45, 0)})
  368.                  local DownTween = Tween(Background, 1, "Quad", "Out", {Position = UDim2.new(0.5, 0, 2, 0)})
  369.                  UpTween:Play()
  370.                  UpTween.Completed:wait()
  371.                  DownTween:Play()
  372.                  DownTween.Completed:wait()
  373.                  ACLWarning:Destroy()
  374.              end)
  375.          end)()
  376.      
  377.          local ExitCooldown = function()
  378.              wait(.5)
  379.              local Tween = Tween(Bar, 3, "Quad", "InOut", {Size = UDim2.new(1, 0, 1, 0)})
  380.              Tween:Play()
  381.              Tween.Completed:wait()
  382.              Loading:Destroy()
  383.              Exit.Visible = true
  384.          end
  385.      
  386.          local PlayerScripts = Player:WaitForChild("PlayerScripts")
  387.          local ChatMain = PlayerScripts:FindFirstChild("ChatMain", true) or false
  388.      
  389.          if not ChatMain then
  390.              local Timer = tick()
  391.              repeat
  392.                  task.wait()
  393.              until PlayerScripts:FindFirstChild("ChatMain", true) or tick() > (Timer + 3)
  394.              ChatMain = PlayerScripts:FindFirstChild("ChatMain", true)
  395.              if not ChatMain then
  396.                  ACLWarning.Enabled = true
  397.                  Reason_1.Visible = true
  398.                  ExitCooldown()
  399.                  return
  400.              end
  401.          end
  402.      
  403.          local PostMessage = require(ChatMain).MessagePosted
  404.      
  405.          if not PostMessage then
  406.              ACLWarning.Enabled = true
  407.              Reason_2.Visible = true
  408.              ExitCooldown()
  409.              return
  410.          end
  411.      
  412.          local MessageEvent = Instance.new("BindableEvent")
  413.          local OldFunctionHook
  414.          OldFunctionHook = hookfunction(PostMessage.fire, function(self, Message)
  415.              if not checkcaller() and self == PostMessage then
  416.                  MessageEvent:Fire(Message)
  417.                  return
  418.              end
  419.              return OldFunctionHook(self, Message)
  420.          end)
  421.      
  422.          if setfflag then
  423.              setfflag("AbuseReportScreenshot", "False")
  424.              setfflag("AbuseReportScreenshotPercentage", "0")
  425.          end
  426.      
  427.          ChatFixToggle = false
  428.          task.spawn(function()
  429.              wait(1)
  430.              ACLWarning:Destroy()
  431.          end)
  432.          if OldSetting then
  433.              StarterGui:SetCoreGuiEnabled(CoreGuiSettings[1], CoreGuiSettings[2])
  434.          end
  435.          Notify("lulaslollipop🍭", "Anti Xhat and Skreenshot logger loaded", 15)
  436.          print(string.format("Anti Xhat-Logger has loaded in %s seconds.", tostring(tick() - ACL_LoadTime):sub(1, 4)))
  437.          wait(0.3)
  438.          script.Parent.Parent:TweenPosition(UDim2.new(0.355, 0,1.291, 0), "Out", "Quint",1,true)
  439.          wait(0.9)
  440.          local AkaliNotif = loadstring(game:HttpGet("https://raw.githubusercontent.com/FilteringEnabled/FE/main/notificationtest"))();
  441.          local Notify = AkaliNotif.Notify;
  442.          Notify({
  443.              Description = "Anti-Xhat log has been ran";
  444.              Duration = 5;
  445.      
  446.          });
  447.      end)
  448.  end
  449.  coroutine.wrap(CPNQ_fake_script)()
  450.  local function OZEERJ_fake_script() -- TextButton_2.LocalScript
  451.      local script = Instance.new('LocalScript', TextButton_2)
  452.  
  453.      script.Parent.MouseButton1Click:Connect(function()
  454.      script.Parent.Parent:TweenPosition(UDim2.new(0.355, 0,1.291, 0), "Out", "Quint",1,true)
  455.      wait(0.9)
  456.          script.Parent.Parent.Parent:Destroy()
  457.          end)
  458.  end
  459.  coroutine.wrap(OZEERJ_fake_script)()
  460.  local function ELJBIKO_fake_script() -- Frame.LocalScript
  461.      local script = Instance.new('LocalScript', Frame)
  462.  
  463.      script.Parent.Position = UDim2.new(0.355, 0,-1.291, 0)
  464.      
  465.      script.Parent:TweenPosition(UDim2.new(0.354, 0,0.316, 0), "Out", "Quint",1,true)
  466.      
  467.      
  468.  end
  469.  coroutine.wrap(ELJBIKO_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement