local function D()local D=checkSprintKeyDown()local R=(humanoid.Health/100)*16 local j=R*SPRINT_MULTIPLIER if humanoid.Health<=SPRINT_DISABLED_THRESHOLD then humanoid.WalkSpeed=R*.5 elseif D then humanoid.WalkSpeed=j else humanoid.WalkSpeed=R end end

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
