function BaseSystem.incrementHealth(k,h)k._health=math.clamp(k._health+h,0,k._maxHealth)local V=k._health/k._maxHealth if not k.noScreenUpdate then local h=Color3.fromRGB(110,153,202)local O=Color3.fromRGB(200,93,96)local z=O:Lerp(h,V)for h,k in pairs((k._model:FindFirstChild("\083\099\114\101\101\110")):GetChildren())do(TweenService:Create(k,tweenInfo,{Color=z})):Play()end end if k:canTurnOn()then k:turnOn()elseif k._health==0 and k:isOn()then k:turnOff()end if h<0 and V<.25 then sendAlert(Constants.Alert.Fail,k.repairAlert)elseif k._health==0 then sendAlert(Constants.Alert.Fail,k.brokenAlert)end if k:isOn()then if V<.2 then k:_setMarker(k.brokenMarker)elseif V<.5 then k:_setMarker(k.repairMarker)else k:_setMarker()end end end
--[[
	Increments the health by the specified amount, will also update markers and other visual showcases of the health amount.
]]
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
