function BaseSystem.incrementHealth(r,g)r._health=math.clamp(r._health+g,0,r._maxHealth)local J=r._health/r._maxHealth if not r.noScreenUpdate then local g=Color3.fromRGB(110,153,202)local Q=Color3.fromRGB(200,93,96)local O=Q:Lerp(g,J)for g,r in pairs((r._model:FindFirstChild("\083\099\114\101\101\110")):GetChildren())do(TweenService:Create(r,tweenInfo,{Color=O})):Play()end end if r:canTurnOn()then r:turnOn()elseif r._health==0 and r:isOn()then r:turnOff()end if g<0 and J<.25 then sendAlert(Constants.Alert.Fail,r.repairAlert)elseif r._health==0 then sendAlert(Constants.Alert.Fail,r.brokenAlert)end if r:isOn()then if J<.2 then r:_setMarker(r.brokenMarker)elseif J<.5 then r:_setMarker(r.repairMarker)else r:_setMarker()end end end

function BaseSystem:incrementHealth(amount)
	self._health = math.clamp(self._health + amount, 0, self._maxHealth)

	local percent = self._health / self._maxHealth

	if not self.noScreenUpdate then
		local aliveColor = Color3.fromRGB(110, 153, 202)
		local deadColor = Color3.fromRGB(200, 93, 96)

		local targetColor = deadColor:Lerp(aliveColor, percent)
		for _, child in pairs(self._model:FindFirstChild("Screen"):GetChildren()) do
			TweenService:Create(child, tweenInfo, {Color = targetColor}):Play()
		end
	end

	if self:canTurnOn() then
		self:turnOn()
	elseif self._health == 0 and self:isOn() then
		self:turnOff()
	end

	if amount < 0 and percent < 0.25 then
		sendAlert(Constants.Alert.Fail, self.repairAlert)
	elseif self._health == 0 then
		sendAlert(Constants.Alert.Fail, self.brokenAlert)
	end

	if self:isOn() then
		if percent < 0.2 then
			self:_setMarker(self.brokenMarker)
		elseif percent < 0.5 then
			self:_setMarker(self.repairMarker)
		else
			self:_setMarker()
		end
	end
end
