vxste

ACL

Aug 24th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.17 KB | None | 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. -- Store the loadstring (line 5) in your autoexec folder into a text/lua file to receive automatic updates [remove the "--"" part when you paste it into the text file]
  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
  10. -- 4/26/2023 - Fixed tick loaded format
  11. -- 4/28/2023 - Added support for Fluxus users (hookmetamethod issue seems to have gotten fixed)
  12. -- 6/14/2023 - Added support for Evon users (checkcaller isuse)
  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. -- 8/24/2023 - Now supports Player.Chatted signal event for clientside (highly requested)
  16. -- 8/25/2023 - Fully fixed (i was high when editing it yesterday sorry guys)
  17. -- 9/1/2023 - Fixed issue with /e command not working sometimes (mainly when joining a game)
  18.  
  19. if not game:IsLoaded() then
  20. game.Loaded:wait()
  21. end
  22.  
  23. task.wait(5)
  24.  
  25. local ACL_LoadTime = tick()
  26. local NotificationTitle = "Anthony's ACL"
  27.  
  28. local OldCoreTypeSettings = {}
  29. local WhitelistedCoreTypes = {
  30. "Chat",
  31. "All",
  32. Enum.CoreGuiType.Chat,
  33. Enum.CoreGuiType.All
  34. }
  35.  
  36. local OldCoreSetting = nil
  37.  
  38. local CoreGui = game:GetService("CoreGui")
  39. local StarterGui = game:GetService("StarterGui")
  40. local TweenService = game:GetService("TweenService")
  41. local TextChatService = game:GetService("TextChatService")
  42. local Players = game:GetService("Players")
  43.  
  44. local Player = Players.LocalPlayer
  45.  
  46. local Notify = function(_Title, _Text , Time)
  47. StarterGui:SetCore("SendNotification", {Title = _Title, Text = _Text, Icon = "rbxassetid://2541869220", Duration = Time})
  48. end
  49.  
  50. local Tween = function(Object, Time, Style, Direction, Property)
  51. return TweenService:Create(Object, TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction]), Property)
  52. end
  53.  
  54. local PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") do
  55. if not PlayerGui then
  56. local Timer = tick() + 5
  57. repeat task.wait() until Player:FindFirstChildWhichIsA("PlayerGui") or (tick() > Timer)
  58. PlayerGui = Player:FindFirstChildWhichIsA("PlayerGui") or false
  59. if not PlayerGui then
  60. return Notify(NotificationTitle, "Failed to find PlayerGui!", 10)
  61. end
  62. end
  63. end
  64.  
  65. if getgenv().AntiChatLogger then
  66. return Notify(NotificationTitle, "Anti Chat & Screenshot Logger already loaded!", 15)
  67. else
  68. getgenv().AntiChatLogger = true
  69. end
  70.  
  71. local Metatable = getrawmetatable(StarterGui)
  72. setreadonly(Metatable, false)
  73.  
  74. local MessageEvent = Instance.new("BindableEvent")
  75.  
  76. if hookmetamethod then
  77. local CoreHook do
  78. CoreHook = hookmetamethod(StarterGui, "__namecall", newcclosure(function(self, ...)
  79. local Method = getnamecallmethod()
  80. local Arguments = {...}
  81.  
  82. if self == StarterGui and not checkcaller() then
  83. if Method == "SetCoreGuiEnabled" then
  84. local CoreType = Arguments[1]
  85. local Enabled = Arguments[2]
  86.  
  87. if table.find(WhitelistedCoreTypes, CoreType) and Enabled == false then -- Thanks Harun for correcting me on the second argument
  88. OldCoreTypeSettings[CoreType] = Enabled
  89. return
  90. end
  91. elseif Method == "SetCore" then
  92. local Core = Arguments[1]
  93. local Connection = Arguments[2]
  94.  
  95. if Core == "CoreGuiChatConnections" then
  96. OldCoreSetting = Connection
  97. return
  98. end
  99. end
  100. end
  101.  
  102. return CoreHook(self, ...)
  103. end))
  104. end
  105.  
  106. if not getgenv().ChattedFix then
  107. getgenv().ChattedFix = true
  108.  
  109. local ChattedFix do
  110. ChattedFix = hookmetamethod(Player, "__index", newcclosure(function(self, index)
  111. if self == Player and tostring(index):lower():match("chatted") and MessageEvent.Event then
  112. return MessageEvent.Event
  113. end
  114.  
  115. return ChattedFix(self, index)
  116. end))
  117. end
  118.  
  119. local AnimateChattedFix = task.spawn(function()
  120. local ChattedSignal = false
  121.  
  122. for _, x in next, getgc() do
  123. if type(x) == "function" and getfenv(x).script ~= nil and tostring(getfenv(x).script) == "Animate" then
  124. if islclosure(x) then
  125. local Constants = getconstants(x)
  126.  
  127. for _, v in next, Constants do
  128. if v == "Chatted" then
  129. ChattedSignal = x
  130. end
  131. end
  132. end
  133. end
  134. end
  135.  
  136. if ChattedSignal then
  137. ChattedSignal()
  138. end
  139. end)
  140. end
  141. end
  142.  
  143. local EnabledChat = task.spawn(function()
  144. repeat
  145. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
  146. task.wait()
  147. until StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Chat)
  148. end)
  149.  
  150. local WarningGuiThread = task.spawn(function()
  151. WarningUI = Instance.new("ScreenGui")
  152. Main = Instance.new("Frame")
  153. BackgroundHolder = Instance.new("Frame")
  154. Background = Instance.new("Frame")
  155. TopBar = Instance.new("Frame")
  156. UIGradient = Instance.new("UIGradient")
  157. TitleHolder = Instance.new("Frame")
  158. Title = Instance.new("TextLabel")
  159. Holder = Instance.new("Frame")
  160. UIListLayout = Instance.new("UIListLayout")
  161. Reason_1 = Instance.new("TextLabel")
  162. Reason_2 = Instance.new("TextLabel")
  163. Reason_3 = Instance.new("TextLabel")
  164. WarningText = Instance.new("TextLabel")
  165. Exit = Instance.new("TextButton")
  166. ImageLabel = Instance.new("ImageLabel")
  167.  
  168. WarningUI.Enabled = false
  169. WarningUI.Name = "WarningUI"
  170. WarningUI.Parent = CoreGui
  171.  
  172. Main.Name = "Main"
  173. Main.Parent = WarningUI
  174. Main.AnchorPoint = Vector2.new(.5, .5)
  175. Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  176. Main.BackgroundTransparency = 1
  177. Main.Position = UDim2.new(.5, 0, .5, 0)
  178. Main.Size = UDim2.new(0, 400, 0, 400)
  179.  
  180. BackgroundHolder.Name = "BackgroundHolder"
  181. BackgroundHolder.Parent = Main
  182. BackgroundHolder.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  183. BackgroundHolder.BackgroundTransparency = .25
  184. BackgroundHolder.BorderSizePixel = 0
  185. BackgroundHolder.Size = UDim2.new(1, 0, 1, 0)
  186.  
  187. Background.Name = "Background"
  188. Background.Parent = BackgroundHolder
  189. Background.AnchorPoint = Vector2.new(.5, .5)
  190. Background.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  191. Background.BorderSizePixel = 0
  192. Background.Position = UDim2.new(.5, 0, .5, 0)
  193. Background.Size = UDim2.new(.96, 0, .96, 0)
  194.  
  195. TopBar.Name = "TopBar"
  196. TopBar.Parent = Background
  197. TopBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  198. TopBar.BorderSizePixel = 0
  199. TopBar.Size = UDim2.new(1, 0, 0, 2)
  200.  
  201. 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))}
  202. UIGradient.Parent = TopBar
  203.  
  204. TitleHolder.Name = "TitleHolder"
  205. TitleHolder.Parent = Background
  206. TitleHolder.AnchorPoint = Vector2.new(.5, .5)
  207. TitleHolder.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  208. TitleHolder.BorderColor3 = Color3.fromRGB(44, 44, 44)
  209. TitleHolder.BorderSizePixel = 2
  210. TitleHolder.Position = UDim2.new(.5, 0, .5, 0)
  211. TitleHolder.Size = UDim2.new(.9, 0, .9, 0)
  212.  
  213. Title.Name = "Title"
  214. Title.Parent = TitleHolder
  215. Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  216. Title.BorderSizePixel = 0
  217. Title.Position = UDim2.new(0, 15, 0, -12)
  218. Title.Size = UDim2.new(0, 75, 0, 20)
  219. Title.Font = Enum.Font.SourceSansBold
  220. Title.Text = "Warning"
  221. Title.TextColor3 = Color3.fromRGB(235, 235, 235)
  222. Title.TextScaled = true
  223. Title.TextWrapped = true
  224.  
  225. Holder.Name = "Holder"
  226. Holder.Parent = TitleHolder
  227. Holder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  228. Holder.BackgroundTransparency = 1
  229. Holder.Position = UDim2.new(0, 30, .125, 0)
  230. Holder.Size = UDim2.new(1, -30, .875, 0)
  231.  
  232. UIListLayout.Parent = Holder
  233. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  234.  
  235. Reason_1.Name = "Reason_1"
  236. Reason_1.Parent = Holder
  237. Reason_1.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  238. Reason_1.BackgroundTransparency = 1
  239. Reason_1.BorderSizePixel = 0
  240. Reason_1.Size = UDim2.new(1, 0, 0, 20)
  241. Reason_1.Font = Enum.Font.SourceSans
  242. Reason_1.Text = "- TextChatService is enabled"
  243. Reason_1.TextColor3 = Color3.fromRGB(199, 40, 42)
  244. Reason_1.TextScaled = true
  245. Reason_1.TextWrapped = true
  246. Reason_1.TextXAlignment = Enum.TextXAlignment.Left
  247. Reason_1.Visible = false
  248.  
  249. Reason_2.Name = "Reason_2"
  250. Reason_2.Parent = Holder
  251. Reason_2.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  252. Reason_2.BackgroundTransparency = 1
  253. Reason_2.BorderSizePixel = 0
  254. Reason_2.Size = UDim2.new(1, 0, 0, 20)
  255. Reason_2.Font = Enum.Font.SourceSans
  256. Reason_2.Text = "- Legacy chat module was not found"
  257. Reason_2.TextColor3 = Color3.fromRGB(199, 40, 42)
  258. Reason_2.TextScaled = true
  259. Reason_2.TextWrapped = true
  260. Reason_2.TextXAlignment = Enum.TextXAlignment.Left
  261. Reason_2.Visible = false
  262.  
  263. Reason_3.Name = "Reason_3"
  264. Reason_3.Parent = Holder
  265. Reason_3.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  266. Reason_3.BackgroundTransparency = 1
  267. Reason_3.BorderSizePixel = 0
  268. Reason_3.Size = UDim2.new(1, 0, 0, 20)
  269. Reason_3.Font = Enum.Font.SourceSans
  270. Reason_3.Text = "- MessagePosted function was not found"
  271. Reason_3.TextColor3 = Color3.fromRGB(199, 40, 42)
  272. Reason_3.TextScaled = true
  273. Reason_3.TextWrapped = true
  274. Reason_3.TextXAlignment = Enum.TextXAlignment.Left
  275. Reason_3.Visible = false
  276.  
  277. WarningText.Name = "WarningText"
  278. WarningText.Parent = TitleHolder
  279. WarningText.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  280. WarningText.BackgroundTransparency = 1
  281. WarningText.BorderSizePixel = 0
  282. WarningText.Position = UDim2.new(0, 30, .05, 0)
  283. WarningText.RichText = true
  284. WarningText.Size = UDim2.new(1, -30, 0, 20)
  285. WarningText.Font = Enum.Font.SourceSans
  286. WarningText.Text = "> Anti-<font color=\"#6ea644\">Chat Logger</font> will not work here!"
  287. WarningText.TextColor3 = Color3.fromRGB(255, 255, 255)
  288. WarningText.TextScaled = true
  289. WarningText.TextWrapped = true
  290. WarningText.TextXAlignment = Enum.TextXAlignment.Left
  291.  
  292. Exit.Name = "Exit"
  293. Exit.Parent = TitleHolder
  294. Exit.AnchorPoint = Vector2.new(.5, .5)
  295. Exit.BackgroundColor3 = Color3.fromRGB(36, 36, 36)
  296. Exit.BorderColor3 = Color3.fromRGB(0, 0, 0)
  297. Exit.Position = UDim2.new(.5, 0, .899999976, 0)
  298. Exit.Size = UDim2.new(0, 250, 0, 20)
  299. Exit.Font = Enum.Font.SourceSans
  300. Exit.Text = "Ok"
  301. Exit.TextColor3 = Color3.fromRGB(255, 255, 255)
  302. Exit.TextScaled = true
  303. Exit.TextWrapped = true
  304.  
  305. ImageLabel.Parent = TitleHolder
  306. ImageLabel.AnchorPoint = Vector2.new(.5, .5)
  307. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  308. ImageLabel.BackgroundTransparency = 1
  309. ImageLabel.Position = UDim2.new(.5, 0, .6, 0)
  310. ImageLabel.Size = UDim2.new(.3, 0, .3, 0)
  311. ImageLabel.ZIndex = 1
  312. ImageLabel.Image = "rbxassetid://12969025384"
  313. ImageLabel.ImageColor3 = Color3.fromRGB(40, 40, 40)
  314. ImageLabel.ImageTransparency = .5
  315.  
  316. Exit.MouseButton1Down:Connect(function()
  317. WarningUI:Destroy()
  318. end)
  319. end)
  320.  
  321. if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
  322. WarningUI.Enabled = true
  323. Reason_1.Visible = true
  324. return
  325. end
  326.  
  327. local PlayerScripts = Player:WaitForChild("PlayerScripts")
  328. local ChatMain = PlayerScripts:FindFirstChild("ChatMain", true) or false
  329.  
  330. if not ChatMain then
  331. local Timer = tick()
  332.  
  333. repeat task.wait() until PlayerScripts:FindFirstChild("ChatMain", true) or tick() > (Timer + 3)
  334. ChatMain = PlayerScripts:FindFirstChild("ChatMain", true)
  335.  
  336. if not ChatMain then
  337. WarningUI.Enabled = true
  338. Reason_2.Visible = true
  339. return
  340. end
  341. end
  342.  
  343. local PostMessage = require(ChatMain).MessagePosted
  344.  
  345. if not PostMessage then
  346. WarningUI.Enabled = true
  347. Reason_3.Visible = true
  348. return
  349. end
  350.  
  351. local OldFunctionHook; OldFunctionHook = hookfunction(PostMessage.fire, function(self, Message)
  352. if self == PostMessage then
  353. MessageEvent:Fire(Message)
  354. return
  355. end
  356. return OldFunctionHook(self, Message)
  357. end)
  358.  
  359. if setfflag then
  360. pcall(function()
  361. setfflag("AbuseReportScreenshot", "False")
  362. setfflag("AbuseReportScreenshotPercentage", "0")
  363. end)
  364. end -- To prevent roblox from taking screenshots of your client.
  365.  
  366. local Credits = task.spawn(function()
  367. local UserIds = {
  368. 1414978355
  369. }
  370.  
  371. if table.find(UserIds, Player.UserId) then
  372. return
  373. end
  374.  
  375. local Tag = Instance.new("BillboardGui")
  376. local Title = Instance.new("TextLabel", Tag)
  377. local Rank = Instance.new("TextLabel", Tag)
  378. local Gradient = Instance.new("UIGradient", Title)
  379.  
  380. Tag.Brightness = 2
  381. Tag.Size = UDim2.new(4, 0, 1, 0)
  382. Tag.StudsOffsetWorldSpace = Vector3.new(0, 5, 0)
  383.  
  384. Title.BackgroundTransparency = 1
  385. Title.Size = UDim2.new(1, 0, .6, 0)
  386. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  387. Title.TextScaled = true
  388.  
  389. Rank.AnchorPoint = Vector2.new(.5, 0)
  390. Rank.BackgroundTransparency = 1
  391. Rank.Position = UDim2.new(.5, 0, .65, 0)
  392. Rank.Size = UDim2.new(.75, 0, .5, 0)
  393. Rank.TextColor3 = Color3.fromRGB(0, 0, 0)
  394. Rank.TextScaled = true
  395. Rank.Text = "< Anti Chat-Logger >"
  396.  
  397. Gradient.Color = ColorSequence.new({
  398. ColorSequenceKeypoint.new(0, Color3.new(.75, .75, .75)),
  399. ColorSequenceKeypoint.new(.27, Color3.new(0, 0, 0)),
  400. ColorSequenceKeypoint.new(.5, Color3.new(.3, 0, .5)),
  401. ColorSequenceKeypoint.new(0.78, Color3.new(0, 0, 0)),
  402. ColorSequenceKeypoint.new(1, Color3.new(.75, .75, .75))
  403. })
  404. Gradient.Offset = Vector2.new(-1, 0)
  405.  
  406. local GradientTeen = Tween(Gradient, 2, "Circular", "Out", {Offset = Vector2.new(1, 0)})
  407.  
  408. function PlayAnimation()
  409. GradientTeen:Play()
  410. GradientTeen.Completed:Wait()
  411. Gradient.Offset = Vector2.new(-1, 0)
  412. task.wait(.75)
  413. PlayAnimation()
  414. end
  415.  
  416. local AddTitle = function(Character)
  417. repeat task.wait() until Character
  418.  
  419. local Humanoid = Character and Character:WaitForChild("Humanoid")
  420. local RootPart = Humanoid and Humanoid.RootPart
  421.  
  422. if Humanoid then
  423. Humanoid:GetPropertyChangedSignal("RootPart"):Connect(function()
  424. if Humanoid.RootPart then
  425. Tag.Adornee = RootPart
  426. end
  427. end)
  428. end
  429.  
  430. if RootPart then
  431. Tag.Adornee = RootPart
  432. end
  433. end
  434.  
  435. task.spawn(PlayAnimation)
  436.  
  437. for _, x in next, Players:GetPlayers() do
  438. if table.find(UserIds, x.UserId) then
  439. Tag.Parent = workspace.Terrain
  440. Title.Text = x.Name
  441. AddTitle(x.Character)
  442. x.CharacterAdded:Connect(AddTitle)
  443. end
  444. end
  445.  
  446. Players.PlayerAdded:Connect(function(x)
  447. if table.find(UserIds, x.UserId) then
  448. Tag.Parent = workspace.Terrain
  449. Title.Text = x.Name
  450. x.CharacterAdded:Connect(AddTitle)
  451. end
  452. end)
  453.  
  454. Players.PlayerRemoving:Connect(function(x)
  455. if table.find(UserIds, x.UserId) then
  456. Tag.Parent = game
  457. end
  458. end)
  459. end)
  460.  
  461. task.delay(1, function() WarningUI:Destroy() end)
  462.  
  463. for _, x in next, OldCoreTypeSettings do
  464. if not x then
  465. StarterGui:SetCore("ChatActive", false)
  466. end
  467. StarterGui:SetCoreGuiEnabled(_, x)
  468. end
  469.  
  470. if OldCoreSetting then
  471. StarterGui:SetCore("CoreGuiChatConnections", OldCoreSetting)
  472. end
  473.  
  474. if StarterGui:GetCore("ChatActive") then
  475. StarterGui:SetCore("ChatActive", false)
  476. StarterGui:SetCore("ChatActive", true)
  477. end
  478.  
  479. --Metatable.__namecall = CoreHook
  480. if CoreHook then
  481. setmetatable(Metatable, {__namecall = CoreHook})
  482. end
  483. setreadonly(Metatable, true)
  484.  
  485. Notify(NotificationTitle, "Anti Chat & Screenshot Logger Loaded!", 15)
  486. 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