Universal Script 📌
3.2k Views
84 Executions

remote hook

Universal Script 📌
gaxriexz
gaxriexzPublished 5
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

just a remote hook

View Raw
local target = {
    enabled = true,
    value = '...'
    position = Vector3.new(0,0,0),
    part = cloneref(game:GetService("Players"))[target.value].Character.Head
}

local Hooks = {}

Hooks.Remote = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
    local args = { ... }
    local method = getnamecallmethod():lower()

    if target.enabled and target.position and target.part and method == 'fireserver' and self.Name == 'MainEvent' and args[1] == 'ShootGun' then
        args[4] = target.position
        args[5] = target.part
        return Hooks.Remote(self, unpack(args))
    end

    return Hooks.Remote(self, ...)
end))


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!