Grip checker
Parent:GetPropertyChangedSignal("Grip"):Connect(function()
game.ReplicatedStorage:WaitForChild("MainEvent"):FireServer("CHECKER_4")
end)local connections = getconnections(tool:GetPropertyChangedSignal("Grip"))
table.foreach(connections,function(_,connection)
connection:Disable()
end)local Connections = getconnections(Tool:GetPropertyChangedSignal("Grip"))
table.foreach(Connections,function(_,connection)
local func = connection.Function
-- checking if the function is not nil and if it's not a C closure
-- since we can't change the constant of a C closure
if func ~= nil and not iscclosure(func) then
local constants = debug.getconstants(func)
for index, constant in pairs(constants) do
-- checking if the constant is CHECKER_4
if constant == "CHECKER_4" then
-- setting the constant index of CHECKER_4 to a random remote
debug.setconstant(func,index,"RandomRemote")
break -- breaking out of the loop since we know that the constant only occurs once
end
end
end
end) Last updated