Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 🏀 One-Click-Only FireServer Detector + Auto Clipboard Copy
- local UserInputService = game:GetService("UserInputService")
- local hooked = false
- local old
- local function setupDetector()
- if hooked then return end
- hooked = true
- old = hookmetamethod(game, "__namecall", function(self, ...)
- local method = getnamecallmethod()
- if method == "FireServer" then
- local args = {...}
- local out = {}
- for i, v in ipairs(args) do
- local t = typeof(v)
- if t == "Vector3" then
- out[i] = ("Vector3.new(%.3f, %.3f, %.3f)"):format(v.X, v.Y, v.Z)
- elseif t == "CFrame" then
- out[i] = ("CFrame.new(%s)"):format(table.concat({v:GetComponents()}, ","))
- elseif t == "string" then
- out[i] = string.format("%q", v)
- elseif t == "Instance" then
- out[i] = v:GetFullName()
- else
- out[i] = tostring(v)
- end
- end
- local final = string.format("%s:FireServer(%s)", self:GetFullName(), table.concat(out, ", "))
- print("[Detected 🔥] " .. final)
- -- ✅ Auto-assign the detected remote as your shooter
- getgenv().shootRemote = self
- print("[✅] Shoot remote captured and stored as getgenv().shootRemote")
- -- 📋 Auto-copy full FireServer line
- if setclipboard then
- setclipboard(final)
- print("[📋 Copied] The FireServer call has been copied to your clipboard!")
- else
- print("[⚠️] setclipboard not supported by your executor.")
- end
- -- 🔒 Unhook after capture
- hookmetamethod(game, "__namecall", old)
- end
- return old(self, ...)
- end)
- end
- -- ⏱ Wait until you left-click to arm the detector
- UserInputService.InputBegan:Connect(function(input, gp)
- if gp then return end
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- setupDetector()
- end
- end)
- print("[🕵️ Ready] Left-click once to detect your shoot remote (auto-copies to clipboard).")
Advertisement
Add Comment
Please, Sign In to add comment