Server lag in Roblox is often caused by poorly optimized scripts that consume excessive server resources. When a script is not optimized, it can lead to increased CPU usage, memory leaks, and network latency. This can result in delayed responses, stuttering, and even crashes. Server lag can be frustrating for players, leading to a negative gaming experience and potentially driving them away.