-- Features for Sprint

game:GetService("RunService").RenderStepped:Connect(function()
	
	if isSprinting and humanoid.MoveDirection.Magnitude > 0 then		
		FOVIn:Play()
		
		if humanoid:GetState() == Enum.HumanoidStateType.Running or humanoid:GetState() == Enum.HumanoidStateType.RunningNoPhysics then

			if not ifSprintAnimPlaying then
				sprintAnim:Play()
				ifSprintAnimPlaying = true
			end
			
		else
			if ifSprintAnimPlaying then
				sprintAnim:Stop()
				ifSprintAnimPlaying = false
			end
		end
		
	else
		FOVOut:Play()
		
		if ifSprintAnimPlaying then
			sprintAnim:Stop()
			ifSprintAnimPlaying = false
		end
	end
end)
