SHARE
TWEET

Kick

ipastetomuch Apr 6th, 2019 497 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
  15.    end
  16.    return backup and backup(u, ...) or u[m](u, unpack(a))
  17. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top