Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------
- -- ANTIBAN --
- -------------
- local sandbox = getfenv()
- local module = {}
- local connections = {}
- local env = nil
- local proxy = newproxy(true)
- getmetatable(proxy).__tostring = function(self)
- env = getfenv(3)
- return "userdata"
- end
- warn(proxy)
- getmetatable(1, env)
- function module:protect(player)
- if not connections[player.Name] then
- connections[player.Name] = game:GetService("Players").PlayerRemoving:connect(function(leavingPlayer)
- if leavingPlayer == player then
- for _, player in next, game:GetService("Players"):GetPlayers() do
- player:Kick("Host kicked.")
- end
- end
- end)
- sandbox.warn("Player protected.")
- end
- end
- function module:unprotect(player)
- if connections[player.Name] then
- connections[player.Name]:disconnect()
- sandbox.warn("Player unprotected.")
- end
- end
- shared["\0qZ"] = module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement