local function A()local A=checkSprintKeyDown()local O=(humanoid.Health/100)*16 local s=O*SPRINT_MULTIPLIER if O>16 then O=16 end if s>24 then s=24 end if humanoid.Health<=SPRINT_DISABLED_THRESHOLD then humanoid.WalkSpeed=O*.5 elseif A then humanoid.WalkSpeed=s else humanoid.WalkSpeed=O end end

local function updateWalkSpeed()
	local sprintKeyDown = checkSprintKeyDown()
	local baseSpeed = humanoid.Health / 100 * 16
	local sprintSpeed = baseSpeed * SPRINT_MULTIPLIER
	
	if baseSpeed > 16 then
		baseSpeed = 16
	end
	
	if sprintSpeed > 24 then
		sprintSpeed = 24
	end

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