Advertisement
YourMain12

Regular Roblox Anticheat

Jul 13th, 2023 (edited)
120
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. -- This script uses the regular roblox anticheat (NOT BYFRON)
  2. -- This script should be placed in ServerScriptService
  3. local Players = game:GetService("Players")
  4. local ExploitDetection = require(game:GetService("ReplicatedStorage").ExploitDetection) -- Regular Roblox Anticheat
  5.  
  6. local function KickExploiter(player)
  7.     local exploit = ExploitDetection:DetectExploit(player)
  8.     if exploit then
  9.         player:Kick("You have been detected injecting " .. exploit .. ". This is a violation of the game rules.")
  10.         print(player.Name .. " has been kicked for injecting " .. exploit)
  11.     end
  12. end
  13.  
  14. local function OnPlayerAdded(player)
  15.     KickExploiter(player)
  16.     player.CharacterAdded:Connect(KickExploiter)
  17.     player.Backpack.ChildAdded:Connect(KickExploiter)
  18. end
  19.  
  20. for _, player in ipairs(Players:GetPlayers()) do
  21.     OnPlayerAdded(player)
  22. end
  23.  
  24. Players.PlayerAdded:Connect(OnPlayerAdded)
  25.  
Advertisement
Comments
  • Gamscripted
    341 days
    # text 0.26 KB | 0 0
    1. hey i left you a comment on a the synx subreddit to put the game importer script into a syntax, i wanted to get in touch with you because i'm not a very good scripter and i was hoping you could teach me; so im asking if you have a discord or something so we could talk on
Add Comment
Please, Sign In to add comment
Advertisement