What are some lines of code that will impact game's performance?

80% of these will not impact performance that much if you do it correctly, don’t leave loop running when they are not used this will cause memory leak. There is nothing wrong with RenderStepped and Heartbeat. I haven’t heard :Clone() and :Destroy() causing performance to go down. TweenService can cause lag when using it too much on the server and can cause the Tween to slow down. With Instance.new if you use the second parameter it will impact performance as shown here. Please correct me if I’m wrong.

2 Likes