Here is a simple detection for Inf Yield and aimbot scripts. It works by using WeakTable on GetMouse().
while true do
task.wait()
local GetMouse = game:GetService("Players")["LocalPlayer"]:GetMouse()
local Check = setmetatable({newproxy(), GetMouse}, {__mode = "v"})
GetMouse = nil
while Check[1] do
task.wait(0.15)
end
if Check[2] then
game:GetService("Players")["LocalPlayer"]:Kick()
end
end
-- Made by ysf
Make sure not to use GetMouse() inside your game, as it may lead to false positives.
Enjoy