Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local getgenv, getnamecallmethod, hookmetamethod, newcclosure, checkcaller, stringlower = getgenv, getnamecallmethod, hookmetamethod, newcclosure, checkcaller, string.lower
- if getgenv().ED_AntiKick then
- return
- end
- local Players, StarterGui, OldNamecall = game:GetService("Players"), game:GetService("StarterGui")
- getgenv().ED_AntiKick = {
- Enabled = true,
- SendNotifications = false
- CheckCaller = false
- }
- OldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(...)
- if (getgenv().ED_AntiKick.CheckCaller and not checkcaller() or true) and stringlower(getnamecallmethod()) == "kick" and ED_AntiKick.Enabled then
- if getgenv().ED_AntiKick.SendNotifications then
- print("Kick prevented")
- end
- return nil
- end
- return OldNamecall(...)
- end))
- if getgenv().ED_AntiKick.SendNotifications then
- print("YouTube: darkModz")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement