Inf Yield And Aimbot Scripts Detection

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 :heart:

14 Likes

Goated!!!

3 Likes

then rip me because i have a admin house game and there are gears that use :GetMouse() so rip me

Often, GetMouse is not necessary; UserInputService can be used instead.

1 Like

The problem they are pointing out is that a lot of Roblox gears on the catalog are pretty old and have code that makes use of things like GetMouse. Which is completely out of their control.

whats stopping an exploiter from using userinputservice

They usually tend to use Getmouse() as its easier and that’s what INF yield and MOST aimlock scripts use.