remote hook
Key RequiredUniversal

remote hook

Universal Scriptgaxriexzgaxriexz 3.1K views 68 executesUpdated Jun 9, 2025
Unrated
00
Lua Script•21 lines (649 chars)
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))

Features & Information

just a remote hook

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts