How can I reduce lag in my game?

Hi developers.
My game is running extremely poorly, and I was wondering how I can go about fixing that?

My game link is here:

What are some things that cause lag? How can I detect what scripts are causing the most lag?

You can see what scripts have the most activity by going on View > Script Performance.


Anything over 3%-5% should be worth looking to optimize.

1 Like

Is this inside Roblox Studio during testing?

All hail lord incapaz

yes, during testing so the scripts can execute

This is odd. I have just done what you said, and I have 1 script that is running at about 4%, another at 2% and all the others are at 0.

The game is not laggy while I am in studio, but it is very laggy while I am in game. Is there any explanation for this?

How can one person know so much? I will call you lord incapaz from now and onwards. :heart: