A Mouse Vibration Detector

~ Mouse Vibration Detector ~

Hello there! I’m XQII46, I just make an mouse vibration detector
I hope you like it :slightly_smiling_face:


Explaination

So this code will detect mouse vibration vertically and horizontally, if the vibration value is low it means the mouse is idle or moving slowly, and if the mouse vibration value is large then the mouse is moving quickly


:desktop_computer: Code

local threshold = 0.5
local LocalPlayer = game:GetService("Players").LocalPlayer

local prevX, prevY = LocalPlayer:GetMouse().X, LocalPlayer:GetMouse().Y
local vibration = 0

LocalPlayer:GetMouse().Move:Connect(function()
	local currX, currY = LocalPlayer:GetMouse().X, LocalPlayer:GetMouse().Y
	local deltaX = currX - prevX
	local deltaY = currY - prevY
	local displacement = math.sqrt(deltaX^2 + deltaY^2)

	prevX, prevY = currX, currY
	if displacement > threshold then
		vibration = displacement
	else
		vibration = 0
	end
	print(vibration) --it might cause lag
end)

:information_source: Preview


:pushpin: Notes :pushpin:

In my opinion, this code can also be used as an anti-aimbot by determining whether the mouse vibration is low or high when the mouse is targeting the humanoid’s body. Well, in my opinion, it may not be efficient in detecting aimbots, but it can still be used as a reference.

Made by ChatGPT 99%

Support me! Here


That’s all the message I can convey, I’m sorry if there are any wrong words.

Thanks for reading,
Have a great day!

1 Like

image
why

9 Likes

This really seems unnecessary since you didn’t even make the code and taking credit for something AI generated.

I get Copilot and ChatGPT but when 99% of it is AI you aren’t even scripting anymore.

:slightly_frowning_face:

3 Likes

I’m pretty sure he’s talking about the article being made 99% by ChatGPT, not the script.

1 Like

Why would OP use ChatGPT to generate only one sentence?

2 Likes

That is crazy that you are asking for donations when ChatGPT mostly made it. You are better off making an actual game with chatgpt if you want money.

Why are you posting this, if you didn’t even make it?

4 Likes

Man Why the Hell r you asking for 200 robux WHEN YOU DIDNT EVEN DO ANYTHING
image

2 Likes

did someone say “Made by ChatGPT”???