local function I()local I=checkSprintKeyDown()local q=(humanoid.Health/100)*16 local H=q*SPRINT_MULTIPLIER if humanoid.Health<=SPRINT_DISABLED_THRESHOLD then humanoid.WalkSpeed=q*.5 elseif I then humanoid.WalkSpeed=H else humanoid.WalkSpeed=q end end
-- Update humanoid's WalkSpeed based on sprint state and health
local function updateWalkSpeed()
	local sprintKeyDown = checkSprintKeyDown()
	local baseSpeed = humanoid.Health / 100 * 16
	local sprintSpeed = baseSpeed * SPRINT_MULTIPLIER

	if humanoid.Health <= SPRINT_DISABLED_THRESHOLD then
		humanoid.WalkSpeed = baseSpeed * 0.5
	elseif sprintKeyDown then
		humanoid.WalkSpeed = sprintSpeed
	else
		humanoid.WalkSpeed = baseSpeed
	end
end
