Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local renv = getrenv()
- local old_spawn = renv.spawn
- renv.spawn = function(f)
- local env = getfenv(0)
- if env.Ban then
- env.Ban = function() print('caught ban') end
- error('caught ban') -- prevent it from going on to lag the game out
- end
- old_spawn(f)
- end
- -- extra code to ensure that you don't get RAC banned no matter what
- local mt = getrawmetatable(game)
- local namecall = mt.__namecall
- mt.__namecall = function(...)
- local arguments = {...}
- if arguments[1].Name == 'RequestWeapon' and arguments[#arguments] == 'FireServer' and arguments[2] == 'Ban' then
- return
- end
- return namecall(...)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement