local badActionRemote = game:GetService("ReplicatedStorage"):WaitForChild("Remote"):WaitForChild("BadActionEvent")
local actionListener = game:GetService("ReplicatedStorage"):WaitForChild("Remote"):WaitForChild("BadActionEvent"):WaitForChild("ActionListener")
if actionListener and hookfunction then
local oldActionListener = hookfunction(actionListener.InvokeServer, function(...)
return nil
end)
end
local oldNamecall
if hookmetamethod and getnamecallmethod then
oldNamecall = hookmetamethod(game, "__namecall", function(self, ...)
local method = getnamecallmethod()
local args = {...}
if method == "FireServer" then
if self == badActionRemote then
return nil
end
end
return oldNamecall(self, ...)
end)
end
Comments
No comments yet
Be the first to share your thoughts!