I'm trying to make a script for a gun overheating if you fire it too much, could anybody tell me whats wrong with it
%heat += 1
if(%heat >= 3)
{
%obj.spawnExplosion(AntimatterProjectile,"2 2 2");
%obj.client.player.addhealth("-35");
messageclient(%client, 'centerprint', "Overheating!" 10)
}
%obj.schedule(1000, %heat -= 1);