Clicking creates massive lag in my game

Hello there!

I’m having this one issue for my game, in which whenever I start clicking, my FPS gets significantly lower (from over 220 to below 180).

What could be causing this issue?

Here’s me enabling my autoclicker at certain times, pay attention to my FPS.

Have you tried this on any other games?
Could just be your computer has more tasks to perform outside of Roblox (running the autoclicker) that it takes away from your overall processing power.

I did, it still decreases my FPS in other games slightly, but not as much as it does on my game.

For comparison, on a random roblox game it decreases around 5-10 FPS
However on my game it decreases over 40.

And overtime, my FPS decreases even lower on clicks.

Does clicking in game cause any of your scripts to run?
If so then disable each one to see if that script is causing the lag.

1 Like

Scott is probably right, depending on how many areas you have “detecting M1/Mouse Location/Input if else then or and” and how the entire setup is structured / where the scripts are run [server/client] etc. Most likely you just need to do optimize your setup a bit for player input.

2 Likes

After doing some more digging, I have realised there was a script that was messing with ANY of the player inputs, weither that would be the mouse or keys, I have deleted the script as it didn’t have much use either way. This is why I, alongside everyone should always delete unecessary scripts that you don’t need anymore, because issues like these can happen.

I was mainly looking for mouse inputs only because well, they were the only ones lagging the game and so I thought that was the specific issue. I didn’t think about checking ALL of the inputs until now, so thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.