Advertisement
DARKMODZ

no screenshot - credits anthonyishere

Aug 23rd, 2023 (edited)
984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.32 KB | Gaming | 0 0
  1. -- This basically makes roblox unable to log your chat messages sent in-game. Meaning if you get reported for saying something bad, you won't get banned!
  2.  
  3. -- Credits: AnthonyIsntHere
  4.  
  5. -- loadstring(game:HttpGet("https://raw.githubusercontent.com/AnthonyIsntHere/anthonysrepository/main/scripts/AntiChatLogger.lua", true))()
  6.  
  7. -- 4/1/2023 - Rewritten
  8. -- 4/4/2023 - Fixed scrollbar visibility issue
  9. -- 4/15/2023 - Fixed Adonis anti-cheat kicking issue (replaced line 320 with setmetatable)
  10. -- 4/26/2023 - Fixed tick loaded format
  11. -- 4/28/2023 - Added support for Fluxus users (no hookmetamethod lol)
  12. -- 6/14/2023 - Added support for Evon users (checkcaller doens't work properly LOL)
  13. -- 7/7/2023 - Added support for Valyse users "FLAG IS NOT EXIST" LMFAO
  14. -- 7/22/2023 - Added global for universal scripts (mainly chat bypasses)
  15.  
  16. if not game:IsLoaded() then
  17.     game.Loaded:wait()
  18. end
  19.  
  20. local ACL_LoadTime = tick()
  21. getgenv().AntiChatLogger = true
  22.  
  23. local OldCoreTypeSettings = {}
  24. local WhitelistedCoreTypes = {
  25.     "Chat",
  26.     "All",
  27.     Enum.CoreGuiType.Chat,
  28.     Enum.CoreGuiType.All
  29. }
  30.  
  31. local OldCoreSetting = nil
  32.  
  33. local CoreGui = game:GetService("CoreGui")
  34. local StarterGui = game:GetService("StarterGui")
  35. local TweenService = game:GetService("TweenService")
  36. local TextChatService = game:GetService("TextChatService")
  37. local Players = game:GetService("Players")
  38.  
  39. local Player = Players.LocalPlayer
  40.  
  41. local PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") do
  42.     if not PlayerGui then
  43.         repeat task.wait() until Player:FindFirstChildWhichIsA("PlayerGui")
  44.         PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui")
  45.     end
  46. end
  47.  
  48. local Notify = function(_Title, _Text , Time)
  49.     StarterGui:SetCore("SendNotification", {Title = _Title, Text = _Text, Icon = "rbxassetid://2541869220", Duration = Time})
  50. end
  51.  
  52. local Tween = function(Object, Time, Style, Direction, Property)
  53.     return TweenService:Create(Object, TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction]), Property)
  54. end
  55.  
  56. local Metatable = getrawmetatable(StarterGui)
  57. setreadonly(Metatable, false)
  58.  
  59. local CoreHook do
  60.     if hookmetamethod then
  61.         CoreHook = hookmetamethod(StarterGui, "__namecall", newcclosure(function(self, ...)
  62.             local Method = getnamecallmethod()
  63.             local Arguments = {...}
  64.            
  65.             if self == StarterGui and not checkcaller() then
  66.                 if Method == "SetCoreGuiEnabled" then
  67.                     local CoreType = Arguments[1]
  68.                     local Enabled = Arguments[2]
  69.                    
  70.                     if table.find(WhitelistedCoreTypes, CoreType) and not Enabled then
  71.                         OldCoreTypeSettings[CoreType] = Enabled
  72.                         return
  73.                     end
  74.                 elseif Method == "SetCore" then
  75.                     local Core = Arguments[1]
  76.                     local Connection = Arguments[2]
  77.                    
  78.                     if Core == "CoreGuiChatConnections" then
  79.                         OldCoreSetting = Connection
  80.                         return
  81.                     end
  82.                 end
  83.             end
  84.            
  85.             return CoreHook(self, ...)
  86.         end))
  87.     end
  88. end
  89.  
  90. local EnabledChat = task.spawn(function()
  91.     repeat
  92.         StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
  93.         task.wait()
  94.     until StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat)
  95. end)
  96.  
  97. local WarningGuiThread = task.spawn(function()
  98.     WarningUI = Instance.new("ScreenGui")
  99.     Main = Instance.new("Frame")
  100.     BackgroundHolder = Instance.new("Frame")
  101.     Background = Instance.new("Frame")
  102.     TopBar = Instance.new("Frame")
  103.     UIGradient = Instance.new("UIGradient")
  104.     TitleHolder = Instance.new("Frame")
  105.     Title = Instance.new("TextLabel")
  106.     Holder = Instance.new("Frame")
  107.     UIListLayout = Instance.new("UIListLayout")
  108.     Reason_1 = Instance.new("TextLabel")
  109.     Reason_2 = Instance.new("TextLabel")
  110.     Reason_3 = Instance.new("TextLabel")
  111.     WarningText = Instance.new("TextLabel")
  112.     Exit = Instance.new("TextButton")
  113.     ImageLabel = Instance.new("ImageLabel")
  114.    
  115.     if syn then
  116.         syn.protect_gui(WarningUI)
  117.     end
  118.    
  119.     WarningUI.Enabled = false
  120.     WarningUI.Name = "WarningUI"
  121.     WarningUI.Parent = CoreGui
  122.    
  123.     Main.Name = "Main"
  124.     Main.Parent = WarningUI
  125.     Main.AnchorPoint = Vector2.new(.5, .5)
  126.     Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  127.     Main.BackgroundTransparency = 1
  128.     Main.Position = UDim2.new(.5, 0, .5, 0)
  129.     Main.Size = UDim2.new(0, 400, 0, 400)
  130.    
  131.     BackgroundHolder.Name = "BackgroundHolder"
  132.     BackgroundHolder.Parent = Main
  133.     BackgroundHolder.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  134.     BackgroundHolder.BackgroundTransparency = .25
  135.     BackgroundHolder.BorderSizePixel = 0
  136.     BackgroundHolder.Size = UDim2.new(1, 0, 1, 0)
  137.    
  138.     Background.Name = "Background"
  139.     Background.Parent = BackgroundHolder
  140.     Background.AnchorPoint = Vector2.new(.5, .5)
  141.     Background.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  142.     Background.BorderSizePixel = 0
  143.     Background.Position = UDim2.new(.5, 0, .5, 0)
  144.     Background.Size = UDim2.new(.96, 0, .96, 0)
  145.    
  146.     TopBar.Name = "TopBar"
  147.     TopBar.Parent = Background
  148.     TopBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  149.     TopBar.BorderSizePixel = 0
  150.     TopBar.Size = UDim2.new(1, 0, 0, 2)
  151.    
  152.     UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(53, 149, 146)), ColorSequenceKeypoint.new(.29, Color3.fromRGB(93, 86, 141)), ColorSequenceKeypoint.new(.50, Color3.fromRGB(126, 64, 138)), ColorSequenceKeypoint.new(.75, Color3.fromRGB(143, 112, 112)), ColorSequenceKeypoint.new(1, Color3.fromRGB(159, 159, 80))}
  153.     UIGradient.Parent = TopBar
  154.    
  155.     TitleHolder.Name = "TitleHolder"
  156.     TitleHolder.Parent = Background
  157.     TitleHolder.AnchorPoint = Vector2.new(.5, .5)
  158.     TitleHolder.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  159.     TitleHolder.BorderColor3 = Color3.fromRGB(44, 44, 44)
  160.     TitleHolder.BorderSizePixel = 2
  161.     TitleHolder.Position = UDim2.new(.5, 0, .5, 0)
  162.     TitleHolder.Size = UDim2.new(.9, 0, .9, 0)
  163.    
  164.     Title.Name = "Title"
  165.     Title.Parent = TitleHolder
  166.     Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  167.     Title.BorderSizePixel = 0
  168.     Title.Position = UDim2.new(0, 15, 0, -12)
  169.     Title.Size = UDim2.new(0, 75, 0, 20)
  170.     Title.Font = Enum.Font.SourceSansBold
  171.     Title.Text = "Warning"
  172.     Title.TextColor3 = Color3.fromRGB(235, 235, 235)
  173.     Title.TextScaled = true
  174.     Title.TextWrapped = true
  175.    
  176.     Holder.Name = "Holder"
  177.     Holder.Parent = TitleHolder
  178.     Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  179.     Holder.BackgroundTransparency = 1
  180.     Holder.Position = UDim2.new(0, 30, .125, 0)
  181.     Holder.Size = UDim2.new(1, -30, .875, 0)
  182.    
  183.     UIListLayout.Parent = Holder
  184.     UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  185.    
  186.     Reason_1.Name = "Reason_1"
  187.     Reason_1.Parent = Holder
  188.     Reason_1.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  189.     Reason_1.BackgroundTransparency = 1
  190.     Reason_1.BorderSizePixel = 0
  191.     Reason_1.Size = UDim2.new(1, 0, 0, 20)
  192.     Reason_1.Font = Enum.Font.SourceSans
  193.     Reason_1.Text = "- TextChatService is enabled"
  194.     Reason_1.TextColor3 = Color3.fromRGB(199, 40, 42)
  195.     Reason_1.TextScaled = true
  196.     Reason_1.TextWrapped = true
  197.     Reason_1.TextXAlignment = Enum.TextXAlignment.Left
  198.     Reason_1.Visible = false
  199.    
  200.     Reason_2.Name = "Reason_2"
  201.     Reason_2.Parent = Holder
  202.     Reason_2.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  203.     Reason_2.BackgroundTransparency = 1
  204.     Reason_2.BorderSizePixel = 0
  205.     Reason_2.Size = UDim2.new(1, 0, 0, 20)
  206.     Reason_2.Font = Enum.Font.SourceSans
  207.     Reason_2.Text = "- Legacy chat module was not found"
  208.     Reason_2.TextColor3 = Color3.fromRGB(199, 40, 42)
  209.     Reason_2.TextScaled = true
  210.     Reason_2.TextWrapped = true
  211.     Reason_2.TextXAlignment = Enum.TextXAlignment.Left
  212.     Reason_2.Visible = false
  213.    
  214.     Reason_3.Name = "Reason_3"
  215.     Reason_3.Parent = Holder
  216.     Reason_3.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  217.     Reason_3.BackgroundTransparency = 1
  218.     Reason_3.BorderSizePixel = 0
  219.     Reason_3.Size = UDim2.new(1, 0, 0, 20)
  220.     Reason_3.Font = Enum.Font.SourceSans
  221.     Reason_3.Text = "- MessagePosted function was not found"
  222.     Reason_3.TextColor3 = Color3.fromRGB(199, 40, 42)
  223.     Reason_3.TextScaled = true
  224.     Reason_3.TextWrapped = true
  225.     Reason_3.TextXAlignment = Enum.TextXAlignment.Left
  226.     Reason_3.Visible = false
  227.    
  228.     WarningText.Name = "WarningText"
  229.     WarningText.Parent = TitleHolder
  230.     WarningText.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  231.     WarningText.BackgroundTransparency = 1
  232.     WarningText.BorderSizePixel = 0
  233.     WarningText.Position = UDim2.new(0, 30, .05, 0)
  234.     WarningText.RichText = true
  235.     WarningText.Size = UDim2.new(1, -30, 0, 20)
  236.     WarningText.Font = Enum.Font.SourceSans
  237.     WarningText.Text = "> Anti-<font color=\"#6ea644\">Chat Logger</font> will not work here! (This may also mean the bypass won't work as the game you're in may have a different chat system)"
  238.     WarningText.TextColor3 = Color3.fromRGB(255, 255, 255)
  239.     WarningText.TextScaled = true
  240.     WarningText.TextWrapped = true
  241.     WarningText.TextXAlignment = Enum.TextXAlignment.Left
  242.    
  243.     Exit.Name = "Exit"
  244.     Exit.Parent = TitleHolder
  245.     Exit.AnchorPoint = Vector2.new(.5, .5)
  246.     Exit.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
  247.     Exit.BorderColor3 = Color3.fromRGB(0, 0, 0)
  248.     Exit.Position = UDim2.new(.5, 0, .899999976, 0)
  249.     Exit.Size = UDim2.new(0, 250, 0, 20)
  250.     Exit.Font = Enum.Font.SourceSans
  251.     Exit.Text = "Ok"
  252.     Exit.TextColor3 = Color3.fromRGB(255, 255, 255)
  253.     Exit.TextScaled = true
  254.     Exit.TextWrapped = true
  255.    
  256.     ImageLabel.Parent = TitleHolder
  257.     ImageLabel.AnchorPoint = Vector2.new(.5, .5)
  258.     ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  259.     ImageLabel.BackgroundTransparency = 1
  260.     ImageLabel.Position = UDim2.new(.5, 0, .6, 0)
  261.     ImageLabel.Size = UDim2.new(.3, 0, .3, 0)
  262.     ImageLabel.ZIndex = 1
  263.     ImageLabel.Image = "rbxassetid://12969025384"
  264.     ImageLabel.ImageColor3 = Color3.fromRGB(40, 40, 40)
  265.     ImageLabel.ImageTransparency = .5
  266.    
  267.     Exit.MouseButton1Down:Connect(function()
  268.         WarningUI:Destroy()
  269.     end)
  270. end)
  271.  
  272. if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
  273.     WarningUI.Enabled = true
  274.     Reason_1.Visible = true
  275.     return
  276. end
  277.  
  278. local PlayerScripts = Player:WaitForChild("PlayerScripts")
  279. local ChatMain = PlayerScripts:FindFirstChild("ChatMain", true) or false
  280.  
  281. if not ChatMain then
  282.     local Timer = tick()
  283.    
  284.     repeat task.wait() until PlayerScripts:FindFirstChild("ChatMain", true) or tick() > (Timer + 3)
  285.     ChatMain = PlayerScripts:FindFirstChild("ChatMain", true)
  286.    
  287.     if not ChatMain then
  288.         WarningUI.Enabled = true
  289.         Reason_2.Visible = true
  290.         return
  291.     end
  292. end
  293.  
  294. local PostMessage = require(ChatMain).MessagePosted
  295.  
  296. if not PostMessage then
  297.     WarningUI.Enabled = true
  298.     Reason_3.Visible = true
  299.     return
  300. end
  301.  
  302. local MessageEvent = Instance.new("BindableEvent")
  303. local OldFunctionHook; OldFunctionHook = hookfunction(PostMessage.fire, function(self, Message)
  304.     if self == PostMessage then
  305.         MessageEvent:Fire(Message)
  306.         return
  307.     end
  308.     return OldFunctionHook(self, Message)
  309. end)
  310.  
  311. if setfflag then
  312.     pcall(function()
  313.         setfflag("AbuseReportScreenshot", "False")
  314.         setfflag("AbuseReportScreenshotPercentage", "0")
  315.     end)
  316. end -- To prevent roblox from taking screenshots of your client.
  317.  
  318. local Credits = task.spawn(function()
  319.     local UserIds = {
  320.         1414978355
  321.     }
  322.    
  323.     if table.find(UserIds, Player.UserId) then
  324.         return
  325.     end
  326.    
  327.     local Tag = Instance.new("BillboardGui")
  328.     local Title = Instance.new("TextLabel", Tag)
  329.     local Rank = Instance.new("TextLabel", Tag)
  330.     local Gradient = Instance.new("UIGradient", Title)
  331.    
  332.     Tag.Brightness = 2
  333.     Tag.Size = UDim2.new(4, 0, 1, 0)
  334.     Tag.StudsOffsetWorldSpace = Vector3.new(0, 5, 0)
  335.    
  336.     Title.BackgroundTransparency = 1
  337.     Title.Size = UDim2.new(1, 0, .6, 0)
  338.     Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  339.     Title.TextScaled = true
  340.    
  341.     Rank.AnchorPoint = Vector2.new(.5, 0)
  342.     Rank.BackgroundTransparency = 1
  343.     Rank.Position = UDim2.new(.5, 0, .65, 0)
  344.     Rank.Size = UDim2.new(.75, 0, .5, 0)
  345.     Rank.TextColor3 = Color3.fromRGB(0, 0, 0)
  346.     Rank.TextScaled = true
  347.     Rank.Text = "< Anti Chat-Logger >"
  348.    
  349.     Gradient.Color = ColorSequence.new({
  350.         ColorSequenceKeypoint.new(0, Color3.new(.75, .75, .75)),
  351.         ColorSequenceKeypoint.new(.27, Color3.new(0, 0, 0)),
  352.         ColorSequenceKeypoint.new(.5, Color3.new(.3, 0, .5)),
  353.         ColorSequenceKeypoint.new(0.78, Color3.new(0, 0, 0)),
  354.         ColorSequenceKeypoint.new(1, Color3.new(.75, .75, .75))
  355.     })
  356.     Gradient.Offset = Vector2.new(-1, 0)
  357.    
  358.     local GradientTeen = Tween(Gradient, 2, "Circular", "Out", {Offset = Vector2.new(1, 0)})
  359.    
  360.     function PlayAnimation()
  361.         GradientTeen:Play()
  362.         GradientTeen.Completed:Wait()
  363.         Gradient.Offset = Vector2.new(-1, 0)
  364.         task.wait(.75)
  365.         PlayAnimation()
  366.     end
  367.    
  368.     local AddTitle = function(Character)
  369.         repeat task.wait() until Character
  370.        
  371.         local Humanoid = Character and Character:WaitForChild("Humanoid")
  372.         local RootPart = Humanoid and Humanoid.RootPart
  373.        
  374.         if Humanoid then
  375.             Humanoid:GetPropertyChangedSignal("RootPart"):Connect(function()
  376.                 if Humanoid.RootPart then
  377.                     Tag.Adornee = RootPart
  378.                 end
  379.             end)
  380.         end
  381.        
  382.         if RootPart then
  383.             Tag.Adornee = RootPart
  384.         end
  385.     end
  386.    
  387.     task.spawn(PlayAnimation)
  388.    
  389.     for _, x in next, Players:GetPlayers() do
  390.         if table.find(UserIds, x.UserId) then
  391.             Tag.Parent = workspace.Terrain
  392.             Title.Text = x.Name
  393.             AddTitle(x.Character)
  394.             x.CharacterAdded:Connect(AddTitle)
  395.         end
  396.     end
  397.    
  398.     Players.PlayerAdded:Connect(function(x)
  399.         if table.find(UserIds, x.UserId) then
  400.             Tag.Parent = workspace.Terrain
  401.             Title.Text = x.Name
  402.             x.CharacterAdded:Connect(AddTitle)
  403.         end
  404.     end)
  405.    
  406.     Players.PlayerRemoving:Connect(function(x)
  407.         if table.find(UserIds, x.UserId) then
  408.             Tag.Parent = game
  409.         end
  410.     end)
  411. end)
  412.  
  413. task.delay(1, function() WarningUI:Destroy() end)
  414.  
  415. for _, x in next, OldCoreTypeSettings do
  416.     if not x then
  417.         StarterGui:SetCore("ChatActive", false)
  418.     end
  419.     StarterGui:SetCoreGuiEnabled(_, x)
  420. end
  421.  
  422. if OldCoreSetting then
  423.     StarterGui:SetCore("CoreGuiChatConnections", OldCoreSetting)
  424. end
  425.  
  426. if StarterGui:GetCore("ChatActive") then
  427.     StarterGui:SetCore("ChatActive", false)
  428.     StarterGui:SetCore("ChatActive", true)
  429. end
  430.  
  431. --Metatable.__namecall = CoreHook
  432. if CoreHook then
  433.     setmetatable(Metatable, {__namecall = CoreHook})
  434. end
  435. setreadonly(Metatable, true)
  436.  
  437. Notify("๐Ÿ”นAnthony's ACL๐Ÿ”น", "Anti Chat and Screenshot Logger Loaded!", 15)
  438. print(string.format("AnthonyIsntHere's Anti Chat-Logger has loaded in %s seconds.", string.format("%.2f", tostring(tick() - ACL_LoadTime))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement