Advertisement
Guest User

roblox anti kick

a guest
Oct 7th, 2019
13,936
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. local getrawmetatable = getrawmetatable or debug.getmetatable
  2. local make_writeable = make_writeable or setreadonly or changereadonly or change_writeable
  3. make_writeable(getrawmetatable(game), false)
  4. local backup = getrawmetatable(game).__namecall
  5. getrawmetatable(game).__namecall = function(u, ...)
  6.    local m = ({...})[select('#', ...)]
  7.    local packed = {...}
  8.    local a = {}
  9.    for i = 1, #packed - 1 do
  10.        a[i] = packed[i]
  11.    end
  12.    if m == 'Kick' then
  13.        warn('Kick attempt at ' .. os.time() .. ' (' .. tostring(unpack(a)) .. ')')
  14.        return true -- this tricks the game into thinking it was kicked, while it never disconnects itself.
  15.    end
  16.    return backup and backup(u, ...) or u[m](u, unpack(a))
  17. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement