I’ve been stuck with this issue for quite a few days.
humanoid:TakeDamage(damage)
where damage is a number in my gun settings.
Every time this code is run, it creates a lot of lag on low end devices. Changing “damage” to a number lower than 5 fixes the issue, increasing the humanoid’s health from 100 to 10000 also fixes the issue, but these of course are not desirable fixes.
Disabling server or client scripts doesn’t make any difference.