Universal Script 📌
2.8k Views
85 Executions

mouse 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 mouse hook

View Raw
local target = {
    enabled = true,
    position = CFrame.new(0,0,0)
}

local Hooks = {}

Hooks.Mouse = hookmetamethod(game, "__index", newcclosure(function(self, key)
    if target.enabled and target.position and self:IsA("Mouse") and key == 'Hit' then
        return target.position
    end

    return Hooks.Mouse(self, key)
end))


Comments

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