Advanced AntiKick
Key RequiredUniversal

Advanced AntiKick

Universal ScriptTCESTeam_IAmFriendlyTCESTeam_IAmFriendly 4.3K views 937 executesUpdated Aug 17, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•36 lines (1191 chars)
local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
local mtGame = getrawmetatable(game)
local mtPlayers = getrawmetatable(Players)

setreadonly(mtGame, false)
setreadonly(mtPlayers, false)

-- hook __namecall for Kick, Destroy, Remove, RemoveAsync, and Shutdown
local oldNamecall = mtGame.__namecall
mtGame.__namecall = newcclosure(function(self, ...)
    local method = getnamecallmethod()
    
    if (self == localPlayer and (method == "Kick" or method == "Destroy" or method == "Remove" or method == "RemoveAsync")) or
       (self == game and method == "Shutdown") then
        print("[AntiKick] Blocked:", method)
        return "Error 403-FORBIDDEN"
    end

    return oldNamecall(self, ...)
end)

-- prevent overwriting LocalPlayer
local oldNewIndex = mtPlayers.__newindex
mtPlayers.__newindex = newcclosure(function(self, key, value)
    if self == Players and key == "LocalPlayer" then
        print("[AntiKick] Attempt to overwrite LocalPlayer blocked")
        return "Error 403-FORBIDDEN"
    end
    return oldNewIndex(self, key, value)
end)

setreadonly(mtGame, true)
setreadonly(mtPlayers, true)

print("[AntiKick] Advanced AntiKick active.")

Features & Information

Hooks Kick, Shutdown, Remove/RemoveAsync, and more, preventing from localscripts kicking the player.

Community Comments (3)

ZERETETZERETETAug 17, 2025

chatgpt + logger

Replying to @ZERETET
DocksDocksAug 20, 2025

@ZERETET huh

ZegHubZegHubAug 25, 2025

its looks like pretty safe

More Scripts for Universal Scripts