Everything I need to know so my game doesn't lag?

I want to know everything about making sure performance is clean in my game. I’d like to know everything that causes lag, or makes a server laggy forever.

Additionally:
https://devforum.roblox.com/t/what-are-expensive-things-to-do-in-a-roblox-game-that-could-impact-performance/312144/4?u=colbert2677

Searching helps. Please do so before posting.

1 Like

Use as many events as possible, if you can use an event instead of a loop, use the event.

Event based code always beats constant checks in a loop.