Advertisement
SeilLasadasdsad

Bypass Anti Cheat

Jul 31st, 2024
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. --//Anti Ban, Anti Kick\\--
  2. local getrawmetatable = getrawmetatable or debug.getmetatable
  3. local setreadonly = setreadonly or function(t, b) end
  4. local newcclosure = newcclosure or function(f) return f end
  5. local getnamecallmethod = getnamecallmethod or function() return "" end
  6. local checkcaller = checkcaller or function() return false end
  7. if not getrawmetatable then
  8. error("getrawmetatable não está disponível.")
  9. return
  10. end
  11. local mt = getrawmetatable(game)
  12. local ncallsa = mt and mt.__namecall
  13. if ncallsa then
  14. setreadonly(mt, false)
  15. mt.__namecall = newcclosure(function(...)
  16. local args = {...}
  17. if not checkcaller() and getnamecallmethod() == "Kick" then
  18. return nil
  19. end
  20. return ncallsa(...)
  21. end)
  22. setreadonly(mt, true)
  23. end
  24. local mmt = getrawmetatable(game)
  25. local oldnamecall = mmt and mmt.__namecall
  26. if oldnamecall then
  27. setreadonly(mmt, false)
  28. mmt.__namecall = newcclosure(function(self, ...)
  29. local method = tostring(getnamecallmethod())
  30. local args = {...}
  31. if not checkcaller() and method == "FireServer" and tostring(self) == "Banned" then
  32. return nil
  33. end
  34. return oldnamecall(self, ...)
  35. end)
  36. setreadonly(mmt, true)
  37. end
  38. local gmt = getrawmetatable(game)
  39. local old_index = gmt and gmt.__index
  40. if old_index then
  41. setreadonly(gmt, false)
  42. gmt.__index = function(a, b)
  43. if tostring(a) == "BannedA" or tostring(a) == "BannedB" or tostring(a) == "BannedC" or tostring(a) == "BannedD" then
  44. if tostring(b) == "Value" then
  45. return false
  46. end
  47. end
  48. return old_index(a, b)
  49. end
  50. setreadonly(gmt, true)
  51. end
  52. local bgmt = getrawmetatable(game)
  53. local bold_index = bgmt and bgmt.__index
  54. if bold_index then
  55. setreadonly(bgmt, false)
  56. bgmt.__index = function(a, b)
  57. if tostring(a) == "BCount" then
  58. if tostring(b) == "Value" then
  59. return 0
  60. end
  61. end
  62. return bold_index(a, b)
  63. end
  64. setreadonly(bgmt, true)
  65. end
  66. local function safeDestroy(obj)
  67. if obj and obj.Destroy then
  68. obj:Destroy()
  69. end
  70. end
  71. for _, BN in pairs(game:GetService("Workspace").FE.Settings:GetChildren()) do
  72. if BN.Name == "BName" then
  73. safeDestroy(BN)
  74. end
  75. end
  76.  
  77. for _, b in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  78. if b.Name == " " then
  79. safeDestroy(b)
  80. end
  81. end
  82.  
  83. for _, lc2 in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  84. if lc2:IsA("LocalScript") and (string.match(lc2.Name, "%d") or string.match(lc2.Name, " ")) then
  85. safeDestroy(lc2)
  86. end
  87. end
  88.  
  89. for _, lc in pairs(game.Players.LocalPlayer.PlayerGui.Start:GetChildren()) do
  90. if lc:IsA("LocalScript") and (string.match(lc.Name, "%d") or string.match(lc.Name, " ")) then
  91. safeDestroy(lc)
  92. end
  93. end
  94.  
  95. for _, c in pairs(game.Players.LocalPlayer.PlayerGui.Start:GetChildren()) do
  96. if c.Name == "CheckPlayerW" then
  97. safeDestroy(c)
  98. end
  99. end
  100.  
  101. for _, z in pairs(game.StarterGui.Start:GetChildren()) do
  102. if z.Name == "CheckPlayerW" then
  103. safeDestroy(z)
  104. end
  105. end
  106.  
  107. for _, v in pairs(game.StarterPlayer.StarterCharacterScripts:GetDescendants()) do
  108. if v.Name == " " then
  109. safeDestroy(v)
  110. end
  111. end
  112.  
  113. game.Players.LocalPlayer.CharacterAdded:Connect(function()
  114. wait(0.5)
  115. for _, char in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  116. if char.Name == " " then
  117. safeDestroy(char)
  118. end
  119. end
  120. end)
  121.  
  122. for _, nolag in pairs(game.StarterGui.Start:GetChildren()) do
  123. if nolag.Name == "Gradient" then
  124. safeDestroy(nolag)
  125. end
  126. end
  127.  
  128. for _, nolaglp in pairs(game.Players.LocalPlayer.PlayerGui.Start:GetChildren()) do
  129. if nolaglp.Name == "Gradient" then
  130. safeDestroy(nolaglp)
  131. end
  132. end
  133. --// FUNCTIONS, VARIABLES AND SCRIPTS //--
  134. function GetPlayer(String)
  135. local Foundplr = {}
  136. local strl = String:lower()
  137. if strl == "all" then
  138. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  139. table.insert(Foundplr,v)
  140. end
  141. elseif strl == "others" then
  142. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  143. if v.Name ~= game.Players.LocalPlayer.Name then
  144. table.insert(Foundplr,v)
  145. end
  146. end
  147. elseif strl == "me" then
  148. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  149. if v.Name == game.Players.LocalPlayer.Name then
  150. table.insert(Foundplr,v)
  151. end
  152. end
  153. else
  154. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  155. if v.DisplayName:lower():sub(1, #String) == String:lower() or v.Name:lower():sub(1, #String) == String:lower() then
  156. table.insert(Foundplr,v)
  157. end
  158. end
  159. end
  160. return Foundplr
  161. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement