After testing my game for about 5 mins, when I press buttons really fast, my game starts lagging. Does anyone know why this happens and anyway of fixing it? I think its because I’m using userInputService.
What do these buttons do exactly?
Please keep in mind that we are not mind readers, some of us very little time as well.
So please, when creating a topic, be as descriptive and as helpful as possible and do basic things like providing a link to the game.
The more information you provide, the more we can help.
To the the topic at hand, I would guess you have inserted a Free Model from the toolbox with a spreading script that slowly degrades performance in your game…
If I were you, I would start here, and disable ALL scripts in your game, test and see if it still lags after a while.
You can learn how to find and disable/remove such scripts in my video here.
Keep your game safe from Toolbox virsus! (re-upload) - YouTube
Any button I press causes lag even the one I don’t use in scripts.
What’s happening is probably a memory leak somewhere.
What is a memory leak and how can I fix it?
When I tested it with more people it seems to work better.
You should read this